User tests: Successful: Unsuccessful:
In the extension development room someone asked, if content plugins replace custom fields values. The correct answer to the question is: It depends.
If you include a field with {fields x} then it can be be replaced, if the content plugins run in the right order. E.g. I made a text field and set it to {loadmoduleid 17}, if the content/field plugin runs before the content/loadmodules plugin then its gets replaced otherwise not.
If the fields is displayed with "Automatic Display" then it is never replaced.
This feels inconsistent.
I had the idea to add a prepare content parameter to the fields like we have this for a custom module. The we could control the replacement better. Opinions please?
I have added a new parameter "Prepare Content" to the custom fileds like we have it for a custom module. I made changes to the FieldsHelper and run content plugins when the parameter is set to yes. The default value for "Prepare Content" is no. This can have an effect to the site performance.
I am not sure if we should add this to the core so I will keep it as draft and let the maintainers make an decision.
or when the ordering of the content plugins is fields -> loadmodules
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields Language & Strings |
Labels |
Added:
Feature
Language Change
PR-5.3-dev
|