?
avatar coolcat-creations
coolcat-creations
6 Mar 2017

If you want to override how fields are rendered you have to move the file from the component folder instead of the layout folder

image

Is it possible to move it into the layouts folder to be consistent in the way where the user finds the layouts?

avatar coolcat-creations coolcat-creations - open - 6 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Mar 2017
avatar mbabker
mbabker - comment - 6 Mar 2017

Not all layouts belong in the global /layouts folder. The same as not all component layouts belong in a single global directory.

There is actually a default logic to this. It enables component specific overrides of layouts within the template, followed by global overrides of layouts in the template, then component specific overrides of layouts within the component directory, then finally using the default /layouts directory.

If the com_fields component is doing the actual layout rendering, the layouts are in the correct place. If the layout rendering is coming from a library class (something in the /libraries directory), then they should be moved.

avatar coolcat-creations coolcat-creations - change - 6 Mar 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-03-06 13:26:44
Closed_By coolcat-creations
avatar coolcat-creations coolcat-creations - close - 6 Mar 2017
avatar coolcat-creations
coolcat-creations - comment - 6 Mar 2017

Ok thank you @mbabker for explaining it detailed. Then i close this issue.

Add a Comment

Login with GitHub to post a comment