Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi

Is it possible to give a page a title that has no editable regions

Only cause I have put the header coding in a file called header.php inside the snippets folder and embedded it using
Code: Select all
<cms:embed 'header.php' />


it works perfect but want to give my contact page a title but it don't have or need any editable regions

only ask cause I am getting the following in the title

<?php echo $title; ?>

the code looks like
Code: Select all
<title><?php echo $title; ?></title>


as in my header.php in the snippets folder is
Code: Select all
<title><?php echo $title; ?></title>


Thank you in advance

Ian
UPDATE:

I put in the header.php in the snippets folder the following

Code: Select all
<title><cms:show k_page_title /></title>


the page showed in the admin side of the CMS so entered the title Contact and saved it but is not showing on the main site, it just shows a url address

in the contact.php I have the following

Code: Select all
<title><cms:show page_title/></title>
Sorry sussed it

I had the following in my contact.php file which did not work

Code: Select all
<cms:embed 'header.php' />

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

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


so I switched it around to the following and works perfect now

Code: Select all
<cms:template title='Contact'>
<cms:editable name='page_title' label='title' type='text' />
</cms:template>

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

<cms:embed 'header.php' />
3 posts Page 1 of 1
cron