Page 1 of 1

Generate list of static pages w/ smarty only

Posted: Tue Dec 09, 2008 2:00 pm
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

Re: Generate list of static pages w/ smarty only

Posted: Tue Dec 09, 2008 5:53 pm
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