... I'm wondering if anyone has had any sucess in using toolset type content layouts with a gantry 5 theme? Or if someone might be able to point me in the right direction to make this happen myself.
Re: SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?
Posted 8 years 1 month ago
Toolset works with its "views" in page... but can't be used to overide base page templates.
Until it can (and it may never be compatible with Gantry 5?)...
I'll use the TWIG templates. Where I want to change the layout of a Category of wordpress pages
First Copy
/YOURTHEME/views/single.html.twig
to
/YOURTHEME/custom/views/single-YOURCATEGORY.html.twig
and near the top change
{% set scope = 'YOURCATEGORY' %}
Then Copy
/YOURTHEME/views/partials/content.html.twig
and
/YOURTHEME/custom/views/partials/content-YOURCATEGORY.html.twig
Then edit the TWIG template using this kind of syntax
{{post.get_field('wpcf-YOURFIELD')}}
.... where YOURFIELD is the variable created in toolset.
... I hope this helps anyone looking at this thread. I would still much rather be able to use Toolset Layouts... but I am sticking with Gantry 5 for its general greatness.
Re: SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?
Posted 8 years 1 month ago
You can post an issue or feature request here and maybe the team can look at this so it will work with views in custom folder:
github.com/gantry/gantry5