Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » Issue to use Template to display new class

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

Page: 1
Go to End
Author Topic: 894 Views
  • IgorC
    Avatar
    Community Member
    1 Post

    Issue to use Template to display new class Link to this post

    Hello,

    I have created a DHTML menu which follow silverstripe DB content.
    For the integration I have implemented 1 new class called Dhtmlmenu.php in mysite/code as extends of Page class .
    I can use the new page type Dhtmlmenu in the administration of Silverstripe.
    However i am not able to locate where my template ss page should be located.
    I am using a customized theme. where should I put the template SS file to use my new class ?

    Could you please advise ?

    Attached Files
  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Issue to use Template to display new class Link to this post

    Hello IgorC,

    like inheritance of classes the templates are inherited. As lang as you have not created an own template for your new class Dhtmlmenu it will use the template of the Page class which is themes/[themename]/templates/Page.ss.
    Read the chapter Templates, I would recommend to study the whole tutorial before starting with SS.

    Cheers,

    baba-papa

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