Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Layout-Template overwrites whole page

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 783 Views
  • FlorianH
    Avatar
    Community Member
    33 Posts

    Layout-Template overwrites whole page Link to this post

    Hello SilverStripe Community,

    I've got a problem with including a Layout-Template using the $Layout Tag. Actually it works well with any other Page (or PageType) I got, so it's hard to explain what the problem really is. What I did is, I wrote a standard Template calles "Page.ss" which has the $Layout Tag in there (plus a Header and a Footer) and I wrote another Template (in the Layout/ Subfolder) which just lists some DataObjects. Anyway, when I open the Page in my browser it just shows me the Layout subtemplate without the surrounding Layout out of the standard "Page.ss". I don't really get that since Silverstripe should include the Layout Page not until the rest of the Main-Template is written (or at least the stuff before the $Layout Tag, which is the Header for example in this case). I hope you understand what I'm trying to explain and are able to help me. Thanks in advance

    Florian H.

    783 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.