Jump to:

23455 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Template Inheritance

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

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

Page: 1
Go to End
Author Topic: 687 Views
  • sweetlaura
    Avatar
    Community Member
    2 Posts

    Template Inheritance Link to this post

    Hi,
    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 "ContentPage.ss"-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

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