We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    You can also use Radio buttons for the Input Option Values.

    To explain the example above, (with the || and == symbols). It’s actually really simple. The minimum version would just have the pipes. Say your three banners are red, blue, and green.

    In the Input Option Values field:
    name_of_red_chunk||name_of_blue_chunk||name_of_green_chunk


    In this version, the manager/editor would see the three choices and whichever one is selected will show up in the TV content tag [*tv_name*]. This won’t work for what you want because it will just print the name of the selected chunk rather than showing the content of that chunk. To make it output the the chunk, you need to add {{ ... }} to make it a chunk tag.

    {{name_of_red_chunk}}||{{name_of_blue_chunk}}||{{name_of_green_chunk}}


    Now the contents of the selected chunk will appear wherever you put a [*tv_name*] tag.


    The extended version adds double equals signs and a value after each choice. The first part (before the ==) is what appears when someone edits a document with the TV, the part after the == shows up in the TV content tag [*tv_name*].

    red=={{name_of_red_chunk}}||blue=={{name_of_blue_chunk}}||green=={{name_of_green_chunk}}


    You could use the simple version, or you could use the fancy version -- your choice. The only difference would be how things look when editing a document with the TV.

    Hope this helps.
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 33160
      • 24 Posts
      Thanks Bobray ,sotwell and Mediaguy for your responses.

      My timezone is different from most of you guys’ own thats why my replies may come late.

      I tried creating the TVs( I created the tv alright). But i didnt quite get what i wanted . So I will print out this page and follow all your instructions well and get back to you helpful people.

      This is probably the begining of moving all my static sites to modx first then the joomla ones. Modx can make all designs work as a cms but I need to get the hang of TVs and then the Ditto.
      Thanks
        • 33160
        • 24 Posts
        First of all, I would like to thank all you guys that gave me tips on using TVs. It was really appreciated.

        This is rather belated but i need to say it anyway.

        I took all your tips and yes, i got it to work as i wanted. It was so easy to change site look and imagery based on the document displayed. Thanks y’all. The only snag is that i still had to use joomla for the hotel reservation page(so i had two CMSs in the same domain). If only i could find something to use to mimic a reservation system here. After, installing Modx with fewer files to unpack and install, i dreaded having to use joomla again but unfortunately, i had to.

        All in all, I have decided to be using Modx from now and hope that i will be able to find stand alone tools for things like reservations and directories so that i dont have to go back to joomla again.

        Thanks for the tips once again