0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?

  • SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?

    Posted 8 years 1 month ago
    • I'm using the Kraken Theme and building a site using the popular Wordpress plugin Toolset Types.

      Specifically I'd like to be able to use their Content Layouts in order to make custom layouts for pages, posts, and custom posts

      There is some mention of the issue in this post
      wp-types.com/forums/topic/wordpress-custom-archives-view-not/

      ... 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.

      Thanks!
  • 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.

      referene
      timber.github.io/timber/#get_field

      ... 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.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?

    Posted 8 years 1 month ago
  • Re: SOLVED Gantry 5, can it be integrated with Toolset Types Content Layouts?

    Posted 8 years 1 month ago
    • Okay.. I put it in as a feature request. Thanks!

Time to create page: 0.077 seconds