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
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Custom template on Application

edited February 2012 in Questions

I am creating an application where I don't really need the Panel bar and so I want to remove it to gain extra room. So far i've tried copying the default.master.php to my application's view folder but it isn't working.

Is there a way to do this that I am missing?

Answers

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited February 2012

    @Stewartiee

    Just to check, I'm assuming you have set your theme in the Dashboard to your custom theme.

    Usually you should just have to comment out or delete this in default.master:

    <?php $this->RenderAsset('Panel'); ?>

    If that isn't working, you can try setting

    #Panel {display:none;}

    in custom.css

    UnderDog
  • @whu606 Yes it is set, my site has the theme set. Like I said above I copied the default.master.php file to my applications folder (in this case /applications/game/views) and removed the div panel completely but it still shows.

    I guess it's not possible for custom template on application pages?

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @Stewartiee

    afaIk the edited default.master has to be in

    themes/yourthemename/views

    Then you set 'yourthemename' to be the theme in Dashboard and the changes apply.

    Do you not want the panel on any pages, or only on some pages?

  • I don't to edit the themes view file. I want the panels to show on all pages except from my custom application pages.

    It doesn't matter now, it looks like I just need to develop some Panels to fill the space that are relevant to the application. Thanks anyway.

  • I assume you want to create an application rather than a plugin?

    grep is your friend.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    I know you can set css rules for specific pages - e.g Profile, Discussion etc by starting the rule with

    .Profile .Discussion etc.

    If you can do that for your custom page then you can reduce the panel width, and hide it with display:none

  • @x00 @whu606 Yeah I need it to be an application really. I was going to make the width bigger, but knowing an empty div was lying there was not convincing me. So I have decided to try and make use of it, although I am not going to get the layout I wanted.

Sign In or Register to comment.