Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Where is the View for the category index located?
ericcarl
New
I'm attempting to add some HTML to the top of my category index page. That would be the page you see when viewing a list of discussions that belong to a category (like what you see when you click the "Questions" category link on the right of this forum).
The body tag has a class of "vanilla_categories_index" so I searched for that text in all of the Vanilla files and it doesn't show up anywhere. I've managed to find the index views of other sections (such as categories/all.php and discussion/index.php) but this View seems to be incredibly elusive. I'm getting the feeling this page is cobbled together from multiple files and conditions and might not be as easy as I thought to add some simple HTML to.
Would love some help with this, thanks!
The body tag has a class of "vanilla_categories_index" so I searched for that text in all of the Vanilla files and it doesn't show up anywhere. I've managed to find the index views of other sections (such as categories/all.php and discussion/index.php) but this View seems to be incredibly elusive. I'm getting the feeling this page is cobbled together from multiple files and conditions and might not be as easy as I thought to add some simple HTML to.
Would love some help with this, thanks!
Tagged:
0
Answers
http://vanillaforums.org/docs/views
applications/vanilla/modules/class.categoriesmodule.php
applications/vanilla/views/modules/categories.php
You would then have to load the module somewhere. I would look at the Tagging plugin for an example on how to do this, it creates a custom module and loads it in various places.
If that works, then it's just a matter of echoing some html to display what you want.
http://vanillaforums.org/discussion/15529/fr-categories-condition#Item_5
http://vanillaforums.org/discussion/17290/creating-a-unique-header-for-each-category
Tried to make it happen but it wasn't working. Hoping I can get some more help out of that thread so I'll keep you posted. Thanks!