Articles Anywhere

Custom Layout for Custom Field doesn't work?

10 months 3 weeks ago #77577

Andy Badwool's Avatar Andy Badwool Moderator

Hey there,
I'm trying to do this as suggested in the tutorial:

You can override the layout with your own custom file. This way you are in complete control of how the names and values are placed in your content.

Just pass the path to the layout file in the layout="..." attribute (instead of layout="true").
[habitat_area layout="templates/my_template/layouts/habitat_field.php"]

Here is my code, which is the complete actual path:
[price layout="templates/[my_template_here]/html/layouts/com_fields/field/price-dollars.php"]

However, it doesn't look like it's working, it still uses the default render.php layout.

10 months 2 weeks ago #77600

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

10 months 2 weeks ago #77603

Andy Badwool's Avatar Andy Badwool Moderator

Yep, that fixed it 🙂

10 months 2 weeks ago #77604

Peter van Westen's Avatar Peter van Westen Admin

Ok, great 🙂
The fix will be included in the next release.