[SOLVED] Showing h1 header on one page only

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

[SOLVED] Showing h1 header on one page only

Post by rhysdavies »

Is there a way of putting the h1 header on one page only (the homepage) without having to have a different template? I have tried putting it in the 'Smarty data or logic that is specific to this page' and 'Extra page attricute' in the options menu but without succcess.

Any help appreciated. 
Last edited by rhysdavies on Thu Apr 30, 2009 2:43 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Showing h1 header on one page only

Post by jmcgin51 »

you could add an if/then statement to your existing template, like

{if page_alias == "mypage"}
text
{/if}

(disclaimer - I know this is not the right code, but it should get you started in the right direction.  The concept is solid.)
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

Re: Showing h1 header on one page only

Post by rhysdavies »

jmcgin51 wrote: you could add an if/then statement to your existing template, like

{if page_alias == "mypage"}
text
{/if}

(disclaimer - I know this is not the right code, but it should get you started in the right direction.  The concept is solid.)
Brilliant - all that was needed was to put '$' before 'page_alias' and it worked perfectly.

Thanks
Post Reply

Return to “CMSMS Core”