In a previous website, I used this to create the TITLES
Code: Select all
{capture assign='titledescription'}{title} {if isset($workpage)}- {$year} | {foreach from=$mediatypes item='specifications' name="media"}{$specifications}{if $smarty.foreach.media.last} {else}, {/if}{/foreach}{else} | {sitename}{/if} - {if !isset($workpage)}{global_content name='strap'}{else}{sitename}{/if} {/capture}
{if $page_alias == 'home'}
<title>{sitename} - {global_content name='strap'}</title>
{else}
<title>{$titledescription}</title>
{/if}
Before trying to use CGHeadMaster, I tried adding :-
Code: Select all
{$titledescription=$titledescription scope=global}
The top of the template looks like this :-
Code: Select all
{strip}
{content assign="capturedcontent"}
{$theme_path = "{uploads_url}/cp/"}
{cms_selflink dir='previous' assign='prev_page'}
{cms_selflink dir='next' assign='next_page'}
{share_data scope=global vars='theme_path,capturedcontent,prev_page,next_page,year' }
{process_pagedata}
{/strip}
So far, without success :-
In my page template :-
I can't even get this to work
Code: Select all
{if isset($workpage)}
{cghm_config_set key='title' val={$year} }
or
{cghm_config_set key='title' val=$year }
or
{cghm_config_set key='title' val='$year' }
{/if}
Code: Select all
{cghm_config_set key='title' val='{title} {if isset($workpage)}- {$year} | {foreach from=$mediatypes item='specifications' name="media"}{$specifications}{if $smarty.foreach.media.last} {else}, {/if}{/foreach}{else} | {sitename}{/if} - {if !isset($workpage)}{global_content name='strap'}{else}{sitename}{/if}'