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.
-
☆ A M B ☆
- 2,213 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.
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:
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.
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?
Okay I figured it out. You put @INHERIT in place of the tv content on the actual page.
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.