sorting categories
2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 3, 2010 (RSS)
By rez - June 3, 2010 - edited: June 3, 2010
I see threads on this but I'm not understanding.
I have a list of categories in an editor.
I have another editor list of items and one of the fields is the category list dropdown, pulling from the category table.
I am listing all categories and items on my page just fine. They are in the order of my items editor.
I am also listing all categories as links in the sidebar. The category links in the sidebar are in the order that I drag them in the editor. This is what I want. Unfortunately, that doesnt change the category sort order in the items in the viewer. They remain in the order of my items editor list.
How do I sort the whole viewer by the categories? I still want all items under each category to be sorted by dragSortOrder. The point is to be able to quickly put the 5th category as category 1 in the viewer if I want.
I have a list of categories in an editor.
I have another editor list of items and one of the fields is the category list dropdown, pulling from the category table.
I am listing all categories and items on my page just fine. They are in the order of my items editor.
I am also listing all categories as links in the sidebar. The category links in the sidebar are in the order that I drag them in the editor. This is what I want. Unfortunately, that doesnt change the category sort order in the items in the viewer. They remain in the order of my items editor list.
How do I sort the whole viewer by the categories? I still want all items under each category to be sorted by dragSortOrder. The point is to be able to quickly put the 5th category as category 1 in the viewer if I want.
Re: [rez] sorting categories
By Jason - June 3, 2010
Hi,
So you want your items outputted, sorted by the dragSortOrder of the categories, each item under it's appropriate category. Is that right?
If you could attach the .php file you're working with, I can take a closer look for you.
Thanks.
So you want your items outputted, sorted by the dragSortOrder of the categories, each item under it's appropriate category. Is that right?
If you could attach the .php file you're working with, I can take a closer look for you.
Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/