I am embeding Serendiptiy in another php project. There are some notes on that projects' knowledgebase saying that the following code snippet may be used to create sidebars:
However, they neglect to say which file to include so that the serendipity_plugin_api class is available. Also, I have been looking over the technical documents on the Serendipity website, and I don't see any reference to this kind of thing. Does anyone have any suggestions?
Actually, all of Serendipity needs to be started, so we can initialize the plugins -- especially sidebar plugins. I'd say your best bet is to include index.php, but buffer the output and not print it. Then you can generate the sidebars separately wherever you want.
If nobody is going to visit the Serendipity blog, you could even cut the template down to the bare minimums, not even generating sidebars or calling entries.tpl.
Actually for including the s9y framework it should suffice to include the "serendipity_config.inc.php" file. Make sure to chdir() to the s9y directory first so that all relative paths can resolve properly. After that you can chdir() back to your original directory...
Could you tell us which PHP project you are referring to?
HTH,
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/