Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Priority Categories

Quote Reply
Priority Categories
I know this has been asked a million times but all I can find info on is links. I want to know if there is a way to switch the way categories appear. I know you can change certain things in the setup but that is not quite what I need. What I need is to take certain categories and move them up in the order and take certain ones and move them down and so on. Is there a way to do this or do I need a mod?

-Thanks

-Travis
Quote Reply
Re: [tkporcel] Priority Categories In reply to
Make another column in the category table and call it 'priority' giving it the option of 1 2 3 etc.

Then give each category a rating 1 2 3 entered in this field.

Change the sort order in setup by inserting Rating ASC at the beginning of the list of sorts.
Quote Reply
Re: [Alba] Priority Categories In reply to
I made the column and have the choice of 1-9 on radio buttons, I have four categorys in one section and I gave them a rating of 1-4 each. But the order on the page has not changed. I also added a Rating ASC on the build_sort_order_category in the build section under setup. Am I missing something?

Last edited by:

tkporcel: Apr 3, 2006, 7:47 AM
Quote Reply
Re: [tkporcel] Priority Categories In reply to
Is Rating the name of your column?

The category sort order is set in
build_category_sort
Quote Reply
Re: [Alba] Priority Categories In reply to
No I called it Priority
Quote Reply
Re: [tkporcel] Priority Categories In reply to
then you need to enter your build_sort as
Priority ASC
Quote Reply
Re: [Alba] Priority Categories In reply to
When I change it to that I get an error : Can't call method "fetchall_hashref" on an undefined value at Links::Build::build_category line 699.
on my pages
Quote Reply
Re: [tkporcel] Priority Categories In reply to
Is the name priority or Priority?
Quote Reply
Re: [Alba] Priority Categories In reply to
The name of the column is Priority

And in build_sort_order_category I put Priority ASC

Last edited by:

tkporcel: Apr 3, 2006, 8:39 AM
Quote Reply
Re: [tkporcel] Priority Categories In reply to
build_sort_order_category is sorting the links within the category.

build_category_sort is for sorting the categories- further down the page.

You need to remove Priority ASC from the first and put it in the second.
Quote Reply
Re: [Alba] Priority Categories In reply to
awesome thanks that was it