Page 1 of 1
IS there a way?
Posted: Thu Aug 03, 2006 5:39 pm
by kingfhb
If possible, is there a tag to display the Global Content Title? What I am working on is a web site with content blocks set up in the Global Content area, but in order for the template to work across every page, the blocks content changes, so I can not name the blocks to the content unless I actually make the block itself part of the content which I do not want to do.
So, pull the title of the global content block that I created and display it on a page... anyone? Thanks in advance.
Re: IS there a way?
Posted: Thu Aug 03, 2006 7:44 pm
by tsw
untested but if you name your content blocks like "pre_titlename" you could get it with
{pre_$title}
Re: IS there a way?
Posted: Thu Aug 03, 2006 8:58 pm
by kingfhb
Thanks, but that did not work. Also, that would require me to put the code for the title in the actual content which I do not want to do. I want the template to pull the global content title that I need so that if the title changes, the template is updated automatically.
In other words, if this explains it better, it would be great if this tag worked... {global_content name='TopLeftBlock' title='$title'}. This would allow me to define content block areas in the Global Content Blocks section and then I could have the title of the block in my template dynamically pull from the content name.
Re: IS there a way?
Posted: Thu Aug 03, 2006 9:06 pm
by Dr.CSS
If you are putting this tag in the Content » Pages » Edit Page: yourpage then in your template above the content block you can put someting along the lines of this... it will give you a one line edit box that you can put the title in.
{content block='block1title' oneline='true'}
{content block='block1'}
Re: IS there a way?
Posted: Thu Aug 03, 2006 9:46 pm
by kingfhb
You my friend... you.... you have a gift!
Thanks! That was exactly what I was looking for! I guess I was trying to rig something to work that a solution was already in place for.
Re: IS there a way?
Posted: Fri Aug 04, 2006 3:36 am
by Dr.CSS
Thank you
But I can't take the credit for that, it was something I was looking for and Ted pointed it out to me, turns out it's in the Help for the content tag, some place I just never looked. DUH for me
