We changed our privacy policy. Read more.
8

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 $customFieldIds = ...


5

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


5

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 $...


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

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


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

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 inserted. The default context is com_content.article and that can be set to any context where JCF data is held. The second param is the field ID. If set, the data for ...


3

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.


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 ...


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.


2

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 text.xml, and /tmpl/text2.php. In text2.xml there is a reference to the plugin name, update this as well, like: <files> <filename plugin="text2&...


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);


2

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


2

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 problem was that Joomla sends two "Set-Cookie" headers in the Login-Response, but my gateway merged them and only sent the second one back to the browser. After ...


2

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:updated"); after you changed the options, this triggers the update. Edit: in Joomla! V3.x and old version of chosen is used and the trigger is: jQuery('#...


2

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 mentioned tried earlier, but that one is not working, in my situation. Why is that one of Marco has mentioned, not working? I see that one regularly in other ...


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

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.


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 ...


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