How to embed plugin pane seperately?

Having trouble installing serendipity?
Post Reply
sandor
Posts: 2
Joined: Wed Jun 01, 2005 4:26 am

How to embed plugin pane seperately?

Post by sandor »

Hello all!

First I want to say thanks for this great app.. I am using a shared deployment with the embeded option to pass the data through my own handrolled template system.. I looked at a lot of other programs that couldn't quite do everything I needed before I found s9y - great job!!

Ok - my question:

I am using the embeded option with ob_get_contents() on the default index.php.

This returns the whole blog; I would like to get it seperated into two items instead, one that is the plugins pane - and one that is the main area. What would be the best way to do this?


Thanks!

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

Re: How to embed plugin pane seperately?

Post by garvinhicking »

I used this method once as well.

Now that we have smarty Templates though, I have gotten rid of the ob_* methods and now directly use Smarty functions ot get what I want.

You can basically also make this work. Edit your index.tpl file and there just uncomment all the sidebar plugin output. Then your ob_get_Contents() will get you the blog content.

Now, since you already included the s9y framework, you can get the Sidebar output easily anywhere you want. Just use this:

Code: Select all

echo serendipity_plugin_api::generate_plugins('left');
I hope that should do the trick :)

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/
sandor
Posts: 2
Joined: Wed Jun 01, 2005 4:26 am

Smashing!

Post by sandor »

Thanks,

That was it!

I considered using smarty, but these blogs are to be installed into pages of sites on a server using my self-editing system.. It's easier to simply get the blog data..

Or maybe not - I've been wrong before.. :)

Cheers!
-sandor
Post Reply