Gossamer Forum
Quote Reply
Links sorting
I need have sort priority to some links stored in my database
my links table have a "Sort" column like this def:

'Sort' => {
'binary' => '0',
'default' => 'Slim',
'file_max_size' => '',
'file_save_in' => '',
'file_save_scheme' => 'HASHED',
'file_save_url' => '',
'form_display' => 'Sort',
'form_names' => [
'Best',
'Good',
'Free'
],
'form_type' => 'CHECKBOX',
'form_values' => [
'Best',
'Good',
'Free'
],
'not_null' => '0',
'pos' => '33',
'regex' => '',
'size' => '255',
'type' => 'VARCHAR',
'weight' => ''
},


so I need to have all links with "Sort-->Good" showed before Best and Free
somebody can Help me ???


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Links sorting In reply to
you may want to change your form values to numerical values (ie, 0 = good, 1 = best, 2 = free).

under the "Setup" tab, scroll down to "Page Display and Sorting Options". Change the value for "build_sort_order_category" from:

Code:
isNew DESC,isPopular DESC,Title

to:

Code:
Sort, isNew DESC, isPopular DESC, Title

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] Links sorting In reply to
ok changed, but it's the same, the links set to Sort>good don't will be listed before than others


Thanks in Advance
Bye From Italy