Removing Additional Categories
|
||||||||
When submitting to IndexU based directories, you'll notice the "additional categories" field. This is great feature and many people like it, including me :). But some people do not like it and prefer simplicity with one category only. So here is how to remove the "additional categories" in IndexU safely. No source code modified, only the templates and javascript file.
First, you'll need to modify the following templates (I assume that the "kosmos" template is active) :
/themes/kosmos/add_form.html
/themes/kosmos/modify_form.html
/themes/kosmos/cp/link_modify_form.html
Remove the "additional categories" field :
Then, you'll need to adjust the /themes/kosmos/ajax.js a little bit to to prevent javascript error.
Change :
To :
Done :)
That should be enough, but if you want to adjust the editors and admin form too, then you'll also need to remove the "additional categories" field from the following templates :
/admin_tpl/link_add_form.html
/admin_tpl/link_edit_form.html
/admin_tpl/link_validate_edit_form.html
/themes/kosmos/cp/editor_link_edit_form.html
/themes/kosmos/cp/editor_link_validate_edit_form.html
Ok, that's it.
I hope this tips useful for you.









