Page 1 of 1

sticky posts

Posted: Sun Jun 13, 2010 11:09 am
by haga
HI!
I want to publish sticky posts on a different place on the website, not on top of all other entries.

i need somthing similar to:

show only 1 sticky post
{serendipity_fetchPrintEntries category=2 limit="0,1" use_hooks=0 template="entriesStart.tpl"} -> only 1 sticky post

---- other plugins ----

{serendipity_fetchPrintEntries category=2 limit="1,5" noSticky="true" use_hooks=0 template="entriesStart.tpl"} -> rest of entries


is there a solution?
thanks in advance!

Re: sticky posts

Posted: Sun Jun 13, 2010 12:47 pm
by garvinhicking
Hi!

You would need to edit yoru default entries.tpl template file and check inside the foreach loop that no sticky entries are shown. Then you can use a different entries.tpl file (to use with {serendipity_fetchPrintEntries} that DOES show those sticky entries.

Hope I understood you properly.

Regards,
Garvin

Re: sticky posts

Posted: Sun Jun 13, 2010 2:43 pm
by haga
well, i think, i can solve this with different categories. this would be the easiest was - or is there a way to show only sticky entries?

Re: sticky posts

Posted: Mon Jun 14, 2010 12:34 pm
by garvinhicking
Hi!
haga wrote:well, i think, i can solve this with different categories. this would be the easiest was - or is there a way to show only sticky entries?
Yes, by editing the template you use to display the entry and only showing entries {if $dategroup.is_sticky}....{else}//Nothing!{/if}

Regards,
GArvin

Re: sticky posts

Posted: Mon Jun 14, 2010 5:23 pm
by Don Chambers
I personally think you should use a specific category for what you want.

Re: sticky posts

Posted: Mon Jun 14, 2010 10:33 pm
by haga
thanks for your help!
categories are a great thing :-)