We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1330
    • 79 Posts
    I have a client that has pages that sometimes are different but then sometimes all 7 are the same. I wanted to know if there is a way to copy all of the TVs from one page to another without duplicating the document. I have about 40 TVs on each of 7 pages. During holidays the content can be different but the rest of the year it is the same, I considered doing a single page and switching but that isn’t my first pick.

    Thanks in advance.
      • 1343 ☆ A M B ☆
      • 2,213 Posts
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 1330
        • 79 Posts
        Not really what I was looking for.
        I was hoping there was a magic trick that could copy TVs that are on PageA to PageB, PageC, and PageD.
          • 3749
          • 24,544 Posts
          I don’t know of any way to copy the values (I assume that’s what you mean, rather than the TVs themselves).

          The closest thing is the default value you can set for a TV and the @INHERIT binding which will let pages inherit the values from those above them in the tree.

          You can use both together by having:

          @INHERT somevalue


          That way, if a group of pages all have the same parent, they will inherit the TV value from that parent, which could do what you want if the site is structured for it.
            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
            • 1330
            • 79 Posts
            I think that is what I want to do. I want to have 7 separate webpages and 1 master page, having the 7 pages pull movie times/titles/rating/runtime/description from the master page, but have the day & date set on each page.

            How do you use @inhert?
              • 1330
              • 79 Posts
              Okay I figured it out. You put @INHERIT in place of the tv content on the actual page.
                • 3749
                • 24,544 Posts
                Quote from: amazon3d at Jan 20, 2010, 04:24 PM

                Okay I figured it out. You put @INHERIT in place of the tv content on the actual page.

                You can do that, but you can also edit the TV itself and put @INHERIT or @INHERIT SomeValue for the default value of th TV. That way all instances of the TV will inherit their values from above.
                  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