Page 1 of 1

Feature request: serendipity_fetchPrintEntries skip option

Posted: Fri Jun 27, 2008 12:10 pm
by yellowled
More sophisticated templates usually use serendipity_fetchPrintEntries to display articles from one or more specific categories in distinct parts of the content area (i.e. Mimbo).

There's one small problem with this technique right now: If one, for example, uses this method to fetch articles from one category (i.e. "Features") to display them in the top area of the content, and uses {$CONTENT} to display the rest of the articles below, articles from the selected category will still show up below, which sometimes just isn't desirable.

So I was wondering whether it would be possible to add a "skip" option to serendipity_fetchPrintEntries which will fetch articles from all categories but the one(s) selected in "skip=cat1;cat2;" or something similar? If that was possible, tempate designer could use it instead of {$CONTENT} in the example given above.

YL

Re: Feature request: serendipity_fetchPrintEntries skip opti

Posted: Fri Jun 27, 2008 12:44 pm
by garvinhicking
Hi!

Not too hard. Just committed a patch so that you can now supply "hide_category" as a parameter to the function. It works just like "category", and thus you can include multiple categories if you separate them with ";". Supply the category IDs there.

Regards,
Garvin

Re: Feature request: serendipity_fetchPrintEntries skip opti

Posted: Fri Jun 27, 2008 1:11 pm
by yellowled
garvinhicking wrote:It works just like "category", and thus you can include multiple categories if you separate them with ";".
Perfect. Awesome. What else can I say? Thanks :)

YL