Forums
This topic is locked
populating <title> tag with template region ?
Posted 17 Nov 2003 12:52:45
1
has voted
17 Nov 2003 12:52:45 richard thomas posted:
Hi,I'd like to be able to set the <title> of my pages with the template region 'headingText' region set in my pages template. Is this possible ?
I just want to automate the new page process a bit more for my clients when they create a new page in Contribute.
Replies
Replied 22 Nov 2003 06:24:45
22 Nov 2003 06:24:45 Nozomi Kugita replied:
Do you mean that you want to create a template that allows users to edit document title? If so, here what you can add:
<!-- #BeginEditable "doctitle" --> <title>Untitled Document</title><!-- #EndEditable -->
- Noz
<!-- #BeginEditable "doctitle" --> <title>Untitled Document</title><!-- #EndEditable -->
- Noz
Replied 22 Nov 2003 14:00:09
22 Nov 2003 14:00:09 richard thomas replied:
Hey Noz,
No, not that simple. The page title and the page heading (heading of content actually on the page) are the same. So instead of the content manager writing the heading twice, in the 'title' section and on the page I wanted to add it somewhere and populate the other.
As it happens, I've discovered how, using template parameters, setting the parameter to the title text and this then applies it to each instance of that parameter. In this case the <title> tag and the page heading placeholder.
Thanks for your input, and sorry I didn't feed the result to this forum sooner.
No, not that simple. The page title and the page heading (heading of content actually on the page) are the same. So instead of the content manager writing the heading twice, in the 'title' section and on the page I wanted to add it somewhere and populate the other.
As it happens, I've discovered how, using template parameters, setting the parameter to the title text and this then applies it to each instance of that parameter. In this case the <title> tag and the page heading placeholder.
Thanks for your input, and sorry I didn't feed the result to this forum sooner.