<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title></title>
		<link>http://www.silverstripe.org/forums/rss</link>
		<atom:link href="http://www.silverstripe.org/forums/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: what happen with my yahoo weather forecast?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19576#post313175</link>
			<description>&lt;p&gt;Hi was it this widget... &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.silverstripe.org/yahoo-weather-widget-widget/&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/yahoo-weather-widget-widget/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;?&lt;/p&gt;&lt;p&gt;If so did you get and update the yahoo API key?  did you use &quot;widgets_yahooweather&quot; as the exact folder name for it?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: what happen with my yahoo weather forecast? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19576#post313175&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19576&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 10 Apr 2012 10:24:41 +1200</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19576#post313175</guid>
		</item>
		
		<item>
			<title>what happen with my yahoo weather forecast?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19576</link>
			<description>&lt;p&gt;Hey! i'm a newbie, after intall this wiget, i didnt see images in forecast table?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: what happen with my yahoo weather forecast? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19576&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19576&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 30 Mar 2012 13:19:38 +1300</pubDate>
			<dc:creator>KienTr</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19576</guid>
		</item>
		
		<item>
			<title>Multiple Widget Areas. What problem?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19516</link>
			<description>&lt;p&gt;I have seen many people ask if you can have more than one widget area and many more reply that you can't.&lt;/p&gt;&lt;p&gt;I just tried it and you can.. its as easy as this in page.php...&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Sidebar1&quot; =&amp;gt; &quot;WidgetArea&quot;,&lt;br /&gt;    &quot;Sidebar2&quot; =&amp;gt; &quot;WidgetArea&quot;,&lt;br /&gt;    &quot;Sidebar3&quot; =&amp;gt; &quot;WidgetArea&quot;&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;    $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;Sidebar1&quot;));&lt;br /&gt;    $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;Sidebar2&quot;));&lt;br /&gt;    $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;Sidebar3&quot;));&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And then just splatter the     $Sidebar1    $Sidebar2    $Sidebar3 wherever you want.&lt;/p&gt;&lt;p&gt;I just have to figure out how to make a pageholder page so I can start with one set of widgets for all pages.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Multiple Widget Areas. What problem? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19516&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19516&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 19 Mar 2012 12:56:21 +1300</pubDate>
			<dc:creator>tazzydemon</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19516</guid>
		</item>
		
		<item>
			<title>Re: rss feeds to social media</title>
			<link>http://www.silverstripe.org/widgets-2/show/19480#post312692</link>
			<description>&lt;p&gt;Can someone please let me know if it's possible to send rss fend from silverstripe 2.3.7 to facebook and twitter via hootsuite or is there some other method&lt;/p&gt;&lt;p&gt;Please desperately need help&lt;/p&gt;&lt;p&gt;Thanks in advance Gemma&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: rss feeds to social media | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19480#post312692&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19480&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 16 Mar 2012 23:56:09 +1300</pubDate>
			<dc:creator>debtfreeslave</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19480#post312692</guid>
		</item>
		
		<item>
			<title>rss feeds to social media</title>
			<link>http://www.silverstripe.org/widgets-2/show/19480</link>
			<description>&lt;p&gt;Hi &lt;/p&gt;&lt;p&gt;I have searched everywhere for info on this issue.&lt;/p&gt;&lt;p&gt;I have set up an article holder page an article page and an rss feed of this page using :&lt;/p&gt;&lt;p&gt;class ArticleHolder_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt; function rss() {&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;$rss = new RSSFeed($this-&amp;gt;Children(), $this-&amp;gt;Link(), &quot;Griffith College News&quot;);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;$rss-&amp;gt;outputToBrowser();&lt;br /&gt;  }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;I have setup hootsuite and connected it to facebook and twitter pages [tested and definitely works]&lt;br /&gt;I have also setup rssatom with the rss feed url from my silverstripe article holder page the idea being that if i create an article page that my facebook and twitter pages will update automatically via hootsuite. It doesn't work. &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://gcd.ie/design-news/rss&quot; rel=&quot;nofollow&quot;&gt;http://gcd.ie/design-news/rss&lt;/a&gt;&lt;br /&gt;SilverStripe Version 2.3.7&lt;br /&gt;Any help greatly appreciated &lt;/p&gt;&lt;p&gt;Thanks in Advance&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: rss feeds to social media | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19480&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19480&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 14 Mar 2012 22:28:39 +1300</pubDate>
			<dc:creator>debtfreeslave</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19480</guid>
		</item>
		
		<item>
			<title>Re: $SiteConfig.XX in Widget template?</title>
			<link>http://www.silverstripe.org/widgets-2/show/16123?start=8#post312543</link>
			<description>&lt;p&gt;In PHP :&lt;br /&gt;$config = SiteConfig::current_site_config(); //calling siteConfig values&lt;br /&gt;$config-&amp;gt;YouSiteConfigVariableName // get the value of the site config variable/field&lt;/p&gt;&lt;p&gt;In ss Template :&lt;br /&gt;$SiteConfig.YouSiteConfigVariableName&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $SiteConfig.XX in Widget template? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16123?start=8#post312543&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/16123&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 13 Mar 2012 03:34:25 +1300</pubDate>
			<dc:creator>Bureau Berg</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/16123?start=8#post312543</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Override WidgetHolder.ss</title>
			<link>http://www.silverstripe.org/widgets-2/show/6126#post312124</link>
			<description>&lt;p&gt;One way to wrap each widget in the area with extra code.&lt;/p&gt;&lt;p&gt;&amp;lt;% control SideBar %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Widgets %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;extrahtml&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Content&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Override WidgetHolder.ss | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/6126#post312124&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/6126&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 28 Feb 2012 05:54:37 +1300</pubDate>
			<dc:creator>priithansen</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/6126#post312124</guid>
		</item>
		
		<item>
			<title>Re: Save widget content on every page - nearly solved?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19231#post311918</link>
			<description>&lt;p&gt;Perfect! Thank you.&lt;/p&gt;&lt;p&gt; &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/grin.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Save widget content on every page - nearly solved? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19231#post311918&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19231&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 Feb 2012 03:57:50 +1300</pubDate>
			<dc:creator>bones</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19231#post311918</guid>
		</item>
		
		<item>
			<title>Re: Save widget content on every page - nearly solved?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19231#post311912</link>
			<description>&lt;p&gt;A really simple way to do this, that seems to work - but I haven't tested it any further, so that'll be up to you  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Suppose you want to reproduce your homepage widgets on every other page. Then in your Page_Controller:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getWidgetPage() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return Dataobject::get('SiteTree', &quot;URLSegment = 'home'&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And in your template:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control getWidgetPage %&amp;gt;$MyWidgets&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Save widget content on every page - nearly solved? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19231#post311912&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19231&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 18 Feb 2012 00:51:54 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19231#post311912</guid>
		</item>
		
		<item>
			<title>Save widget content on every page - nearly solved?</title>
			<link>http://www.silverstripe.org/widgets-2/show/19231</link>
			<description>&lt;p&gt;I want to add the same widgets to every page on my website, so adding/editing widgets on my HomePage updates every page.&lt;/p&gt;&lt;p&gt;I've followed the tutorial, and am SO close to getting this to work. I just need a little help on the very last stage.&lt;/p&gt;&lt;p&gt;In mysite/code/HomePage.php, I've added:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;MyWidgets&quot; =&amp;gt; &quot;WidgetArea&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;MyWidgets&quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and to templatename/templates/Layout/HomePage.ss I added this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$MyWidgets&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;So far so good. This works great.&lt;/p&gt;&lt;p&gt;However, now I need to get this data onto all other pages. $MyWidgets doesn't work on other pages without a little help, and that's where I'm getting stuck.&lt;br /&gt;I've tried the following on mysite/code/Page.php, but it doesn't work.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Page_Controller extends ContentController {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getMyWidgets(){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$obj = DataObject::get_one('HomePage'); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $obj-&amp;gt;MyWidgets;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I would be very grateful if someone could help me with this last part, please. Thank you.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Save widget content on every page - nearly solved? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19231&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19231&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 17 Feb 2012 07:31:29 +1300</pubDate>
			<dc:creator>bones</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19231</guid>
		</item>
		
		<item>
			<title>New Google Maps widget without API Key need</title>
			<link>http://www.silverstripe.org/widgets-2/show/19217</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have already submitted a Google Maps widget, which is totally configurable from CMS and it doesn't need an API Key. If you want to get it before its reviewed and published, here you can find.&lt;/p&gt;&lt;p&gt;The widget works without any setting but anyway dont hesitate to ask questions, if u will have trouble.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: New Google Maps widget without API Key need | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19217&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19217&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 15 Feb 2012 16:29:38 +1300</pubDate>
			<dc:creator>ayyurek</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19217</guid>
		</item>
		
		<item>
			<title>Re: access widget in template outside of the sidebar</title>
			<link>http://www.silverstripe.org/widgets-2/show/19168#post311703</link>
			<description>&lt;p&gt;Hm, why is the answer always obvious a minute after I posted here? Anyway, it might be helpful for others. This works:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control SideBar %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control Widgets %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if class = LatestBlogPost %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control blogPosts %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.latest-blog-post-$ID {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* CSS here */ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/style&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Maybe there's a shorter way with less nesting, but for now that's sufficient.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: access widget in template outside of the sidebar | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19168#post311703&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19168&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 09 Feb 2012 12:21:53 +1300</pubDate>
			<dc:creator>Anatol</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19168#post311703</guid>
		</item>
		
		<item>
			<title>access widget in template outside of the sidebar</title>
			<link>http://www.silverstripe.org/widgets-2/show/19168</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;how could I access widgets in e.g. the &amp;lt;head&amp;gt; of a template file. I need to define some local CSS styles depending on the content of a widget, and the CSS should go into the head of the HTML.&lt;/p&gt;&lt;p&gt;I tried something like this&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control SideBar %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% control blogPosts %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.latest-blog-post-$ID {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* CSS here */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;but it doesn't work. I would appreciate any ideas.&lt;/p&gt;&lt;p&gt;Cheers!&lt;br /&gt;Anatol&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: access widget in template outside of the sidebar | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/19168&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/19168&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 09 Feb 2012 12:11:59 +1300</pubDate>
			<dc:creator>Anatol</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/19168</guid>
		</item>
		
		<item>
			<title>Re: Contact Form in a Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/4981?start=8#post311597</link>
			<description>&lt;p&gt;Hello Thomas,&lt;/p&gt;&lt;p&gt;Have you managed to write a contact form widget yet?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Contact Form in a Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/4981?start=8#post311597&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/4981&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 04 Feb 2012 00:58:28 +1300</pubDate>
			<dc:creator>reececropley</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/4981?start=8#post311597</guid>
		</item>
		
		<item>
			<title>Re: Contact Form in a Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/4981#post311596</link>
			<description>&lt;p&gt;Hello Thomas,&lt;/p&gt;&lt;p&gt;Have you managed to write a contact form widget yet?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Contact Form in a Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/4981#post311596&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/4981&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 04 Feb 2012 00:58:26 +1300</pubDate>
			<dc:creator>reececropley</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/4981#post311596</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311379</link>
			<description>&lt;p&gt;You're right!&lt;br /&gt;That's odd. Doesn't look like it matters, I just commented it out and all still works fine.&lt;br /&gt;I'll update my .zip files now. &lt;/p&gt;&lt;p&gt;(in case you haven't noticed, this isn't my strong point, so the code may not be great! But it works, so I wanted to share anyway, I'm sure the pros here can clean up these widget packs for general public use!)&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311379&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Jan 2012 01:16:52 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311379</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311378</link>
			<description>&lt;p&gt;To CHD:&lt;/p&gt;&lt;p&gt;I try to implement your plugin, but it seems that .js file is missing in archive. In the ContentWidget.php you have requirement: &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Requirements::javascript('widgets_content/ContentWidget.js');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And there is no such file in this folder. Could you check this please? Thanks!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311378&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Jan 2012 01:06:10 +1300</pubDate>
			<dc:creator>Digital-Punk.co.uk</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311378</guid>
		</item>
		
		<item>
			<title>Re: Slideshow widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/8603?start=8#post311288</link>
			<description>&lt;p&gt;thanks! old topic but it really helped me out!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Slideshow widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/8603?start=8#post311288&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/8603&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Jan 2012 22:11:16 +1300</pubDate>
			<dc:creator>bartvanirsel</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/8603?start=8#post311288</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311249</link>
			<description>&lt;p&gt;yep!&lt;/p&gt;&lt;p&gt;The ONLY draw back is that you still need to save the page when you add a content widget before the TinyMCE applet will load. &lt;br /&gt;But links, images, internal links etc all work fine.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311249&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:55:25 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311249</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311248</link>
			<description>&lt;p&gt;hmmm, no core change great! and it handles things link inserting a link the same way tinyMCE in the &quot;normal&quot; use does?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311248&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:48:53 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311248</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311247</link>
			<description>&lt;p&gt;oh that link! fixed. thanks for pointing it out.&lt;/p&gt;&lt;p&gt;no we ONLY used the &quot;widgets_content&quot; folder from his link of attachments at the bottom of the page. We didn't make ANY core changes. Or changes to WidgetEditorArea.js.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311247&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:46:03 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311247</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311246</link>
			<description>&lt;p&gt;sorry to be a pain but the link in the article &quot;http://groups.google.com/group/silverstripe-dev/msg/1a3b1292c4f46117&quot; still links to &quot;http:&quot;&lt;br /&gt;and the article is advising a replacing a core class yes?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311246&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:42:25 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311246</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311245</link>
			<description>&lt;p&gt;Sorry hadn't quite finished with the article!&lt;br /&gt;check it now...hopefully it's clearer&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&quot; rel=&quot;nofollow&quot;&gt;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311245&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:36:07 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311245</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311243</link>
			<description>&lt;p&gt;I just read that (btw the link isn't correctly linking in your article) but it wasn't clear to me whether you have used that code and &quot;hacked the core&quot; - did you hack the core?&lt;/p&gt;&lt;p&gt;Also how are the other functions that are added to TinyMCE handled - for instance inserting a link to another ss page?&lt;/p&gt;&lt;p&gt;btw I am intrested in this, but without hacking the core and providing all TinyMCE functions, until then I'll stick to bbcode only and a text edit&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433?start=8#post311243&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:19:16 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433?start=8#post311243</guid>
		</item>
		
		<item>
			<title>Re: Bad Widget Class Name Given</title>
			<link>http://www.silverstripe.org/widgets-2/show/6183#post311242</link>
			<description>&lt;p&gt;We got our widgets working on all pages eventually, here's our solution. Hopefully it helps!&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&quot; rel=&quot;nofollow&quot;&gt;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Bad Widget Class Name Given | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/6183#post311242&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/6183&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:14:29 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/6183#post311242</guid>
		</item>
		
		<item>
			<title>Re: HTMLTextField in Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/14433#post311240</link>
			<description>&lt;p&gt;We got our widgets working on all pages eventually, here's our solution. Hopefully it helps!&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&quot; rel=&quot;nofollow&quot;&gt;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTMLTextField in Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/14433#post311240&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/14433&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:13:48 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/14433#post311240</guid>
		</item>
		
		<item>
			<title>Re: HTML widget in 2.3.0</title>
			<link>http://www.silverstripe.org/widgets-2/show/5611?start=16#post311239</link>
			<description>&lt;p&gt;We got our widgets working on all pages eventually, here's our solution. Hopefully it helps!&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page&quot; rel=&quot;nofollow&quot;&gt;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTML widget in 2.3.0 | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/5611?start=16#post311239&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/5611&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:13:15 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/5611?start=16#post311239</guid>
		</item>
		
		<item>
			<title>Re: Remove HTML content widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/4847#post311238</link>
			<description>&lt;p&gt;We got our widgets working on all pages eventually, here's our solution. Hopefully it helps!&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&quot; rel=&quot;nofollow&quot;&gt;http://www.clickheredigital.co.uk/blog/bad-widget-class-name-given-our-experience-with-widgets-on-any-silverstripe-page/&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Remove HTML content widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/4847#post311238&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/4847&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 23:12:51 +1300</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/4847#post311238</guid>
		</item>
		
		<item>
			<title>Re: Possible bug in the duplicating page and children functionality</title>
			<link>http://www.silverstripe.org/widgets-2/show/11030#post311210</link>
			<description>&lt;p&gt;This was really annoying me also. Duplicating pages results in just referenced widgets, not duplicated widgets.&lt;/p&gt;&lt;p&gt;My solution is to extend the duplicate-function on Page class (page.php):&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;/** &lt;br /&gt; * Duplicate this page, and make a copy of its Widgets (instead of copying the reference to it). &lt;br /&gt; * &lt;br /&gt; * @return Page &lt;br /&gt; */ &lt;br /&gt;public function duplicate() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$oPage = parent::duplicate(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;hasField(&quot;SidebarID&quot;) &amp;amp;&amp;amp; ($this-&amp;gt;getComponent(&quot;Sidebar&quot;))) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//duplicate the current widgetArea&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$newWidgetArea = $this-&amp;gt;getComponent(&quot;Sidebar&quot;)-&amp;gt;duplicate();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//loop through all widgets linked to this wigetArea &amp;amp; connect them to the new WidgetArea&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($this-&amp;gt;getComponent(&quot;Sidebar&quot;)-&amp;gt;Items() as $oAreaWidget) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$newWidget = $oAreaWidget-&amp;gt;duplicate(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$newWidget-&amp;gt;ParentID = $newWidgetArea-&amp;gt;ID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$newWidget-&amp;gt;write();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//connect the new widgetArea to the duplicate page&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$oPage-&amp;gt;SidebarID = $newWidgetArea-&amp;gt;ID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $oPage; &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Hopefully this helps someone else aswell...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Possible bug in the duplicating page and children functionality | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/11030#post311210&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/11030&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 18 Jan 2012 02:11:52 +1300</pubDate>
			<dc:creator>Baukez</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/11030#post311210</guid>
		</item>
		
		<item>
			<title>Re: Blog Widget duplicated in Sidebar - Please Help! </title>
			<link>http://www.silverstripe.org/widgets-2/show/16100#post310887</link>
			<description>&lt;p&gt;Found this toppic whilst searching for solution to the same problem.&lt;/p&gt;&lt;p&gt;Willr's solution was 90% there. My modification without needing to edit core files ended up as:&lt;/p&gt;&lt;p&gt;Create mysite/code/NoWidgetsBlogTree.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class NoWidgetsBlogTree extends DataObjectDecorator {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function updateCMSFields(&amp;amp;$fields) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;removeByName('SideBar');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;in mysite/_config.php add:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Object::add_extension('BlogTree', 'NoWidgetsBlogTree');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Blog Widget duplicated in Sidebar - Please Help!  | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16100#post310887&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/16100&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 07 Jan 2012 02:27:15 +1300</pubDate>
			<dc:creator>MarijnKampf</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/16100#post310887</guid>
		</item>
		
		<item>
			<title>Re: New developer here. Guide to SilverStripe widget development anywhere?</title>
			<link>http://www.silverstripe.org/widgets-2/show/18797#post310612</link>
			<description>&lt;p&gt;Could you let me know of anything you found that was useful for this.  Have heard a lot about Silverstripe and am getting restricted with our customised WP website.  Running a jobs board with customized widgets and want to see if they're transferable.&lt;/p&gt;&lt;p&gt;Founder and developer of Careworx &lt;a href=&quot;http://www.careworx.co.uk/&quot; rel=&quot;nofollow&quot;&gt;Care Home Jobs&lt;/a&gt;, &lt;a href=&quot;http://www.careworx.co.uk&quot; rel=&quot;nofollow&quot;&gt;Care Jobs&lt;/a&gt; and &lt;a href=&quot;http://www.careworx.co.uk&quot; rel=&quot;nofollow&quot;&gt;Nurse Jobs&lt;/a&gt; system&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: New developer here. Guide to SilverStripe widget development anywhere? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18797#post310612&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18797&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 19 Dec 2011 13:14:02 +1300</pubDate>
			<dc:creator>andystep</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18797#post310612</guid>
		</item>
		
		<item>
			<title>Redirect problem - Form in a Widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/18827</link>
			<description>&lt;p&gt;Ok Guys,&lt;/p&gt;&lt;p&gt;I've managed to create a form inside a widget, and even get it all working, except for the redirect. What I would like is either to redirect to the same page that the form widget was on, with &quot;?success=1&quot; in url, or redirect to another page entirely. I'm almost there but just can't get it working exactly.&lt;/p&gt;&lt;p&gt;I have jQuery validation working, but will finish that once the redirect is working.&lt;/p&gt;&lt;p&gt;My php file is attached!&lt;/p&gt;&lt;p&gt;Thanks Guys!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Redirect problem - Form in a Widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18827&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18827&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 17 Dec 2011 06:28:30 +1300</pubDate>
			<dc:creator>Blackthorn87</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18827</guid>
		</item>
		
		<item>
			<title>Re: Using a DataObjectManager in widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/18636#post310554</link>
			<description>&lt;p&gt;Did you find a solution to this?&lt;/p&gt;&lt;p&gt;Is it possible to have either a DataobjectManager or ComplexTableField in a widget?&lt;/p&gt;&lt;p&gt;Aaron&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Using a DataObjectManager in widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18636#post310554&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18636&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 15 Dec 2011 19:45:15 +1300</pubDate>
			<dc:creator>Aaron Brockhurst</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18636#post310554</guid>
		</item>
		
		<item>
			<title>Re: New developer here. Guide to SilverStripe widget development anywhere?</title>
			<link>http://www.silverstripe.org/widgets-2/show/18797#post310479</link>
			<description>&lt;p&gt;Help -&amp;gt; Documentation -&amp;gt; Widgets&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/topics/widgets&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/topics/widgets&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: New developer here. Guide to SilverStripe widget development anywhere? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18797#post310479&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18797&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 12 Dec 2011 22:45:00 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18797#post310479</guid>
		</item>
		
		<item>
			<title>New developer here. Guide to SilverStripe widget development anywhere?</title>
			<link>http://www.silverstripe.org/widgets-2/show/18797</link>
			<description>&lt;p&gt;As the topic says, I'm looking for an guide. I'm interested in porting some of my Wordpress efforts to SilverStripe.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: New developer here. Guide to SilverStripe widget development anywhere? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18797&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18797&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 12 Dec 2011 15:26:25 +1300</pubDate>
			<dc:creator>Riceman</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18797</guid>
		</item>
		
		<item>
			<title>Re: [Solved] Override WidgetHolder.ss</title>
			<link>http://www.silverstripe.org/widgets-2/show/6126#post310283</link>
			<description>&lt;p&gt;Just as a matter of interest as I tried to change my WidgetHolder.ss I was frustrated to the limit for it not changing then I realised that one has been put in the latest Silverstripe in the blackcandy_blog/templates/ so look there to change.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [Solved] Override WidgetHolder.ss | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/6126#post310283&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/6126&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 03 Dec 2011 03:08:13 +1300</pubDate>
			<dc:creator>stevanovich</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/6126#post310283</guid>
		</item>
		
		<item>
			<title>Re: $SiteConfig.XX in Widget template?</title>
			<link>http://www.silverstripe.org/widgets-2/show/16123?start=8#post310268</link>
			<description>&lt;p&gt;There is actually a better way Willr mentioned here: &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18440&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/widgets-2/show/18440&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Use the following code in your widget:&lt;/p&gt;&lt;p&gt;function SiteConfig() { &lt;br /&gt;return SiteConfig::current_site_config(); &lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $SiteConfig.XX in Widget template? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16123?start=8#post310268&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/16123&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 02 Dec 2011 20:31:43 +1300</pubDate>
			<dc:creator>Matty Balaam</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/16123?start=8#post310268</guid>
		</item>
		
		<item>
			<title>Re: $SiteConfig.XX in Widget template?</title>
			<link>http://www.silverstripe.org/widgets-2/show/16123#post310266</link>
			<description>&lt;p&gt;Not sure why I didn't think of that, thank you Matty  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $SiteConfig.XX in Widget template? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16123#post310266&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/16123&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 02 Dec 2011 17:06:11 +1300</pubDate>
			<dc:creator>socks</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/16123#post310266</guid>
		</item>
		
		<item>
			<title>how to move a htmlcontentwidget from blog to leftpanel in any other pages</title>
			<link>http://www.silverstripe.org/widgets-2/show/18723</link>
			<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I am new to the silverstripe.&lt;br /&gt;  I downloaded the htmlcontentwidget from widgets.&lt;br /&gt; it is working in blog module but i want to display that widget  into leftpanel of any other pages.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: how to move a htmlcontentwidget from blog to leftpanel in any other pages | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18723&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18723&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 01 Dec 2011 18:52:00 +1300</pubDate>
			<dc:creator>cherry</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18723</guid>
		</item>
		
		<item>
			<title>Re: MapWidget errors</title>
			<link>http://www.silverstripe.org/widgets-2/show/16803#post310218</link>
			<description>&lt;p&gt;I also had a similar problem with the Map Widget. The API key in the config file wasn't working for me and so I manually added it to the controller. &lt;/p&gt;&lt;p&gt;I changed line 32 on the MapWidget.php from;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;http://maps.google.com/maps?file=api&amp;amp;amp;v=2&amp;amp;amp;key=&quot;.$MapsWidgetAPIKey);&lt;/p&gt;&lt;p&gt;to this (add your Google API key);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Requirements::javascript(&quot;http://maps.google.com/maps?file=api&amp;amp;amp;v=2&amp;amp;amp;key=ADD-YOUR-API-KEY-HERE&quot;);&lt;/p&gt;&lt;p&gt;This worked for me.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: MapWidget errors | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16803#post310218&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/16803&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 01 Dec 2011 02:04:18 +1300</pubDate>
			<dc:creator>Yambo</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/16803#post310218</guid>
		</item>
		
		<item>
			<title>Using a DataObjectManager in widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/18636</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I'm trying to convert the Nivo Slider extension into a widget, because I don't like it to mix up page types just for something I'd like to use on multiple page types. The original Nivo Slider extension can be found here: &lt;br /&gt;&lt;a href=&quot;http://www.silverstripe.org/nivo-slider-silverstripe-extension-module/&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/nivo-slider-silverstripe-extension-module/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Anyway, as can be seen in the attached screenshot, it all seems to work, except for the edit link of an item.&lt;br /&gt;The edit link refers to&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://mylocalsite.com/item/1/edit?ctf&quot; rel=&quot;nofollow&quot;&gt;http://mylocalsite.com/item/1/edit?ctf&lt;/a&gt;[NivoSliderItems][start]=0&amp;amp;ctf[NivoSliderItems][per_page]=10&amp;amp;ctf[NivoSliderItems][showall]=0&amp;amp;ctf[NivoSliderItems][sort]=&amp;amp;ctf[NivoSliderItems][sort_dir]=&amp;amp;ctf[NivoSliderItems][search]=&amp;amp;ctf[NivoSliderItems][filter]=&lt;/p&gt;&lt;p&gt;And that link just doesn't work.&lt;br /&gt;Is it possible at all to use the DataObjectManager in the widget area? Are there any examples out there?&lt;/p&gt;&lt;p&gt;Here's the relevant code for the widget&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class NivoSliderWidget extends Widget {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'effect' =&amp;gt; &quot;Enum('sliceDown,sliceDownLeft,sliceUp,sliceUpLeft,sliceUpDown,sliceUpDownLeft,fold,fade,random','random')&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;); &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_many = array('NivoSliderItems' =&amp;gt; 'NivoSliderItem');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$f = new FieldSet( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DropdownField('effect',&quot;Effect&quot;, singleton('NivoSliderWidget')-&amp;gt;dbObject('effect')-&amp;gt;enumValues()),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('captionOpacity','Universal caption opacity 0-1'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TabSet(&quot;Tabs&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new Tab(&quot;Items&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DataObjectManager($this, 'NivoSliderItems', 'NivoSliderItem', array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Thumbnail' =&amp;gt; _t('Image.PLURALNAME'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title' =&amp;gt; _t('SiteTree.METATITLE'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Tagline' =&amp;gt; _t('SiteTree.METADESC')), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'getCMSFields_forPopup'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;      &amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $f;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;And the DataObject for the NivoSliderItem looks like:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class NivoSliderItem extends DataObject {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Tagline' =&amp;gt; 'Text'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'NivoSliderWidget' =&amp;gt; 'NivoSliderWidget',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'PanelImage' =&amp;gt; 'Image',&lt;br /&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;'PanelLink' =&amp;gt; 'SiteTree'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $api_access = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getCMSFields_forPopup(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $image=class_exists('ImageUploadField')?'ImageUploadField':'FileIFrameField';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $tree=class_exists('SimpleTreeDropdownField')?'SimpleTreeDropdownField':'HTMLDropdownField';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    $imager=new $image('PanelImage',_t('Image.SINGULARNAME').&quot; ...&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    if($image=='ImageUploadField')$imager-&amp;gt;uploadOnSubmit();&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Title',_t('SiteTree.METATITLE')),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Tagline',_t('SiteTree.METADESC')),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$imager,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new $tree(&quot;PanelLinkID&quot;,_t('RedirectorPage.REDIRECTTOPAGE'),&quot;SiteTree&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;....&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Any idea's? &lt;br /&gt;Btw, the item show is added manually to the database  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Best regards,&lt;br /&gt;Ronald&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Using a DataObjectManager in widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18636&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18636&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 23 Nov 2011 03:26:48 +1300</pubDate>
			<dc:creator>Ronaldo71</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18636</guid>
		</item>
		
		<item>
			<title>Login wdget not shown</title>
			<link>http://www.silverstripe.org/widgets-2/show/18608</link>
			<description>&lt;p&gt;Hi all, I am new to silverstripe and have been trying to install the login widget using the widget installation tutorial.&lt;br /&gt;So far i can see my sidebar, I have a widget tab in the cms, I can drag the widget over to the right column and refresh and I have succesfully ran dev/build but cannot see the actual widget.&lt;/p&gt;&lt;p&gt;I have added code to the following files:&lt;br /&gt;Page.php&lt;br /&gt;class Page extends SiteTree {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;SideBar&quot; =&amp;gt; &quot;WidgetArea&quot;,&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    function getCMSFields() {&lt;br /&gt;    $fields = parent::getCMSFields();&lt;br /&gt;    $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;SideBar&quot;));&lt;br /&gt;    return $fields;&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;Page.ss&lt;/p&gt;&lt;p&gt;h2&amp;gt;$Title&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Content&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Form&lt;br /&gt;                &amp;lt;div id=&quot;sidebar&quot;&amp;gt; &lt;br /&gt;                    $SideBar&lt;br /&gt;                &amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p&gt;When i view the page source my div is shown but its empty.&lt;/p&gt;&lt;p&gt;Has anyone had the same problem?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Chipie&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Login wdget not shown | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18608&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18608&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 21 Nov 2011 04:31:10 +1300</pubDate>
			<dc:creator>Chipie</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18608</guid>
		</item>
		
		<item>
			<title>Widget go inactive by logging in a 2. time</title>
			<link>http://www.silverstripe.org/widgets-2/show/18606</link>
			<description>&lt;p&gt;Hello &lt;/p&gt;&lt;p&gt;I again have an issue with my widgets. When I log out and back in to the admin area, the widgets seem to be inactive. I need to refresh the page in order for them to be activated.&lt;/p&gt;&lt;p&gt;Does anybody know why that might happen?&lt;/p&gt;&lt;p&gt;Thank you for your help.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Widget go inactive by logging in a 2. time | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18606&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18606&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 20 Nov 2011 20:48:01 +1300</pubDate>
			<dc:creator>wonnepfropfen</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18606</guid>
		</item>
		
		<item>
			<title>Re: Unable to uncheck Widget checkbox</title>
			<link>http://www.silverstripe.org/widgets-2/show/12656#post309827</link>
			<description>&lt;p&gt;Same problem still exists in 2.4.6 !!!  WTF?  Any reason this hasn't been applied to trunk?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Unable to uncheck Widget checkbox | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/12656#post309827&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/12656&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 18 Nov 2011 04:40:40 +1300</pubDate>
			<dc:creator>streetdaddy</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/12656#post309827</guid>
		</item>
		
		<item>
			<title>After dragging a widget, its method is not executed anymore [solved]</title>
			<link>http://www.silverstripe.org/widgets-2/show/18563</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i'm really confused about this really strange behaviour:&lt;br /&gt;I'm working on a music band website with several widgets (for sidebar usage).&lt;/p&gt;&lt;p&gt;I have a custom pagetype that shows a collection of tour dates.&lt;br /&gt;Everything works as expected.&lt;/p&gt;&lt;p&gt;Now there is a widget that shows up the next X dates inside a sidebar.&lt;br /&gt;When this widget is dragged into the widget area and the page is saved - everything is still ok.&lt;br /&gt;But when i drag the widget to a lower position (after an other widget) it does not work anymore.&lt;/p&gt;&lt;p&gt;In detail:&lt;br /&gt;the widget has a method which is called from the widget template:&lt;/p&gt;&lt;p&gt;NextDatesWidget.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class NextDatesWidget extends Widget {&lt;br /&gt;...&lt;br /&gt;    function DateList()&lt;br /&gt;    {&lt;br /&gt;        Debug::dump('DateList called');        &lt;br /&gt;        return DataObject::get('Tourdate', &quot;DATE_FORMAT(Datum, '%Y%m%d') &amp;gt;= DATE_FORMAT(NOW(), '%Y%m%d')&quot;, 'Datum ASC', NULL, $this-&amp;gt;NumberToShow);&lt;br /&gt;    }&lt;br /&gt;...&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;NextDatesWidget.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if DateList %&amp;gt;&lt;br /&gt;                      &amp;lt;table id=&quot;Next-Dates&quot;&amp;gt;&lt;br /&gt;                          &amp;lt;% control DateList %&amp;gt;&lt;br /&gt;                          &amp;lt;tr&amp;gt;&lt;br /&gt;                              &amp;lt;td&amp;gt;$Datum.Format(d.m.Y)&amp;lt;/td&amp;gt;&lt;br /&gt;                              &amp;lt;td&amp;gt;$Ort&amp;lt;/td&amp;gt;                           &lt;br /&gt;                          &amp;lt;/tr&amp;gt;&lt;br /&gt;                          &amp;lt;% end_control %&amp;gt;&lt;br /&gt;                      &amp;lt;/table&amp;gt;&lt;br /&gt;                  &amp;lt;% else %&amp;gt;&lt;br /&gt;                    &amp;lt;div&amp;gt;-no dates found-&amp;lt;/div&amp;gt;&lt;br /&gt;                  &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;After initial inserting the widget to the 1st position, the debug output shows up&lt;br /&gt;After dragging the widget to an lower position, there is no debug output, even though the template is rendered.&lt;br /&gt;And it shows the else condition &quot;no dates found&quot;.&lt;/p&gt;&lt;p&gt;Very confusing ....&lt;br /&gt;Any ideas ?&lt;/p&gt;&lt;p&gt;Greeting, Robert&lt;/p&gt;&lt;p&gt;Edit:&lt;br /&gt;maybe a related thread?&lt;br /&gt;&lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/17518&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/widgets-2/show/17518&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Edit2:&lt;br /&gt;Like posted in this thread: &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/16123&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/widgets-2/show/16123&lt;/a&gt;&lt;/p&gt;&lt;p&gt;My /themes/mytheme/templates/WidgetHolder.ss  file had the following content:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$Content&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;i had to wrap a &quot;unique&quot; named div around:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;div class=&quot;$ClassName&quot;&amp;gt;&lt;br /&gt;$Content&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now it works ....&lt;/strong&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: After dragging a widget, its method is not executed anymore [solved] | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18563&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18563&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 Nov 2011 06:11:44 +1300</pubDate>
			<dc:creator>rob.s</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18563</guid>
		</item>
		
		<item>
			<title>Re: Is there a way to keep widgets on the right side?</title>
			<link>http://www.silverstripe.org/widgets-2/show/18512#post309664</link>
			<description>&lt;p&gt;nevermind i figure it out...was just a css file lol&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Is there a way to keep widgets on the right side? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18512#post309664&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18512&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 14 Nov 2011 07:40:42 +1300</pubDate>
			<dc:creator>venofiona</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18512#post309664</guid>
		</item>
		
		<item>
			<title>Is there a way to keep widgets on the right side?</title>
			<link>http://www.silverstripe.org/widgets-2/show/18512</link>
			<description>&lt;p&gt;Im using the blackcandy theme and the widgets manager module.&lt;/p&gt;&lt;p&gt;It seems like the widgets are always on the left unless the page has a child. As in the home page widgets are on the left but the product category widget is on the right. And if i add a widget to a page with a child it doesnt show at all except for the shopping cart widget that came with ecommerce module.&lt;/p&gt;&lt;p&gt;So is there a way to make them all on the right side so it doesnt interfere with the navigation? Seems like a simple case of removing an if statement somewhere...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Is there a way to keep widgets on the right side? | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18512&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18512&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 10 Nov 2011 10:20:16 +1300</pubDate>
			<dc:creator>venofiona</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18512</guid>
		</item>
		
		<item>
			<title>Re: Slideshow widget</title>
			<link>http://www.silverstripe.org/widgets-2/show/8603?start=8#post309533</link>
			<description>&lt;p&gt;This is exactly what I was looking for.  Just a few tweaks:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$options = array();&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I changed to :&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$options = '&amp;lt;option value=&quot;0&quot;&amp;gt;Please select an image&amp;lt;/option&amp;gt;';&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;to provide an empty selection, otherwise the first image is already selected, and if it was saved, potentially the wrong image would be saved.&lt;/p&gt;&lt;p&gt;Also just to note that when adding the field to the widget, the image field ID should be specified, so if:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//My Widget&lt;/p&gt;&lt;p&gt;static $has_one = array(&lt;br /&gt;    'MyWidgetImage' =&amp;gt; 'Image'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;//when adding the field&lt;/p&gt;&lt;p&gt;$widgetImageField = new WidgetImageField('MyWidgetImageID', 'My Widget Image');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Cheers for sharing this!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Slideshow widget | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/8603?start=8#post309533&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/8603&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 10 Nov 2011 06:34:49 +1300</pubDate>
			<dc:creator>jpmcc</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/8603?start=8#post309533</guid>
		</item>
		
		<item>
			<title>A single widget area instance shared across whole site (not 1 widget area instance per page)...</title>
			<link>http://www.silverstripe.org/widgets-2/show/18486</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;The site we're building at the moment will have an identical widget area instance across all pages of the site.  Previously, we had the widget area added to the Page class, but obviously this meant that each Page object/child will have its own instance of a widget area. &lt;/p&gt;&lt;p&gt;So if we were to have the same widgets across all the pages, we would have to manually add them to each page via the Widget editor tab.&lt;/p&gt;&lt;p&gt;To have a site-wide widget area instance, we've decorated SiteConfig with the widget area.  Now we get a widget area under SiteConfig, and whatever widgets we add here should be shared across the site.&lt;/p&gt;&lt;p&gt;CustomSiteConfig.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class CustomSiteConfig extends DataObjectDecorator {&lt;br /&gt;        function extraStatics() {&lt;br /&gt;            return array(&lt;br /&gt;                'has_one' =&amp;gt; array(&lt;br /&gt;                    'SiteWideWidgetArea' =&amp;gt; 'WidgetArea'&lt;br /&gt;                )&lt;br /&gt;            );&lt;br /&gt;        }&lt;/p&gt;&lt;p&gt;        public function updateCMSFields(FieldSet $fields) {&lt;br /&gt;            $fields-&amp;gt;addFieldToTab(&quot;Root.Widgets&quot;, new WidgetAreaEditor(&quot;SiteWideWidgetArea&quot;));&lt;br /&gt;        }&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Template: eg Page.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;snip&amp;gt;&lt;br /&gt;    $SiteConfig.SiteWideWidgetArea&lt;br /&gt;    &amp;lt;snip&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Is there anything wrong with this approach?  &lt;/p&gt;&lt;p&gt;And also, in the past, some have commented that they've had difficulty to have 1 Widget area per page...  But it hasn't been a problem getting more than 1 widget area...  Are we doing the right thing here?  Seems legit...&lt;/p&gt;&lt;p&gt;Page.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Page extends SiteTree {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_one = array(&lt;br /&gt;        &quot;BottomWidgetArea&quot; =&amp;gt; &quot;WidgetArea&quot;,&lt;br /&gt;        &quot;Bottom2WidgetArea&quot; =&amp;gt; &quot;WidgetArea&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;    public function getCMSFields() {&lt;br /&gt;        $fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;        $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets&quot;, new WidgetAreaEditor(&quot;PageWidgetArea&quot;));&lt;br /&gt;        $fields-&amp;gt;addFieldToTab(&quot;Root.Content.Widgets2&quot;, new WidgetAreaEditor(&quot;AnotherPageWidgetArea&quot;));&lt;/p&gt;&lt;p&gt;        return $fields;&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Template: page.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;snip&amp;gt;&lt;br /&gt;    $PageWidgetArea&lt;br /&gt;    $AnotherPageWidgetArea&lt;br /&gt;    &amp;lt;snip&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Thanks for your input...&lt;/p&gt;&lt;p&gt;VWD.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: A single widget area instance shared across whole site (not 1 widget area instance per page)... | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18486&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18486&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 07 Nov 2011 18:29:00 +1300</pubDate>
			<dc:creator>vwd</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18486</guid>
		</item>
		
		<item>
			<title>Re: Can Widgets use $SiteConfig</title>
			<link>http://www.silverstripe.org/widgets-2/show/18440#post309390</link>
			<description>&lt;p&gt;Checkout the code and you'll get a sense of what extra things it does (why you you should use it!)&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/silverstripe/sapphire/blob/2.4/core/model/SiteConfig.php#L153&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe/sapphire/blob/2.4/core/model/SiteConfig.php#L153&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Can Widgets use $SiteConfig | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/show/18440#post309390&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/widgets-2/reply/18440&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 05 Nov 2011 11:39:13 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/widgets-2/show/18440#post309390</guid>
		</item>
		

	</channel>
</rss>
