Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Layout Template Selection

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

Page: 1
Go to End
Author Topic: 906 Views
  • StuM
    Community Member
    56 Posts

    Layout Template Selection Link to this post

    Hi All,

    I have a site that uses 2 themes, one for desktop and one for mobile. I'm in the early stages so are currently just using Blackcandy for both.

    I have a page class called a ProductPage. I want a common layout loaded for this that both themes can use, so I don't want to duplicate that template. So I have the following structure which I thought would work:

    1. in mysite/_config.php => project = 'mysite'
    2. sub-template => mysite/templates/Layout/ProductPage.ss

    I assumed(and I'm sure I've done it before) that it would look in this order:

    1. /themes/blackcandy/Layout/ProductPage.ss
    2. /mysite/templates/Layout/ProductPage.ss
    3. /themes/blackcandy/Layout/Page.ss

    as it is, it displays #3, #1 isn't there and it doesn't seem to be able to find #2.

    Is there a way I can achieve this?

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.