Page 1 of 1

serendipity_fetchPrintEntries and sticky entries

Posted: Wed Oct 08, 2008 11:51 pm
by Krzyzak
Hi.
I would like to sort my entries called by {serendipity_fetchPrintEntries} with sticky entries(it's ok noSticky="FALSE"), but sticky entries isn't on the top of my list- how can I edit this?
EDIT
nope,
noSticky='FALSE' doesn't works :/
so, how to load sticky entries, and add them on the top ?

Re: serendipity_fetchPrintEntries and sticky entries

Posted: Thu Oct 09, 2008 12:03 pm
by garvinhicking
Hi!

What do you want to do? Get an output of all entries WITHOUT stickies, or an output of all entries INCLUDING stickies?

You can get an output with sticky entries sorted on top through {serendipity_feetchPrintEntries} without any nosticky attribute.

You can get an output WITHOUT sticky entries by using {serendipity_fetchPrintEntries limit="3" filter_sql=" ISNULL(ep_sticky.value)"}

You can get an output of all entries of the current timestamp WITHOUT pulling older articles that are sticky to the frontage by using:
{serendipity_fetchPrintEntries limit="3" noSticky=true}

You can get an output with ONLY sticky entries by using
{serendipity_fetchPrintEntries filter_sql=" ep_sticky.value = 'true'"}

HTH,
Garvin