Sitemap listed alphabetically

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.
Locked
Shana

Sitemap listed alphabetically

Post 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
cyberman

Re: Sitemap listed alphabetically

Post by cyberman »

Why you doesn't use the glossary module - IMHO this should do what you want.
Shana

Re: Sitemap listed alphabetically

Post by Shana »

Just downloading it now, I'll give it a try, thanks.

Shana
Shana

Re: Sitemap listed alphabetically

Post 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
cyberman

Re: Sitemap listed alphabetically

Post 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).
Shana

Re: Sitemap listed alphabetically

Post 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
Shana

Re: Sitemap listed alphabetically

Post by Shana »

Sorted, I found this Index plugin http://forum.cmsmadesimple.org/index.ph ... 442.0.html and that solved my problem.

Shana
cyberman

Re: Sitemap listed alphabetically

Post 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 ?
Lector
Forum Members
Forum Members
Posts: 65
Joined: Tue Aug 16, 2005 2:04 pm

Re: Sitemap listed alphabetically

Post 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
jd

Re: Sitemap listed alphabetically

Post 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"}
jentlefur
Forum Members
Forum Members
Posts: 10
Joined: Thu Mar 26, 2009 2:16 pm

Re: Sitemap listed alphabetically

Post 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!
Sonya

Re: Sitemap listed alphabetically

Post 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.
jentlefur
Forum Members
Forum Members
Posts: 10
Joined: Thu Mar 26, 2009 2:16 pm

Re: Sitemap listed alphabetically

Post by jentlefur »

Thanks Sonya! That's exactly what I needed.
Locked

Return to “CMSMS Core”