Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Modules vs. Widgets

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: 1368 Views
  • yaizo
    Community Member
    19 Posts

    Modules vs. Widgets Link to this post


    i know this must be a very stupid question: but i dont get it anyhow. i do not understand the diffrence between a Modul and Widget.
    can anybody tell me what the main diffrence is? i found this link: http://doc.silverstripe.com/doku.php?id=widgets#writing_your_own_widgets# to create own widgets. but how can i create a module? is a module in connection to DataObjectManager ?

    if anyone knows a very useful link thanks for this information ...

    m. = a greenhorn

  • JoshuaLewis
    Community Member
    76 Posts

    Re: Modules vs. Widgets Link to this post

    I haven't much experience with either but here is my understanding.

    Modules in some way extend the functionality of Silverstripe and are generally more complex in what they effect/change and how.
    Examples would be the blog or forum modules that each add a set of multiple pieces of functionality that make running a blog or forum from Silverstipe possible.

    Widgets on the other hand tend to extend the functionality of pages and are usually more simple and restricted/contained in what they effect and how.

    An analogy would be that modules are like installing a full heating and Air Conditioning system in a building versus widgets that are like putting a plug-in space heater or window AC unit in a single room.

  • Pigeon
    Community Member
    243 Posts

    Re: Modules vs. Widgets Link to this post

    A widget is a small piece of content or functionality that a CMS user can add to a site. Where as a module is added functionality that is added by the site admin to extend or enhance overall functionality of the site or CMS.

    Widgets are probably best used by have a sidebar in your design and a user could choose to add widgets you make such as:
    A quick newsletter sign-up
    a twitter feed
    latest news

    It basically means that the site is more felxible and customisable as a user can choose what widgets appear where, rather than the design being rigid and saying 'this page must have a sign-up form in the sidebar'.

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.