I'm trying to create a one line footer at the bottom of every page on my page template, that reads as follows:
©2009 The Organization Name. All Rights Reserved. | sitemap |
The code I'm using below is for some reason putting the site map on its own line and the vertical line followin sitemap is also on it's own line. So what I want to be one line is winding up to be 3 lines as follows:
©2009 The Organization Name. All Rights Reserved. |
sitemap
|
Here's the code. What can I change to make the entire footer appear on one line?
©2009 The Organization Name. All Rights Reserved. |{menu number_of_levels="1" includeprefix="sitemap"}|
Thanks!
[SOLVED] Unwanted line breaks for Menu Tag?
[SOLVED] Unwanted line breaks for Menu Tag?
Last edited by ilene on Tue Dec 30, 2008 7:22 pm, edited 1 time in total.
Re: Unwanted line breaks for Menu Tag?
If you're only having one link, why not just use a link to the sitemap page, instead of a menu call:
{cms_selflink page='sitemap page id' text='sitemap'}
or you could try using the minimal menu template:
{menu number_of_levels="1" includeprefix="sitemap" template="minimal_menu.tpl"}
Nullig
{cms_selflink page='sitemap page id' text='sitemap'}
or you could try using the minimal menu template:
{menu number_of_levels="1" includeprefix="sitemap" template="minimal_menu.tpl"}
Nullig
Re: Unwanted line breaks for Menu Tag?
Or you could create a new menu template under Menu Manager for your footer menu. Call it footer_menu and use this code:
then your footer would be:
©2009 The Organization Name. All Rights Reserved. {menu number_of_levels="1" includeprefix="sitemap" template="footer_menu"}
Nullig
Code: Select all
{if $count > 0}
{foreach from=$nodelist item=node}
<a href="{$node->url}">{$node->menutext}</a> |
{/foreach}
{/if}
©2009 The Organization Name. All Rights Reserved. {menu number_of_levels="1" includeprefix="sitemap" template="footer_menu"}
Nullig
[SOLVED] Re: Unwanted line breaks for Menu Tag?
Thank you again Nullig. Your last solution worked just fine, even when I add additional pages to the footer.