Articles Anywhere

Custom Layout for Custom Field doesn't work?

1 month 1 day ago #77577

Andy Badwool's Avatar Andy Badwool

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.

1 month 11 hours ago #77600

Peter van Westen's Avatar Peter van Westen Admin

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

1 month 11 hours ago #77603

Andy Badwool's Avatar Andy Badwool

Yep, that fixed it :)

1 month 11 hours ago #77604

Peter van Westen's Avatar Peter van Westen Admin

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