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
Feature request: serendipity_fetchPrintEntries skip option
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Feature request: serendipity_fetchPrintEntries skip opti
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
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
# 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/
# 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/
Re: Feature request: serendipity_fetchPrintEntries skip opti
Perfect. Awesome. What else can I say? Thanksgarvinhicking wrote:It works just like "category", and thus you can include multiple categories if you separate them with ";".
YL