We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37550 ☆ A M B ☆
    • 711 Posts
    Hi all,

    Im currently working on a new site and we are using TVs a lot which is pretty neat i’m now trying to display a page where documents whos Colour TV = Blue for example but I can’t seem to work out how to do it?

    for example my template has a TV called colour (dropdown box) possible values Blue||Red||Yellow||Green

    I would then like to have a page called greencars.html and within the page it filters out all the documents where TV colour = Blue or contains Blue

    Thanks in advance.

    Aaron
      http://www.onesmarthost.co.uk
      UK MODX Hosting with love.
      • 4310
      • 2,310 Posts
      Hi Aaron,
      Try Ditto with tags, something like this:
      [!Ditto? &startID=`29` &display=`all` &tpl=`ditto_summary` &sortBy=`pagetitle` &sortDir=`DESC` &commentsChunk=`` &depth=`3` &showInMenuOnly=`1`&tagDelimiter=`,` &tagData=`tvColour` &tagMode=`onlyTags` &tags=`Blue` &noResults=`No Cars Found`!]

      Should only return the docs that have the Blue option selected in the TV Colour
        • 37550 ☆ A M B ☆
        • 711 Posts
        Thanks for that it worked perfectly smiley

        I had a feeling it was something to do with Ditto but I was trying the filter command

        Thanks again
        Aaron
          http://www.onesmarthost.co.uk
          UK MODX Hosting with love.