serendipity_fetchPrintEntries and sticky entries

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Krzyzak
Regular
Posts: 41
Joined: Mon Oct 16, 2006 1:13 pm

serendipity_fetchPrintEntries and sticky entries

Post 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 ?
Sorry for my language errors- It`s not my native language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_fetchPrintEntries and sticky entries

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply