Controller that populates category pages?
1) What's the controller that handles requests for category-specific discussions e.g. http://localhost//categories/?
2) I'm building a component that automatically creates a category (e.g. if doesn't exist) and filters content for and presents it. Is there a custom event/magic event/method in this controller to hook my plugin into, if i develop this logic as a plugin?
3) Finally, the function that adds a category (CategoryModel->Save) is tied to the HTML Form post returned from the dashboard .. So, i guess i'd need to write my own function that validates against duplicate category URL/Names and adds categories, correct (i.e. i can't leverage functions already written in the MVC framework)?
thanks
Kiran
Tagged:
0
Comments
Categories controller.
What are you actually trying to do?
You have BeforeSaveCategory event hook. e.g.
$Sender->Validation->AddValidationResult('Name')
etc. I already validates against the slug being unique.From my understand you actually wan to hook the post controller. Because it is a post that determines the new category. You wan to hook earlier than the validation for categories.
grep is your friend.