Patrick - thanks some plugins don't have that setup to configure categories.
Clainbehtuk,
Thank you - I tried this for the tags plugin and it still loads the form for any category even though I configured one category/subcategories from the admin area. I also disabled (not uninstall) the plugin and reloaded it, I cleared the cache/content and tried again but still it will load the form when any category is selected.
Can you please see if I did anything wrong?
function my_plugin_item_post($catId = null) {
if (osc_is_this_category('tags', $catId)) {
require_once( TAGS_PATH . 'item_form.php' ) ;
}
}
function my_plugin_item_edit($catId = null, $itemId = null) {
if (osc_is_this_category('tags', $catId)) {
require_once( TAGS_PATH . 'item_form.php' ) ;
}
}
//post
osc_add_hook('item_form', 'tags_form');
//edit
osc_add_hook('item_edit', 'tags_edit_form');
//set categories for this plugin
function my_plugin_configure_categories() {
osc_plugin_configure_view(osc_plugin_path(__FILE__));
}
osc_add_hook(osc_plugin_path(__FILE__) . "_configure", 'my_plugin_configure_categories');
Also, if I can get this to work - is it also possible to move this plugin field right below the categories dropdown?
Thanks again.