We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29201
    • 239 Posts
    I have a "player spotlight" section on my sports related website home page. Currently the players are children of different teams containers. I have created a spotlight TV that is a radio button for the player template that can be turned on or off.

    Now, I'm looking for the best way to pull out the players that have been spotlighted? Should I do this with Ditto? I believe in Revo that GetRources handles this?

    Another thought I had was creating a multi select list TV for the home page that pulls in all players and allows manager users to select which player to spotlight.

    Has anyone solved this before?

    This question has been answered by banzai. See the first response.

      • 2762
      • 1,198 Posts
      Both solutions works.

      With Ditto you can use a filter

      [!Ditto? &parents=`2,4,6` &filter=`spotlight,yes` &tpl=`news-tpl`!]
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
        • 29201
        • 239 Posts
        Thanks Nicola!

        Can Ditto be used with ultimateparent so that I won't have to keep modifying the code when a new team is added? [ed. note: taiyo1578 last edited this post 11 years, 7 months ago.]
        • discuss.answer
          • 2762
          • 1,198 Posts
          you don't need to change the parent, when you add a new "Team Folder"

          just set the "root" as parent (&parents=`0` ) and the &depth parameter

          [!Ditto? &parents=`0` &depth=`4` &filter=`spotlight,yes` &tpl=`news-tpl`!]
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 29201
            • 239 Posts
            That is a thing of beauty Nicola! Many thanks to you!!!