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.

General Questions /

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

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

Template Inheritance

Go to End



Community Member, 2 Posts

4 June 2009 at 7:26pm

I am Laura and I am new to Silverstripe.
I got a Problem, because I dont have much experience with the new CMS.
I hope you can help me.
I will be thankful.
My class "TabPage" inherits / extends the "Page" class.
"TabPage" should show a TabMenu on the Top.
My class "ContentPage" inherits / extends the "TabPage".
It contains the content with my text and pictures.
So the hierarchie is: page -> tabpage -> contentpage.
I want to see the sweet "Blackcandy Outfit" ("Page") and inside i want to see the TabMenu ("TabPage") and inside my Content ("ContentPage").
Every Class has an own ".ss" file (of course).
But when i open my ContentPage with FireFox I can only see the Candy Theme and the Content, the TabMenu is desappeared.
When I delete the ""-file and open just a page of the TabPage class, then I can see the TabMenu.
But thats not what I want. I want to create a template inside of TabPage that inherits TabPage and shows the TabMenu.
Any ideas where the mistake could be?
Any inspiration?
Thank you