Footer Link

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
Winhatter
New Member
New Member
Posts: 3
Joined: Mon Jan 28, 2013 9:35 pm

Footer Link

Post by Winhatter »

Wondering how I can have a footer link show only on the home page? The below source currently shows the link at the bottom of every page.

CODE:
<!-- You can add some content here shows at the very bottom of the page -->

<p class="page-footer"><br><div align="center" ><a href="thewebsite[dot]com" target="_blank" >website[dot]com</a></div></p>

Your help would be appreciated, thanks in advance. :)
mrenigma
Forum Members
Forum Members
Posts: 48
Joined: Fri Aug 05, 2011 3:43 pm
Location: London, United Kingdom

Re: Footer Link

Post by mrenigma »

You can wrap it in an if statement, so if for instance your homepage is called "home" you could do:

{if $page_alias == "home"}
// YOUR CODE
{/if}

Alternatively just create an alternative GCB/template for the homepage.
~ Life is like water, every movement you make changes the way it flows ~
Winhatter
New Member
New Member
Posts: 3
Joined: Mon Jan 28, 2013 9:35 pm

Re: Footer Link

Post by Winhatter »

Hi mrenigma, thanks for the reply... The home page is not labelled, it just shows the URL at the home page. Though not shown, I guess index.php would be the home page.

Would this work then?

{if $page_alias == "index.php"}
// YOUR CODE
{/if}

Thanks.
Winhatter
New Member
New Member
Posts: 3
Joined: Mon Jan 28, 2013 9:35 pm

Re: Footer Link

Post by Winhatter »

Disregard my last comment if it shows about index.php. I've sorted it out and your solution works.

Thanks for the help! :)
mrenigma
Forum Members
Forum Members
Posts: 48
Joined: Fri Aug 05, 2011 3:43 pm
Location: London, United Kingdom

Re: Footer Link

Post by mrenigma »

Lol no worries, don't forget to add [Solved] to the thread title :)
~ Life is like water, every movement you make changes the way it flows ~
Post Reply

Return to “CMSMS Core”