Page 1 of 1

[SOLVED] Can the {sitemap} be displayed in 2 columns?

Posted: Thu Jul 17, 2008 12:10 pm
by SusanN
Hello,

Is it possible to make the sitemap appear in 2 columns instead of one long column? 

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Sun Jul 20, 2008 5:15 pm
by Pierre M.
Hello,

{sitemap} is deprecated. Use {site_mapper} instead.

But may be you should try actually templating a call to {menu}. I mean two calls, one for each column, with adequate parameters.

Pierre M.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Sun Jul 20, 2008 6:36 pm
by viebig
Ill figure out a better solution, maybe a new tag, when its ready Ill post it

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Mon Jul 21, 2008 10:03 am
by SusanN
Thanks for your replies.  I didn't realize that {sitemap} was deprecated.  I found it in Extensions > Tags.  I tried {site_mapper} and it didn't work.  Here's the error I received:

string(128) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'site_mapper' (Smarty_Compiler.class.php, line 590)"

By the way, this is for version 1.2.5 of CMS MS.

I'm not sure what you mean by calling to {menu}.  I think I understand the concept (in that it would be a listing of all the pages), but I don't understand exactly how to do it. 

Viebig, I look forward to seeing what you come up with.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Mon Jul 21, 2008 1:09 pm
by JohnnyB
Hi,
string(128) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'site_mapper' (Smarty_Compiler.class.php, line 590)"
That error is b/c the site_mapper plugin is not included with 1.2.5.  It first appears in the 1.3 release.  I think what it does is allow you to create a custom menu template to use as the sitemap.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Mon Jul 21, 2008 7:03 pm
by Dr.CSS
What is the structure of your pages and which part do you want to split?...

(optional) start_page="home" - Starts the menu displaying at the given start_page and showing that element and it's children only. Takes a page alias.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Tue Jul 22, 2008 12:32 am
by SusanN
Hmm...maybe I should go ahead and upgrade.

The sitemap is here:  e cb abb ert.com/sitemap

Right now, it's not too out of control, but soon we will be adding lots and lots of subpages to each of the subpages you see listed.  It's going to get very long, so I thought it would be great if I could display it in columns rather than one long line.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Tue Jul 22, 2008 12:42 am
by Dr.CSS
I'm sorry I should have told you that option is from the menu manager help, there may be some parameter that you can use to help split the listing of your pages using the menu tag...

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Tue Jul 22, 2008 4:36 pm
by SusanN
Okay, tell me if I'm doing this the right way.

e cba bert.com/test

And right now, here's what I have for that page:

{menu template='sitemap-menu' start_page='storm-sanitary'}

{menu template='sitemap-menu' start_page='interceptors'}

So, am I correct in posting a "new" menu template for each category?

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Tue Jul 22, 2008 4:56 pm
by Pierre M.
SusanN wrote: {menu template='sitemap-menu' start_page='storm-sanitary'}

{menu template='sitemap-menu' start_page='interceptors'}
Yes, well done, this is what I was thinking about, each in a separate div to make columns. Each may have its own template (option).

Pierre M.

Re: Can the {sitemap} be displayed in 2 columns?

Posted: Tue Jul 22, 2008 5:02 pm
by SusanN
Alright, cool!  Thanks for all the help and ideas, guys!