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

    I’ve got the following issue:
    I got a folder containing different documents where some sort of seminars are documented.
    Well, some still took place and some are outstanding and to be held somewhen in the future.

    I need to divide all this documents into "past"-section and "outstanding"-section, clicking on a "Past"-link you get a list of all seminares that are still done and the other way round.

    So i was wondering how you do that ... with a TV maybe?
    I’m sure someone out there knows what i mean, would be glad for every help!

    Thanks, Simon
      • 18397
      • 3,250 Posts
      I would use a checkbox tv to toggle whether the event has been completed or not. Then you could use a simple filter to either remove or only show the events that are completed.
        • 25876
        • 79 Posts
        yea, theoretically that was what i thought.

        but practically, i don’t really know what to do.
        Could you give me sort of an example?
        Never worked with filters before ...

        Thanks a lot!
          • 18397
          • 3,250 Posts
          This works the same way in theory: http://ditto.modxcms.com/tutorials/promote-to-front-page.html

          This page should give you an overview of how filters work: http://ditto.modxcms.com/tutorials/basic_filtering.html
            • 25876
            • 79 Posts
            okey, thanks a lot, Mark

            I’ve got it working with a text-tv, containing either 0 or 1; works fine
            but now i failed get it working with a checkbox-tv ... how do i say the filter whether the checkbox is checked or unchecked?

            I’ve tried filter=`SeminarGehalten,No,2` , but I get all documents, checked and unchecked ones as well

            so how do i do that?
            Thanks again!
              • 18397
              • 3,250 Posts
              Try these settings and then &filter=`SeminarGehalten,No,2`should work.
                • 25876
                • 79 Posts
                okey, that now works perfectly.

                thanks again for your help!