We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53161
    • 130 Posts
    Quote from: terrybarth at Apr 07, 2017, 02:09 PM
    Another option that may work for you. Put the template variable on your home page. Then use getResourceField extra, in all your templates, to pull the contents of the logo field from the home page. I've used this approach for footer content as well.

    That's actually a very good idea! Thanks!
      • 3749
      • 24,544 Posts
      Quote from: stefany at Apr 11, 2017, 11:48 AM
      Quote from: BobRay at Apr 06, 2017, 04:35 PM

      Another example would be a Template Variable that contains the name of a chunk to insert into the page.

      TVs can inject chunks??

      Yes, they can. Say you have a text TV called SelectChunk with this content:

      MyChunk


      On your page, you put this tag:

      [[$[[*SelectChunk]]]]


      The MODX parser will replace the inner tag with the contents of your TV, leaving this chunk tag:

      [[$MyChunk]]


      which will be replaced by the contents of that chunk on a later pass of the parser.



        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