Jump to:

22984 Posts in 11765 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » $layout

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 686 Views
  • paul95
    Avatar
    Community Member
    2 Posts

    $layout Link to this post

    hi
    just installed the whole thing and i'm looking around the blackcandy theme,
    and somehow - despite the documentation - i just don't see why it's the $layout
    inside the layout-div that can be edited, in other words, that gets the html editor.

    and should i just be able to add more divs of my own containing such '$variables'
    to get parts of a site updateable?

    i will be looking around a few hours more, hopefully in the meantime there will be
    some answers to this post

    kind regards

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: $layout Link to this post

    $Layout triggers the loading of a subtemplate from the /templates/Layout/ folder. If you have a Page.ss in /templates/ which has a $Layout then it will load the /templates/Layout/Page.ss template as well. http://doc.silverstripe.org/doku.php?id=themes:developing has some information on the nested templates but doesn't go into much detail. You could think of $Layout as a 'special' kind of include which includes a template from /templates/Layout.

  • paul95
    Avatar
    Community Member
    2 Posts

    Re: $layout Link to this post

    so how do I actually make certain div's in a website that I made editable?

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: $layout Link to this post

    You should really check out the tutorials in the documentation. It will answer your questions.

    686 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.