| « Newsletter Plugin | Plugin Manager Plugin » |
Resume Plugin
The Idea: A plugin which creates a new Type of Post ("Resume"). Rather than the default markups (ins, del, str, em, etc.) there would be markups for dates, positions, tasks, etc. Included with the plugin would be a "print" stylesheet which would provide pretty-formating suitable for printing. Additionally, it could be protected via antispam/anti-bot or login measures (as determined by the blog author).
The Research:
- You can create new Post types by going to "Global settings" -> "Post types" -> Create a new element.
- The "Post types" tab is created in skins_adm/_adminui_general.class.php: all the tabs are generated by an array passed to add_menu_entries(); the link to "Post types" is "admin.php?ctrl=itemtypes".
- admin.php does not have "itemtypes" spelled out in it; it seems to sanitize what's passed in and then calls the requested controller: "$inc_path.$ctrl_mappings[$ctrl];"; according to conf/_admin.php, the controller mapping for "itemtypes" is "items/item_types.ctrl.php".
- inc/items/item_types.ctrl.php displays the "Post types" page.
- While we're in the inc/items directory, let's look at items.ctrl.php: the only Plugin events that are called is AdminBeforeItemEditCreate, AdminBeforeItemEditUpdate, and AdminBeforeItemEditDelete.
- items.ctrl.php uses the $AdminUI->disp_view() method to load 'items/views/_item_expert.form.php' for the "expert" new post form
- Inside the _item_expert.form.php file, the Plugin events AdminDisplayToolbar, AdminDisplayEditorButton, and AdminDisplayItemFormFieldset are called.
Except where otherwise noted, this content is licensed under a Creative Commons License.Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
No feedback yet
Comments are closed for this post.