text in footer should only appear on 1 page

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

text in footer should only appear on 1 page

Post by mev »

Hi all,
I want to hade a line of text inside the footer-div, to appear only on one page.
At the same time I don't want my client to be able to edit or delete any of it.

So, for this I cannot use another content block or a global_content in the template.

How could I accomplish such a thing (also getting it at the right position in that one page, down under inside the footer)
whithout having the make 2 different templates?

Thanks very much in advance

willemijn
Last edited by mev on Fri Jun 01, 2007 3:47 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: text in footer should only appear on 1 page

Post by calguy1000 »

put the footer text (or gcb) into your page template with some smarty logic to only display it on one page:

{if $page_alias == 'home'}{global_content name='footer'}{/if}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Re: text in footer should only appear on 1 page

Post by mev »

hi callguy,
Yep this works! Thanks a lot for your help & trick !!


Willemijn
Post Reply

Return to “Tips and Tricks”