using a content block in several places on the same page
Posted: Wed Jul 13, 2011 2:36 pm
Hello all, I wonder if you can help:
I am trying to put together a template whereby I can use a simple piece of information, gathered from a one-line content block, in several places on the same page. For example, I want to be able to insert the same word in to a heading, a file name, as well as another location on the same page, which I would style differently, but the data is the same in each case.
It needs to be template driven, because I have a whole load of pages that I want to do this on, where the piece of info gets used several times on the page, but differs from page to page.
I've tried calling the same contentblock in the different places in the template, but that causes a parsing error. Global Content Blocks are no use to me, as the info has to be different on each page.
I'm stumped. I'm sure it must be possible, as CMSMS is so flexible, but I have no idea.
I hope you can help, and thanks very much for your time.
Nathan
I am trying to put together a template whereby I can use a simple piece of information, gathered from a one-line content block, in several places on the same page. For example, I want to be able to insert the same word in to a heading, a file name, as well as another location on the same page, which I would style differently, but the data is the same in each case.
It needs to be template driven, because I have a whole load of pages that I want to do this on, where the piece of info gets used several times on the page, but differs from page to page.
I've tried calling the same contentblock in the different places in the template, but that causes a parsing error. Global Content Blocks are no use to me, as the info has to be different on each page.
I'm stumped. I'm sure it must be possible, as CMSMS is so flexible, but I have no idea.
I hope you can help, and thanks very much for your time.
Nathan