Jump to:

791 Posts in 369 Topics by 303 members

Widgets

SilverStripe Forums » Widgets » How to add widget on frontpage

Discuss SilverStripe Widgets.

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

Page: 1 2 3
Go to End
Author Topic: 8665 Views
  • chilleze
    Avatar
    Community Member
    5 Posts

    Re: How to add widget on frontpage Link to this post

    @ Roterl
    i'm new to silverstripe and I using the earthling theme. I installed the widges manager plugin.
    When i add widges to page/pages i dont see them on the page after save and publish.
    Where do i go wrong? Any help is much appreceated.
    BTW the widges managers plugin is great

  • roterl
    Avatar
    Community Member
    44 Posts

    Re: How to add widget on frontpage Link to this post

    hi Chilleze,
    You need to modify the file templates/page.ss - replace the $Sidebar with $SidebarWidgets.
    Also, make sure to select the managing type to "managed" and the widgets you set on the pull-down.

    thanks for the feedback,

    Rotem.

  • chilleze
    Avatar
    Community Member
    5 Posts

    Re: How to add widget on frontpage Link to this post

    Hi Roterl,
    thanks for your help, but i must have done something wrong, i did changed line in templates/ss from $SideBar to $SidebarWidgets and i get now an error:

    XML Parsing Error: not well-formed
    Location: http://www.chilleze.net/
    Line Number 53, Column 15:

    any help be much appreciated

    cheers

  • roterl
    Avatar
    Community Member
    44 Posts

    Re: How to add widget on frontpage Link to this post

    It seems nothing the the module, but just tiny typo...
    look at the error line: "<a copyright 2009 @ chilleze.net</a>"
    the "a" tag typed wrong.
    it should be something like: <a href="http://www.somewhere.com">copyright 2009 @ chilleze.net</a>
    (replace the like with your own needs.
    If you dont need the making a like, just remove it, leave it as "copyright 2009 @ chilleze.net"

    Rotem.

  • chilleze
    Avatar
    Community Member
    5 Posts

    Re: How to add widget on frontpage Link to this post

    Rotem,
    you are a legend, thanks very much for your help, removing the typo helped :O) .
    Once again, thanks very much and great work with the widget manager.

    Just another little problem, just did a flush and now my site comes up with :

    Not Found
    The requested URL /sapphire/main.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Any thoughts?

    cheers

  • roterl
    Avatar
    Community Member
    44 Posts

    Re: How to add widget on frontpage Link to this post

    I'm glad you find the module useful...

    I don't have any good idea about that, but I think it better you open new thread for this, as someone who dont interesting on this topic may read help you.
    Also, if you can post logs or other more informative details it will be easier to help you.

    Rotem.

  • jseth
    Avatar
    Community Member
    98 Posts

    Re: How to add widget on frontpage Link to this post

    Hi roterl,
    I installed your widget manager, and it's very nice. I have a question though - I'm using Nouveau template, and when I go to add more than one widget (rss feed, specifically) to a page, there is quite a vertical space between them. Is there a way to close up the space so they are vertically closer to each other?

  • roterl
    Avatar
    Community Member
    44 Posts

    Re: How to add widget on frontpage Link to this post

    @jseth
    Hi!

    Usually the best place to put the "$SidebarWidgets" is inside the same div as the sidebar. Specifically for the Nouveau template I think it should be inside the SideBar.ss , at the end of the file - just before the last div's end tag.
    So the file should end with:

          <div class="clear"></div>
       </div>
       $SidebarWidgets
    </div>

    If it still not good enough you modify the css for the "sidebarBox" div (under the layout.css)

    Rotem.

    8665 Views
Page: 1 2 3
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.