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

    I have 2 templates, one for the home page and one for subsequent pages. The subsequent pages have a sidebar containg 3 banners. I have created a tv for each banner (i.e. [*banner1*][*banner2*][*banner3*]) so they can be easily changed in the manager. However these banners probably won’t change from page to page so rather than have to add the same content to the tv’s on each page i wondered if there was a way to set this globally?

    Thanks for any help

    G
      • 4172
      • 5,888 Posts
      If they are allways the same on each page create chunks instaed of TVs and put them with

      {{banner1}}{{banner2}}{{banner3}}

      on your Templates.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The key word here being "probably". Also TVs are not stored in the site cache, while chunks are, so adding more chunks just enlarges the cache. The TVs can be given the default value, so it doesn’t need to be edited for each resource. You can also easily "hide" TVs from editor users using various methods from ManagerManager rules to ordinary manager user group/resource group methods.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 11336
          • 20 Posts
          Hi and thanks for the replies.


          So what would i add in the default value?
          would it be the link to the banner?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Whatever would be in the chunks. Treat the TVs like variable chunks. You can even make them Rich Text fields if you want to.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org