Generate list of static pages w/ smarty only

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Generate list of static pages w/ smarty only

Post by yellowled »

Is this possible? If so, how? :)

I'd like to create a list of static pages in a blog based on smarty only in index.tpl. What I'm looking for is something similar to the list of static pages sidebar plugin without having to use that. A cherry on top would be if I could even access those pages based on hierarchy.

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

Re: Generate list of static pages w/ smarty only

Post by garvinhicking »

Hi!

The plugin currently has no smarty API for that. You would need to use your custom config.inc.php file and create your own smarty call to the appropriate serendipity_event_staticpage::* functions, like hte sidebar currently does with it's own functions in the generate_content() variable.

You could however also use the staticpage sidebar plugin, set it to "hidden" and display it anywhere else you hlike through {serendipity_showPlugin}?

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/
Post Reply