Quick Start Guide
  • Vote Up0Vote Down stevecstevec November 2009
    Posts: 3


    Just finished going through the quickstart guide (http://vanillaforums.org/page/AppQuickStart) and the Hello World page works, but without the default Vanilla styling.

    I read through the View documentation, and my understanding is that without anything specific in my_app/design, it would use the default theme from garden. Is that understanding incorrect?

    One possible solution that I haven't tried yet. I looked in the garden/themes folder, and the default theme doesn't actually have any /design folder under it which the README.txt in the skeleton/design folder implies that it would need.

  • 4 Answers sorted by
  • Vote Up0Vote Down bookchiqbookchiq November 2009
    Posts: 2

    I'm wondering about this myself. Would love more details on how to make this work! :)

  • Vote Up0Vote Down SS November 2009
    Posts: 222

    @stevec
    Note that all documentation is in progress (most of docs were written a months ago, outdated)

    To add default style, your WelcomeController should looks like:
    class WelcomeController extends Gdn_Controller{

    public function Initialize(){
    if($this->DeliveryType() == DELIVERY_TYPE_ALL){
    $this->Head = new HeadModule($this);
    $this->Head->AddScript('js/library/jquery.js');
    $this->Head->AddScript('js/library/jquery.livequery.js');
    $this->Head->AddScript('js/library/jquery.menu.js');
    $this->Head->AddScript('js/global.js');
    }
    $this->AddCssFile('menu.css');
    $this->AddCssFile('garden.css');

    parent::Initialize();
    }
    // See applications\garden\controllers\appcontroller.php
    }

  • Vote Up0Vote Down bookchiqbookchiq November 2009
    Posts: 2

    @S Thanks for the helpful response! This is working well for me.

    Can you tell me how a person gets permissions to update the documentation? I would be happy to add this info (and correct a few other small errors in that Quick Start), but I'm not finding any details on how to contribute.

  • Vote Up0Vote Down MarkMark November 2009
    Posts: 4,661

    @bookchiq - I can give you permission!

Howdy, Stranger!

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

Sign In Apply for Membership

Tagged

In this Discussion