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.

Via the url can I render a view in a different MasterView (or is this just for Custom Pages)

I have 2 questions:
In Custom Pages I can use: to render (correct term?) mycustom html in my custom master view.

Is it possible to do something similar for other views and plugins? I would like to have a link to my landing page which would be identical to my but with a different master view file. I would still like to keep the discussions view with the current masterview file however.

If this isn't possible I apologise in advance but I'll be asking a question on how to show the discussions view in the content area of my Custom Page, after my own images and text html.

Thanks again, I'm trying hard but don't really understand much more than the html or css for Vanilla/Garden.


  • Options
    x00x00 MVP
    edited March 2013

    first master template and view are different concept.

    You would have to do what you want with a themehooks or plugin (you would have to read the docs and wiki).

    you could do something like

    public function DisicussionsController_Render_Before($Sender){
         $Sender->View=$this->GetView('myview.php');// in the plugin's views folder
         $Sender->MasterView=$this->GetView('my');// in the plugin's views folder put my.master.php

    if you put the master template in your themes views naming it my.master.php you can refer to it like so


    you can also use .tpl files with smarty.

    grep is your friend.

  • Options

    Thanks again!

Sign In or Register to comment.