Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Widgets /

Discuss SilverStripe Widgets.

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

How to add widget on frontpage


Reply


18 Posts   9438 Views

Avatar
chilleze

Community Member, 5 Posts

12 December 2009 at 8:10am

@ 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

Avatar
roterl

Community Member, 44 Posts

12 December 2009 at 12:09pm

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.

Avatar
chilleze

Community Member, 5 Posts

13 December 2009 at 2:08pm

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

Avatar
roterl

Community Member, 44 Posts

13 December 2009 at 5:38pm

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.

Avatar
chilleze

Community Member, 5 Posts

13 December 2009 at 7:42pm

Edited: 13/12/2009 8:00pm

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

Avatar
roterl

Community Member, 44 Posts

13 December 2009 at 11:29pm

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.

Avatar
jseth

Community Member, 98 Posts

27 February 2010 at 4:28am

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?

Avatar
roterl

Community Member, 44 Posts

28 February 2010 at 5:51am

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