[geeklog-devel] On to the next release

Joe Mucchiello joe at ThrowingDice.com
Sun Sep 2 00:30:37 EDT 2007


One more feature request. How about we settle the 
PLG_templateSetVars/PLG_itemSaved issue from January? Either change 
the API as I described or at least add the calls to these existing 
functions where they should be.

For example only stories supports calls to PLG_templateSetVars and 
PLG_itemSaved. Of course, missing is PLG_itemDeleted but that could 
be covered by a 3rd parameter to PLG_itemSaved. Users, groups and 
comments have custom functions that do the same thing (mostly). I've 
added calls to setvars and itemsaved to calendar (and I've got a file 
of altered functions that i'm using to bridge between 1.4.1 and the 
1.5 changes to stuff like ADMIN_list.) How hard would it be to do the 
same thing in polls and links and whereever else they should be? 
Calls to PLG_templateSetVars should be just about everywhere there's 
a major call to parse.

One more thing. There should be a call to 
Template->set_vars('unique_id', $id) so that inside 
plugin_templatesetvars_$plugin, you can find the id of the item being 
displayed. Doing so probably also helps with theming.

----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com 




More information about the geeklog-devel mailing list