Sorting order in category_list

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

Sorting order in category_list

Postby jensfx » Mon Jul 30, 2012 1:52 pm

in the flatfile version of pivotx their is the failure :
about Sorting order. sortingwill be work onlyin alphabet order , itdont work withthe order numbers.
see thisthread :
viewtopic.php?f=9&t=2222&p=12016&hilit=order#p12016

i used the new version 2.3.3

one user wirte at the end:
A method to order categories as you want:

[[category_list only="noticias" format='<li><a href="%url%">%display%</a></li>']]
[[category_list only="eventos" format='<li><a href="%url%">%display%</a></li>']]
[[category_list only="galeria" format='<li><a href="%url%">%display%</a></li>']]
[[category_list only="videos" format='<li><a href="%url%">%display%</a></li>']]

but i dont know want should ichange ?
wish file ?

thx for help.
jensfx
 
Posts: 18
Joined: Wed Feb 22, 2012 9:45 pm

Re: Sorting order in category_list

Postby Harm10 » Mon Jul 30, 2012 4:52 pm

The proposed solution is to specify several category lists in your template. The only parm limits the category list output to that category only. So you can set the sequence to what you want. Does this answer your question?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Sorting order in category_list

Postby jensfx » Mon Jul 30, 2012 6:08 pm

I have the solution !!!

first i copy the code snippet from another template, is like like this .
[[ pagelist chapterbegin="<ul class="mmenu" >"
pages="<li %active%><a href='%link%' title='%subtitle%'>%title%</a></li>"
chapterend="</ul>"
onlychapter=""
isactive="id='active'"
exclude=""
sort="title"
]]

after ichange the code to this ( cut 3 spaces/breaks it workes )


[[ pagelist chapterbegin="<ul class="mmenu" >" pages="<li %active%><a href='%link%' title='%subtitle%'>%title%</a></li>"
chapterend="</ul>"
onlychapter=""
isactive="id='active'"
exclude=""sort="title"
]]
jensfx
 
Posts: 18
Joined: Wed Feb 22, 2012 9:45 pm

Re: Sorting order in category_list

Postby Harm10 » Mon Jul 30, 2012 6:15 pm

I don't get it. A page list is something entirely different than a category list. Categories contain entries, not pages.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron