What does Description (title attribute) do exactly? Is there a way to enter info here and show it between the title tag?
{titleattribute}
What does Description (title attribute) do?
Re: What does Description (title attribute) do?
It puts out the results of description/title attribute for every page
.
And yes there's a way to do what you want
http://wiki.cmsmadesimple.org/index.php ... escription

And yes there's a way to do what you want
http://wiki.cmsmadesimple.org/index.php ... escription
Re: What does Description (title attribute) do?
I've tried putting the following betweent the tag in the template and didn't seem to do anything. I'm using pretty url, so would that cause it not to work?
Code: Select all
{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}
Re: What does Description (title attribute) do?
No, this code is for MenuManager templates (start from top of page)giggler wrote: I've tried putting the following betweent the tag in the template and didn't seem to do anything. I'm using pretty url, so would that cause it not to work?
Code: Select all
{foreach from=$nodelist item=node} {if $node->current == true} {$node->titleattribute} {/if} {/foreach}
Alby
Re: What does Description (title attribute) do?
I'll post this as it took my a while to work out, it may help others:
1) Make sure your page has something in the Description (title attribute) field.
2) Create a new template in menu manager
3) Give it a name e.g TitleDescription
4) Enter the code:
5) save it
6) add to the title tag e.g.
edited to add - or you could just use {description}
I haven't worked out how to to show {title} if the Description (title attribute) fields is empty. Any help there would be great.
Mark
1) Make sure your page has something in the Description (title attribute) field.
2) Create a new template in menu manager
3) Give it a name e.g TitleDescription
4) Enter the code:
Code: Select all
{foreach from=$nodelist item=node}
{if $node->current == true}
{$node->titleattribute}
{/if}
{/foreach}
6) add
Code: Select all
{menu template='TitleDescription'}
Code: Select all
<title> {sitename} {menu template='TitleDescription'} </title>
I haven't worked out how to to show {title} if the Description (title attribute) fields is empty. Any help there would be great.
Mark
Last edited by MarkFresh on Wed Jul 22, 2009 11:17 am, edited 1 time in total.
Re: What does Description (title attribute) do?
Thanks Mark, you made it so much easier for someone like me 
CHEERS

CHEERS
