Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

Issue to use Template to display new class


Go to End


2 Posts   1525 Views

Avatar
IgorC

Community Member, 1 Post

4 October 2009 at 5:17am

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 ?

Avatar
baba-papa

Community Member, 279 Posts

4 October 2009 at 7:56am

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