where is serendipity's smarty initialization

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tjotoole
Regular
Posts: 5
Joined: Sun Mar 20, 2005 7:01 pm

where is serendipity's smarty initialization

Post by tjotoole »

I would like to be able to write my own smarty plugins for use with serendipity, and keep these plugins in a separate "myplugins" directory.

To do this, I need to be able to access the smarty object serendipity is using and change the designed plugins directory settings -- but I can't find where that object is initialized by serendipity.

Can anyone point me in the right direction?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: where is serendipity's smarty initialization

Post by garvinhicking »

Sure: include/functions_smarty.inc.php - function serendipity_smarty_init(). :-)

Have fun,
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/
tjotoole
Regular
Posts: 5
Joined: Sun Mar 20, 2005 7:01 pm

Post by tjotoole »

I am trying to set the plugin_dir to an array that will point to the default plugin directory AND a plugin dir off my template directory.

The following seems like it should work, but it doesn't:

$serendipity['smarty']->plugin_dir = array($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE, $serendipity['smarty']->template_dir . "/plugins");

Thanks for any suggestions.
Post Reply