IS there a way?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
kingfhb

IS there a way?

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: IS there a way?

Post by tsw »

untested but if you name your content blocks like "pre_titlename" you could get it with

{pre_$title}
kingfhb

Re: IS there a way?

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: IS there a way?

Post 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'}
     
kingfhb

Re: IS there a way?

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: IS there a way?

Post 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  ;)
Locked

Return to “Layout and Design (CSS & HTML)”