categ. x not on front, but as titles in sidebar: howto?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
snafu
Regular
Posts: 108
Joined: Sat Dec 17, 2005 7:34 am

categ. x not on front, but as titles in sidebar: howto?

Post by snafu »

hello!

i was scanning the forum for a while, but did not find the appropriate method for this problem.

in our little free newspaper we want to have normal articles, and private "small advertisements" too. the ads should not show up on the frontpage. it would be fine, if they could be displayed only on sidebar, reducet to the title line.

i think about writing an extra "loop" like

Code: Select all

{foreach from=$dategroup.entries item="entry"}
placed in the sidebar, but there are two difficulties:
how do i select only the categorie "ads" for the loop in the sidebar, and how do i suppress the same cat. at the frontpage?

should work with that nice smarty tool ... ?

thanks in advance!

snafu
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: categ. x not on front, but as titles in sidebar: howto?

Post by garvinhicking »

Hi!

I think you should look into the {smarty_fetchPrintEntries} function: http://www.s9y.org/78.html

Hiding a category from the frontpage can be done with the serendipity_event_startcat plugin. You'll need at least Serendipity 1.0-beta1 for this, though.

Best 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/
snafu
Regular
Posts: 108
Joined: Sat Dec 17, 2005 7:34 am

Re: categ. x not on front, but as titles in sidebar: howto?

Post by snafu »

garvinhicking wrote:Hi!

I think you should look into the {smarty_fetchPrintEntries} function: http://www.s9y.org/78.html
Garvin
oh, i thought this really was meant to PRINT articles using special css for that reason or so, providing a special "print article" link.. ok, have to try this out first.

tnx! snafu
Post Reply