Skip to main content
Share Your Experience: Take the 2024 Developer Survey
9 votes
Accepted

Getting custom fields and their values (com_fields)

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. ...
FFrewin's user avatar
  • 19.7k
6 votes

Getting custom fields and their values (com_fields)

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/...
Mayank Sahu's user avatar
5 votes
Accepted

Your PHP Version Will Be Unsupported in Joomla! 3.3

its a bug that will be fixed in the next release - nothing to worry about
Brian Teeman's user avatar
5 votes
Accepted

How to fetch joomla article custom fields in another component?

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 ...
Mayank Sahu's user avatar
4 votes

How to fetch joomla article custom fields in another component?

This function will allow display of JCFields anywhere in any extension desired, including templates. The first parameter is the only requirement and will dump the JCF data, based on the item ID ...
Nadal's user avatar
  • 188
4 votes

Replacement of deprecated enqueueMessage() from JApplication

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/...
Adam M.'s user avatar
  • 447
4 votes
Accepted

Component SQL Updates Not Running

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.
Zachary Draper's user avatar
4 votes
Accepted

How do I get a watermark on a sigplus gallery?

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 ...
Matt's user avatar
  • 481
3 votes

How can I fix "The PHP temporary folder is not set" warning/error?

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 ...
FFrewin's user avatar
  • 19.7k
3 votes

Joomla 3.7 - HTML Code is replaced by __RL_Protected ---

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 ...
n.h.'s user avatar
  • 871
2 votes

Joomla Custom field type - How to create one

It seems that fields are simply plugins of type fields. Copy the text folder from /plugins/fields, to a new folder, text2 and change the names of the files inside the text-folder to text2.php and ...
jonasfh's user avatar
  • 738
2 votes
Accepted

Banner Rotation Issue Joomla 3.7.3

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 ...
RichardB's user avatar
  • 3,082
2 votes
Accepted

Replacement of deprecated setUserState() and getUserState()

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 ...
Adam M.'s user avatar
  • 447
2 votes

How can I fix "The PHP temporary folder is not set" warning/error?

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, ...
Medin Mon's user avatar
2 votes

Joomla custom fields in Category List

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); $customFields = FieldsHelper::getFields('com_content.article', $articleitem, true); $fields = ...
Michael's user avatar
  • 593
2 votes
Accepted

Joomla custom fields in Category List

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 "...
Peter Schoene's user avatar
2 votes

Joomla custom fields in Category List

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 ...
Guido van de Camp's user avatar
2 votes
Accepted

Joomla getting items via model wrong data type

It is a json encoded string. $images = json_decode($item->images);
David Hayes's user avatar
2 votes
Accepted

Component: Button publish not working

Check the $name and $prefix variables that are passing over getModel function on your controller. $name = NAME_OF_YOUR_EDIT_VIEW $prefix = COMPONENT_NAME + Model
Jaime Medina's user avatar
2 votes

Make calendar dynamically in 3.7

Based on chavab_1's answer, this answer uses Joomla's interface to create the html and adds a date dynamically when a button is clicked. I left the id field blank as it doesn't seem to be required for ...
Justin White's user avatar
2 votes
Accepted

Joomla forgets session (cookie) straight after login

I fixed the problem myself. Unfortunately, it was even my own mistake, you couldn't have come up with the solution. I don't access the Joomla site directly but there is an HTTP gateway before it. The ...
Sumafu's user avatar
  • 31
2 votes
Accepted

Remove options of the Select with jQuery, replace these with new ones is working but how to update "chzn search" div with jQuery?

Thats because of the chosen.js - i had the same question a few weeks ago : Update List field rendering after ajax update For chosen you can call: jQuery('#jform_identificator').trigger("chosen:...
Marco's user avatar
  • 685
2 votes

Remove options of the Select with jQuery, replace these with new ones is working but how to update "chzn search" div with jQuery?

It is working with this one: jQuery('#jform_identificator').trigger("**liszt**:updated"); Even with the 'z' in liszt', I thought this must be a typo, but not!!! I had the one which Marco ...
user2363969's user avatar
1 vote

Joomla Update 3.7.3 has broken my website. AbstractApplication.php error

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 ...
Chowderhound's user avatar
1 vote

Joomla Update 3.7.3 has broken my website. AbstractApplication.php error

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 ...
FFrewin's user avatar
  • 19.7k
1 vote

Upgrade from 3.4 to 3.7.3 causing 500 error when trying to send email

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 "...
itoctopus's user avatar
  • 3,226
1 vote

Joomla Custom field type - How to create one

You can copy one of the fields in: \libraries\joomla\form\fields to: \components\com_yourcomponent\models\forms\fields and rename the copied field. Then change data of your new custom filed.
wahid anvary's user avatar
1 vote

Joomla and Calibre

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.
Neil Robertson's user avatar
1 vote

Changing the headerlogo in beez3 template the image isn't fit to the headerlogo

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 ...
FFrewin's user avatar
  • 19.7k
1 vote

Display ReCaptcha field after Joomla 3.7 user custom fields

replace the form output with this code: <?php if ($field->type !== 'Captcha') : ?> <div class="form-group"> <?php echo $field->label; ?> <div class="...
Hugo Fittipaldi's user avatar

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