Page 1 of 1
Sitemap listed alphabetically
Posted: Tue May 02, 2006 1:29 pm
by Shana
I have
this page with long list of biog's, this is the code I use in the page:
Code: Select all
{sitemap showall='1' start_element='biogs_info'}
I'd like the list to be alphabetical, maybe with headings 'A' 'B' etc. It's an awfully long listed to move all the files up and down in the admin panel!
Is this possible?
thanks.
Shana
Re: Sitemap listed alphabetically
Posted: Tue May 02, 2006 1:41 pm
by cyberman
Why you doesn't use the glossary module - IMHO this should do what you want.
Re: Sitemap listed alphabetically
Posted: Tue May 02, 2006 5:02 pm
by Shana
Just downloading it now, I'll give it a try, thanks.
Shana
Re: Sitemap listed alphabetically
Posted: Thu May 04, 2006 11:00 am
by Shana
That didn't do what I wanted, it would mean having to add all the links manually to the glossary, as I've got the listed generated automatically with the sitemap code, it only needs sorting. But if it can't be done, then it will have to stay as it is.
However, I've put the glossary module to good use and started a glossary on the site!
Shana
Re: Sitemap listed alphabetically
Posted: Thu May 04, 2006 11:06 am
by cyberman
Have you tried to rewrite sitemap tag?
Hmm, I think the including of a order should be not so difficult (I'm not a coder for real).
Re: Sitemap listed alphabetically
Posted: Thu May 04, 2006 11:16 am
by Shana
I'm not a coder either, but I tried some of the options I know from WordPress/Smarty tags, like 'sortby' or 'orderby' but it's knowing the correct format to use. It may involve an 'if' statement and I'm hopeless at sorting those out!
I'll keep staring at it, sometimes a light comes on and I get a 'eureka' moment!
Shana
Re: Sitemap listed alphabetically
Posted: Fri May 05, 2006 3:23 pm
by Shana
Sorted, I found this Index plugin
http://forum.cmsmadesimple.org/index.ph ... 442.0.html and that solved my problem.
Shana
Re: Sitemap listed alphabetically
Posted: Fri May 05, 2006 3:30 pm
by cyberman
Great - thx for information ...
Hmm, I think there should be a board in forum or a project in cmsms forge to save such nice snippets

... I prefer a project.
What do you think, Ted ?
Re: Sitemap listed alphabetically
Posted: Sat Oct 07, 2006 6:56 am
by Lector
How is the status of this Index plugin? It worked in my very old CMSMS (at least for the authors and books in each section).
Now I tried to use it in my new CMSMS (version 1.0.2) but after copying the file in the plugins folder the following error occurred when I tried to open the tag list
Parse error: syntax error, unexpected T_ELSE in /usr/export/www/vhosts/funnetwork/hosting/dieleseecke/cmsmadesimple/plugins/function.siteindex.php on line 125
Does any of you have an idea how to solve this problem?
Thanks in advance
CMSMS version 1.0.2
PHP 4.4.4
MySQL 4.1.22
Re: Sitemap listed alphabetically
Posted: Sun Oct 08, 2006 5:10 am
by jd
Hi,
I've got another problem with 1.0.2 version - it doesn't show any results whatsoever. I used this code in my content page:
Code: Select all
{siteindex start_level="4.1" order="1"}
Re: Sitemap listed alphabetically
Posted: Mon May 11, 2009 2:35 am
by jentlefur
I know this thread is pretty much dead, but has anyone figured out a way to sort the Sitemap alphabetically? The Site Index plugin links don't work anymore.
Any help is greatly appreciated!
Re: Sitemap listed alphabetically
Posted: Mon May 11, 2009 6:22 am
by Sonya
jentlefur wrote:
I know this thread is pretty much dead, but has anyone figured out a way to sort the Sitemap alphabetically? The Site Index plugin links don't work anymore.
Any help is greatly appreciated!
Please see the content_dump plugin
http://wiki.cmsmadesimple.org/index.php ... Sort_items
Primary sorting of data elements
first_sort sorts the found content by one of the following values: id, title, .....
This should do it.
Re: Sitemap listed alphabetically
Posted: Mon May 11, 2009 6:28 am
by jentlefur
Thanks Sonya! That's exactly what I needed.