We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26536
    • 6 Posts
    Hi
    I need some help figuring this out.

    I have a template with three TVs: tvUser, tvIndustry and tvHazard

    Each TV has a checklist where the user can select multiple values, for example
    tvUser has ’Student’ and ’Teacher’
    tvIndustry has Manufacturing, construction, retail, etc.

    Then I have a bunch of pages tagged with these TVs. For example a page might have
    txUser: Student
    txIndustry: Manufacturing, retail
    tvHazard: Slips
    Pages can have multiple tagging of each category

    I want to create some filter pages using Ditto. For example a page that will show all pages tagged with "Manufacturing" another "Student". Another page that will show all pages tagged with "Retail" and "Teacher" for example, and so.

    How can I do this?? Any help will be really appreciated.

    - I was looking into the ’filter’ parameter of ditto but it works on excluding. I need to include not exclude.
    - I was also looking at the tagging tutorial in (http://ditto.modxcms.com/screencast/tagging.html) but it only seems to do what category at once, I don’t know how to filter by multiple categories.

    Thanks
    Sebastian

      • 26931
      • 2,314 Posts
        • 22827
        • 129 Posts
        The filters remove, but you can use both equals and not equals.

        So your filter would be the equivilent of "remove pages where txUser != Student"