121 Posts
deralex
7 years ago
2
Topic

Hey everyone,

I have a list and would like to write my own little script to order items. Is there any field for ordering section where I can put in some custom code? I've tried BeforeRender and field 42 - both don't work.

Thanks!

Alex

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
0
Level 1

beforerender should work, but I presume you will need to put it in the search form. If your changes can be done just with sql you cna use search query field (it has order section)

121 Posts
deralex
7 years ago
0
Level 1

Thanks Klas!

How do I have to use BeforeRender? Just return a value for every item? Like:

$myorder_id = .....;

return $myorder_id;

Or do I have to read out and rebuild the item-ordering the way i want?

Get a Book for SEBLOD