Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 14

CurtisOdenPistachiosRicardo_ViteriUnderDogericgillettetc74422 +7 guests

Getting Categories Controller to use it's own discussions.php view

I'm trying to make a plugin that shows subcategories on top of discussions in Categories page... (http://domain/categories/category-name/)

I found out that CategoriesController::Index() is not using discussions.php that is in it's own view folder. But insted it's using the one in /applications/vanilla/views/discussions/discussions.php

Please refer to image below :

imageshack.us/photo/my-images/818/68596514.png/

It seems like this is intentional... (look at class.categoriescontroller.php line:141)

I tried changing some lines (in class.categoriescontroller.php and /applications/vanilla/views/categories/discussions.php) but i keep getting the Bonk page.

  1. I want to know why?

  2. How to force it to use it's own view?

  3. How to override a view in your plugin? (leaving original files untouched)

Comments

  • Posts: 78 Accepted Answer

    Nevermind...

    It doesn't have it's own view.

    That /views/categories/discussions.php is for Categories::Discussions( ), not Categories::Index( )

Sign In or Register to comment.