Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » the future of widgets

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1552 Views
  • Nicolaas
    Forum Moderator
    213 Posts

    the future of widgets Link to this post

    Hi Silverstripers

    Widgets are a fantastic idea, but in the documentation they are listed as if the widgets were part of the blog module perse. In the documentation, I have added a section "how to add widgets to other pages": http://doc.silverstripe.com/doku.php?id=widgets#adding_widgets_to_other_pages

    What is the philosophy on widgets - should all loaded widgets be available to all pages - or should widgets only be available to blog holders or ....?

    For me, I would like to see the following:

    Class MyPage extends Page {

    static include_widgets = Array(



  • asfahaan
    Community Member
    6 Posts

    Re: the future of widgets Link to this post

    Hi Thanks for this!

    I was looking for a solution to add widgets to normal pages other than Blog!

    Can you please tell me which file iam suppose to change "class Page extends SiteTree {}"?


  • Willr
    Forum Moderator
    5511 Posts

    Re: the future of widgets Link to this post

    class Page extends SiteTree {}

    that would be the Page.php file in your code. Each class has its own File and all the code for your site is located within mysite/code

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.