[SOLVED] Unwanted line breaks for Menu Tag?

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
ilene
Forum Members
Forum Members
Posts: 32
Joined: Tue Dec 16, 2008 10:13 pm

[SOLVED] Unwanted line breaks for Menu Tag?

Post by ilene »

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!
Last edited by ilene on Tue Dec 30, 2008 7:22 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Unwanted line breaks for Menu Tag?

Post by Nullig »

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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Unwanted line breaks for Menu Tag?

Post by Nullig »

Or you could create a new menu template under Menu Manager for your footer menu. Call it footer_menu and use this code:

Code: Select all

{if $count > 0}
{foreach from=$nodelist item=node}
<a href="{$node->url}">{$node->menutext}</a> |
{/foreach}
{/if}
then your footer would be:


   ©2009 The Organization Name. All Rights Reserved. {menu number_of_levels="1" includeprefix="sitemap" template="footer_menu"}


Nullig
ilene
Forum Members
Forum Members
Posts: 32
Joined: Tue Dec 16, 2008 10:13 pm

[SOLVED] Re: Unwanted line breaks for Menu Tag?

Post by ilene »

Thank you again Nullig. Your last solution worked just fine, even when I add additional pages to the footer.
Post Reply

Return to “CMSMS Core”