Edit Page Plugin System


This is actually a hack.

The system enables a new type of plugin, called "editpage". All plugins of this type will output an extra pane on the edit page below Metadata (for both front- and backend).
Though this system could be much more advanced, I believe it could unleash some power to developers already!
(I hope this sort of plugin system will be included in joomla once, but since I don't have time to make it myself, here's a start :-))
This is especially powerful with the new events BeforeContentSave and AfterContentSave, because then you can actually present forms on the edit page and save them in another db. Check my example plugins below for more.

Plugins made for this system should have the following function:
function onSlide($BE, $art, $lists, $options)
..with
$BE meaning backend (true) or front end (false),
$art = article object,
$lists, $options (the ones propagated from com_content component.
..and should return an array of 2 text elements of which the first the title of the pane and the second the content of the pan.
Check my first "editpage plugin" (for this system), called Editpage - Custom Properties v001 for an example.
http://extensions.joomla.org/extensions/search-&-indexing/tags-&-clouds/7339/details
In combination with the plugin "Content - Custom Properties save", this will save Custom Properties from the edit page!!
http://extensions.joomla.org/extensions/search-&-indexing/tags-&-clouds/7340/details

No comments:

Post a Comment