2 Mar 06, 2008 17:57
In your plugin:
var $apply_rendering = 'opt-in';
will give you a checkable checkbox that, when checked, will do whatever you have the RenderItemAsHtml hook tell it to do. For multiple thingies you would probably want a way to pick which thingie gets added by enjoying the AdminDisplayToolbar hook yah? Also depending on what you're adding, just using AdminDisplayToolbar would probably be enough.
No that's not right. No toolbar because that ... would ... people could place the thingie anywhere, but that's not really right. Your RenderItemAsHtml could easily say "if you see this bit anywhere in the post remove it from whereever it is and add this stuff to the very end of the content".
Tags are one of those "peripheral" bits like author and date and cats. Not a plugin, and typically treated outside the actual post content, but I suppose one could make a plugin that snaggles the tags and does something with them inside post_content. I mean, if one was smart and had a notion to do something like that. I gave up on tags after figuring out how to make my skin say "this post is untagged" if/when I opt to not use them.