Page 1 of 1

Build a sidebar plugin to for external links in page content

Posted: Fri Mar 09, 2007 6:55 am
by goya
I am trying to build a siderbar plugin to display some external links in page content area.

As I am new to PHP, can anyone give me some advices on the steps and which files I need to modify. Thank you.

Re: Build a sidebar plugin to for external links in page con

Posted: Fri Mar 09, 2007 10:46 am
by garvinhicking
Hi!
goya wrote:I am trying to build a siderbar plugin to display some external links in page content area.
You can't do that with a sidebar plugin. A sidebar plugins displays content in the SIDEBAR area, not the page content area.

Only event plugins can do that, like the staticpage event plugin.
As I am new to PHP, can anyone give me some advices on the steps and which files I need to modify. Thank you.
To write plugins, you best look at the API at http://www.s9y.org/43.html, http://www.s9y.org/78.html and http://www.s9y.org/116.html - and then look at existing plugins to take them as working examples.

Depending on what exactly you want to do, it might be best done with simply editing your template's index.tpl file, where you can also place custom content. Or you could use the serendipity_event_pagenugget (HTML Page Nugget) plugin to position content on the header/footer of your blog.

Best regards,
Garvin