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

    Quick question; if I want to create a template with a TV....then I want that TV to call a unique chunk BASED on the page I am on.

    So for example:

    Template 1 has four TV’s for four "slots" on the page.
    These TV’s all WANT to use the @ binding but the CHUNK they call should be based on the page the template is used on.
    So for example Pages A, B, C, D all use Template 1.
    When page A wants to populate the TV’s, the CHUNKS it calls are all the chunks for page A.
    When page B wants to populate the TV’s in Template 1, the CHUNKS it calls are chunks for page B.
    And so on.

    Is this possible and if so, can anyone help me figure out the correct Binding for the TV? undecided

    Warning: I do not know any PHP! huh
      "Don't waste your time or time will waste you"
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I use TVs all the time, with an input type of textarea (or Rich Text), and just put the content I want in the TV itself. No chunk necessary. Edit as desired for each page, or use @INHERIT as the default value to set for entire sections of the site.
        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
        • 28215
        • 4,149 Posts
        You could probably employ a similar method as found in this:

        http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com