We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23166
    • 7 Posts
    Hallo,

    i have to make the navigation with getresources.

    Now i’ve got the problem to mark the parent items with the class "active".

    For the current item i use this:
    [[If? &subject=`[[+id]]` &operand=`[[*id]]` &then=` active`]]


    Thanks for any help
      • 33968
      • 863 Posts
      Why not use Wayfinder?

      It’s designed for navigation and will apply ’active’, ’last’ and ’parent’ classes by default. You can also easily customise the output to whatever you need.
        • 23166
        • 7 Posts
        Because i need different templates for each level. Moreover i’m using images from TVs, which i have to include.
          • 33968
          • 863 Posts
          Not sure exactly what you are trying to do, but it should be possible to use TVs with wayfinder - see here:
          Wayfinder - TemplateVariables

          And you can define custom chunks as ’templates’ for Wayfinder to output pretty much whatever you want. Really depends on what you are trying to achieve though!