-
- 109 Posts
Hi,
I’m looking for a simple way to repeat Template Variables. In previous design, I have created a number of TVs as "advertisement blocks" set in a right column eg AdvertBlock1, AdvertBlock2. Then, if admin doesn’t complete all blocks, you are left with empty divs.
The problem with doing it this way:
* It clutters the interface for backend of each page; you have to load the WYSIWYG icons for all blocks even if you aren’t using them.
* If you apply some styles to divs eg. borders, then the the empty div will appear on the page.
What would be good would be the ability to set a repeat for a Template Variable in the page. By default the TV would appear once, but in each page you would be able to set a repeat value next to each TV title. When you change the value to 2, and Save the page reloads with 2 TVs.
Any ideas on how to achieve this, or other solutions [other than amalgamating the TVs into a single TV and relying on the editor to format the content using the WYSIWYG editor]
Thanks
Richard