Jump to:

3212 Posts in 847 Topics by 809 members

Template Questions

SilverStripe Forums » Template Questions » Embedding classes in a theme

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 737 Views
  • Anonymous user
    Avatar
    Community Member
    1 Post

    Embedding classes in a theme Link to this post

    Can you embed a class inside a theme? I am building a new theme and it has a custom HomePage class. Now this file usually lives in in .../mysite/code but I would like to include it with the theme so that it can all be easily installed.

    I was thinking that I could stick it in something like .../themes/mytheme/code and have SS pick it up, but it didn't work I've tried various things but nothing has worked so far. Whats the secret to including custom classes easily?

    Thanx!
    Richard

  • Nivanka
    Avatar
    Community Member
    382 Posts

    Re: Embedding classes in a theme Link to this post

    you problem is not clear, I might be able to help you with it though, can you explain more. If it is urgent I will be online for another couple of hours.

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