Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Extending LeftAndMain in Slverstripe 3

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 473 Views
  • SS_Learner
    Avatar
    Community Member
    18 Posts

    Extending LeftAndMain in Slverstripe 3 Link to this post

    Hi Friends
    I have created a class test extending LeftAndMain and it is in test.php. Now when i created a template file with name test.ss ,it doesn't go there,it searches for test_Content.ss,and gives error that this file doesn't exists.
    Can any one please explain me this behavior in SS3 /SS3.1 ?
    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Extending LeftAndMain in Slverstripe 3 Link to this post

    By default, you need to name your template YourClassName_Content.ss to create the "main" section of LeftAndMain in SS3.

  • SS_Learner
    Avatar
    Community Member
    18 Posts

    Re: Extending LeftAndMain in Slverstripe 3 Link to this post

    Thanks Uncle Cheese for this quick reply.
    Can u also help me with another question that when i am making a jstree in myclassname_Content.ss,it doesn't form the tree but i have checked all the required JS is already included in the SS3 CMS(i.e jquery.jstree.js and jquery.js),so in init i just have included my classname.js file which has the code to make the jstree.
    Thanks

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