Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,

I'm trying to make a cloneable page's <title> tag dynamic so it can be changed in the Super Admin, I've managed it with the following code in the head:

<cms:editable name='page_title' label='title' type='text' />

and the code below as the Output HTML:

<title><cms:show page_title/></title>

It has made the title of the page dynamic however it is also displaying the page title right at the top of the page, top far left hand corner causing the top navigation to drop down (see screenshot) when it should fit flush against the top of the page.

Any ideas of what I'm doing wrong?

Thanks in advance,

kind regards,

Marc :D

Attachments

Please see my reply to the following post where I try to explain the two ways of defining an editable region -
viewtopic.php?f=4&t=7524

In short, you should use one of the following two ways to define your editable region -
Code: Select all
<title><cms:editable name='page_title' label='title' type='text' /></title>

or
Code: Select all
<cms:template>
   <cms:editable name='page_title' label='title' type='text' />
   .. other editable regions may be defined here ..
</cms:template>
..
<title><cms:show page_title/></title>

Hope this helps.
Surely you could just use the following in the <head>?

Code: Select all
<title><cms:show k_page_title /> &bull; Your Website Name</title>
3 posts Page 1 of 1