Articles Anywhere

Adding Support for new Joomla Custom Fields "Default Layout" setting

1 month 1 day ago #77575

Andy Badwool's Avatar Andy Badwool

An heads up for a future upcoming change...

As of Joomla 3.9, this new setting will be added, which allows to set for a custom field, the "Default" layout that the field should use by default when inserted. For example... you want a "Price" field to always be displayed with the correct php number_format, you can assign that layout to that field in the custom field options.

See Issue: github.com/joomla/joomla-cms/issues/18162
See PR: github.com/joomla/joomla-cms/pull/18571

Right now, Articles Anywhere, when displaying layout for Custom Fields, it does this:

By default - when using layout="true" - this layout file will be used to generate the output for the custom fields:
components/com_fields/layouts/field/render.php

From now on, it should instead use the default layout for that field, specified by the user in that new setting (which might or might not be render.php) :)

1 month 21 hours ago #77599

Peter van Westen's Avatar Peter van Westen Admin

Thanks. I will look into implementing this in Articles Anywhere once Joomla 3.9 is released.

4 weeks 2 days ago #77637

Andy Badwool's Avatar Andy Badwool

Great! :)