Quick Start Guide

  • 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.
  • I'm wondering about this myself. Would love more details on how to make this work! :)
  • SS
    Posts: 453
    @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
    }

  • @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.
  • MarkMark
    Posts: 4,880
    @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!

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

In this Discussion

Who's Online 7

Jongosnaturalbirthmamanewuser2paintballer82sois1193yofal422