Page 1 of 1

Sort entries by customfield

Posted: Tue Jul 07, 2009 2:40 pm
by tazilein
Hi,

I try to use the customfields from the serendipity entryplugin the first time. I am presenting several apartments on a website based on s9y. I now want to add possibilities to sort the apartments (price, location, size, persons). These details I want to add by custom fields. I would need a possibility to sort all entries using customfield1,2 or 3 up or down.

Can this be done easily or is this some work of coding?

Re: Sort entries by customfield

Posted: Tue Jul 07, 2009 3:38 pm
by garvinhicking
Hi!

For that you need to change your template to use a custom {serendipity_fetchPrintEntries} call and make use of the extended API (http://www.s9y.org/78.html) to specify 'entryprops' and/or 'orderby' clauses for the database call.

And yes, it involves some work of coding...

Regards,
Garvin