6

The key here (which I misunderstood/overlooked) is that for the FieldsHelper::getFields method, to also return the value & rawvalue of the custom fields, the $item has to be a content item object. I was only passing the id of the category, instead of an object of that category, that's why I didn't get the field's value. Just for clarity, I post here ...


5

You can use the following code to fetch custom field values by article id <?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper $customFieldnames = FieldsHelper::getFields('com_content.article', $article_id, true); // get custom field names by article id ...


4

its a bug that will be fixed in the next release - nothing to worry about


4

Figured this out. There was a bad version number in the #__schemas table. I rolled that version number back to a valid one and the updates work again.


4

I thought I had already done this before I posted but I tried again and got positive results So after looking at a post about a supposed bug with an earlier version of the plugin there was a couple of clues as to a solution from the developer The module, however, does not have an image base folder, which means that the only place you could put watermark....


3

You probably have an extension from Regular Labs installed. Just make a search inside plugins. Go to extensions->plugins and search, for instance, per 'regular'. If any, they should be listed. Hope it helps.


3

For getting custom fields and values for Joomla articles, you can use the following code: <?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper $customFieldnames = FieldsHelper::getFields('com_content.article', $artile_id, true); // get custom field names by article id $...


3

Likely Joomla will work without issues even with the php's tmp directory not being set. However, if you get issues, or simply want to get rid of this warning in you Joomla Admin, then you have to define in your php configuration the upload-tmp-dir directive. Note that setting up the hosting/server environment is not exactly a Joomla question. There is ...


2

It's not deprecated on JApplicationCms, the best way to call it would be: $app = JFactory::getApplication() $app->enqueueMessage('My Message here', 'success'); See https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication for more details and to see that it returns JApplicationCms


2

They are not deprecated, it's Joomla's documentation that is not perfect. If you see https://api.joomla.org/cms-3/classes/JFactory.html#method_getApplication You can notice that it returns JApplicationCms and on this object it is not deprecated. You will also notice that it says to look at \JApplication for more information, but this object is deprecated. ...


2

There's the page cache plugin... Extensions -> Plugin Manager -> System - Page Cache This is quite heavy caching, and so should be unpublished for what you want to achieve. Also, try ftping into the site and looking in the /cache folder. If all caching is off, this should just have a index.html file. If that folder is empty, then it might be your ...


2

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); $customFields = FieldsHelper::getFields('com_content.article', $articleitem, true); $fields = array(); foreach ($customFields as $field) { $fields[$field->name] = $field->value ? $field->rawvalue : $field->default_value; } Yay!


2

It is very easy to use the custom fields in article-list-view. It works out of the box. You don't have to use JLoader etc. And you don't have to define another "foreach"-argument. Just look, how the "foreach" in default-articles.php for every line in the table is called: <?php foreach ($this->items as $i => $article) : ?> So you only have to ...


2

My solutions to get 2 new columns in my com_content/category/default_articles.php template override. These docs.joomla and the above replies helped me a lot. In the <?php foreach ($this->items as $i => $article) : ?> loop. Where all the item info is collected place: <!-- this code to grab the fields by use of the fieldshelper --> <?...


2

It is a json encoded string. $images = json_decode($item->images);


1

Official solution Actually my initial solution was just a quick work-around. It didn't seem right, as it will check only against the specific show_street_address param. Joomla probably is doing another check for if the address should be shown or not, and that is with the address_check param - but this is missing, so it always default to false. This is a ...


1

I turned on maximum error reporting and chased the problem down to "Modules Anywhere" component. The upgrade destroyed that component. I couldn't wait for days on the component's message board for an answer, so I restored a backup from 2 weeks ago, then updated the Modules Anywhere component, then updated Joomla.


1

I tried to visit your site but sucuri says that my country is blocked, so I can't see more about the error. You can try re-installing Joomla from the admin (Joomla Update component) - or try a manual core re-installation as described here: Class 'JInput' not found after updating to 3.7.3. You also need to make sure all your installed extensions are ...


1

Assuming you have updated all the extensions on your site as well, what do you see if you set the error reporting to "Maximum" in your configuration settings? Do you see an actual error or the same "Internal Server Error"? Also, it might be that your server configuration changes are not taking effect, it is a good idea to check with your host to see if they ...


1

Just clearing the cache worked for me. It would be worth checking that the extension installed correctly if it still isn't working. Check all the directories were created, database tables and file permissions.


1

I had the same problem after installing the component RSform and chronofrom, after disabling the cache RSform was working. After enabling conservative cache it keeps working.


1

If you are referring to Calibre, the open source e-book management software, then the closest Joomla extension is probably OS Book Library. If not, then you'll probably need to be more specific.


1

No, I don't have another template - I know what I 'm talking about and this is about the Beez that comes with Joomla 3. I replaced the image with another of the same size and it's not looking bigger or isn't fitting. I am getting the exact same behavior as if I was using the personal image. The description of your problem is rather vague for us to ...


1

replace the form output with this code: <?php if ($field->type !== 'Captcha') : ?> <div class="form-group"> <?php echo $field->label; ?> <div class="controls"> <?php echo $field->input; ?> </div> </div> <?php else : $captcha = ' <div class="form-...


1

You are correct, this way you will be creating thumbnails all the time... One possibility would be to adjust your implementation in such a way, so that it will only create thumbnails on the first load and then store their paths/names in the database. Then you can check against the existence of thumbnails and their consistency with the original file and only ...


1

If you have installed "Admin Tools", first of all, try to disable it (it can be do it by accessing via FTP to the plugin and change the name, or by their configuration). Other thing you can try is to change the name of any .htaccess that you would have in the website. Also... you can try to download the upgrade package again and re-doing all from scratch. ...


1

Check if there is some protection system like mod_Security active on your hosting, it could be masking real error. ANd check php error logs if they are available, usually they can be found in cpanel, plesk or whaever your hsoter uses.


1

It seems that fields are simply plugins of type fields. I simply copied the text folder from /plugins/fields, to a new folder, text2. I also changed the names of the files inside the text-folder to text2.php and text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like: <files> <filename ...


1

In your template folder (/joomla_root/templates/< template_name >/) create a file with a unique name, such as articlelist.php. In that file add this code <jdoc:include type="component" /> Then change your ajax code to modify the URL before it's requested to include "tmpl=articlelist". Maybe something like this: <script type="text/javascript"&...


1

Step 1: Just upload the upgrade package to the server via ftp or extract in cpanel file manager. Step 2: You will see an error after installation in the administration site only. Go to Extensions, Manage, Database and press "FIX" Button.


Only top voted, non community-wiki answers of a minimum length are eligible