A new "logo" variable was added to the menu item's params column (table #__menu) - having the value of the image path you selected. (image path stored in params column)
The image path should be displayed in the Custom Params / Logo Image media field, when you open the menu item.
The logo parameter is not being saved in the database.
The image path is not being displayed in the Custom Params / Logo Image media field.
XAMPP Control Panel v3.2.1
PHP: 5.5.6
MySQL: 5.6.14
OS: Windows 8.1 Professional
Joomla: 3.3.6
I followed the tutorial for "Adding custom fields to core components using a plugin"
http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin "Adding custom fields to core components using a plugin
This tutorial works perfectly, but not when I am trying to adapt it for com_menus.item component.
There is already a StackOverflow Question that explains all of this:
That is indeed an issue of your plugin. You are correctly extending the form with that event and that is enough to save it also in the params field in the database, but you are checking against the request parameters and expect it to be a view. When saving the data, there is no view request parameter, instead its done via task=item.save. That said, the request parameters are not reliable for that check. Instead please check against the name of the form. This is not a Joomla bug. Closing.
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @Hackwar by The JTracker Application at issues.joomla.org/joomla-cms/5289
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-04 10:16:41 |
Can someone please describe what is required to make this work. I have also encountered this issue, and from what I have traced, the method "findFieldsByGroup" in JForm throws out xml nodes that are added at runtime.
Labels |
Added:
?
|
Hi
I think this maybe a problem with how you implemented your plugin rather than Joomla! itself.
Perhaps have a look at plugins/user/profile as I know this saves additional info into the database.
I think your plugin only has the code to show a custom field and lacks code to act upon anything that the user adds to the field. specifically I think you need to do more than override onContentPrepareForm you need to tell Joomla! what to do when the form is saved to.