*Resolved* Question about the To-Do / Project List Plugin

Creating and modifying plugins.
Post Reply
zkitten
Posts: 3
Joined: Wed Aug 22, 2007 5:47 pm

*Resolved* Question about the To-Do / Project List Plugin

Post by zkitten »

I've tried searching, and wasn't able to find anything...
So, my question is, is there was a way I could put this on a static page, instead of taking up so much room in my sidebar?

Thank you.
Last edited by zkitten on Thu Aug 23, 2007 5:41 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Question about the To-Do / Project List Plugin

Post by garvinhicking »

Hi!

You could do so, but it involves knowledge with Smarty or some reading about it.

You'll need to use the smarty-markup plugin and put smarty code on your staticpage that uses this functionality: http://www.s9y.org/78.html, the {serendipity_showPlugin} code. Then you can set your todolist-sidebar plugin to "hidden" and only display it using the plugin command in your staticpage.

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/
zkitten
Posts: 3
Joined: Wed Aug 22, 2007 5:47 pm

Post by zkitten »

Took me a few minuets to find the plugin, but once I did worked like a charm!

For anyone else who might want to know, the specific plugin is "Markup: Smarty Parsing"
and the specific part on that page you'd need to read on is this-
{serendipity_showPlugin class="serendipity_your_nugget" id="serendipity_your_plugin:21323223efsd22aa" side="left|right|hidden|*" negate="null|true"}
This allows to emit any sidebar plugin at your choses location. Either specify the "class" or "id" parameter (NOT both!) to indicate which plugin(s) should be called. The "class" attributes specifies a Plugin classname like serendipity_plugin_flickr, and would return the output of all installed plugins. If you specify the "id" attribute, you need the actual plugin ID found in the serendipity_plugins DB table. Via the "side" parameter you can restrict the output to a certain sidebar.
Note that if you use this method to show a plugin for the left or right sidebar, that output is already displayed in your sidebar. You can set a plugin to hidden inside the Plugin Configuration Administration, and then make the Smarty function emit this hidden plugin, because hidden plugins are not contained in the sidebar. The "negate" attributes will reverse the output to show all plugins not matching the side/id/class restrictions.
I just added this-

Code: Select all

{serendipity_showPlugin class="serendipity_event_todolist" side="left|right|hidden|*" negate="null|true"}
to the page I wanted it on, and its working great!


Thank you garvinhicking!
Post Reply