https://www.silverstripe.org/community/forums/rss Re: UploadField in Widgets SS v3.5 https://www.silverstripe.org/community/forums/widgets-2/show/121198#post423505 <p>This is a very frustrating bug I agree. Given the lack of activity on what appears to be a very common scenario, is it fair to assume that it has been fixed for v4?</p> <br /> <p data-swiftype-index="false">Posted to: UploadField in Widgets SS v3.5 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/121198#post423505" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/121198" class="replyLink">Post Reply</a></p> Sun, 09 Jul 2017 23:43:21 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/121198#post423505 UploadField in Widgets SS v3.5 https://www.silverstripe.org/community/forums/widgets-2/show/121198 <p>Hi there, </p><p>I know this has probably come up a lot as I've seen a few threads already after much googling... but how can I make an UploadField work within a widget? </p><p>Currently I'm getting a fatal error message and it would seem that the UploadField on widget cms fields are a no-go. Does anyone have a workaround that doesn't just simply use a dropdownfield mapped to the uploaded files table? </p><p>Any help would be greatly appreciated </p><p>Cheers </p><p>Pete</p> <br /> <p data-swiftype-index="false">Posted to: UploadField in Widgets SS v3.5 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/121198" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/121198" class="replyLink">Post Reply</a></p> Tue, 30 May 2017 02:24:42 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/121198 Re: Tried installing Widgets – now getting a 500 error and can't fix! https://www.silverstripe.org/community/forums/widgets-2/show/120821#post422967 <p>Hi, <br />You only need to do a dev/build if you added or removed database fields. Dev/build will update the database for you. </p><p>When you change config settings just add ?flush=1 to your site url, that should work. </p><p>Sometimes it can be helpfull to just empty the entire SilverStripe cache if an error doesn't want to go away. To that purpose SilverStripe offers the option to put a folder silverstripe-cache in your site root (writable). Silverstripe will automatically put its cache there, and you can then clear that folder if you need to. </p><p>Also: check if your site is in 'dev' mode, that may give you more verbose errormessages. <a href="https://docs.silverstripe.org/en/3/developer_guides/debugging/environment_types/">https://docs.silverstripe.org/en/3/developer_guides/debugging/environment_types/</a></p> <br /> <p data-swiftype-index="false">Posted to: Tried installing Widgets – now getting a 500 error and can&#039;t fix! | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/120821#post422967" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/120821" class="replyLink">Post Reply</a></p> Sat, 13 May 2017 05:02:26 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/120821#post422967 Tried installing Widgets – now getting a 500 error and can't fix! https://www.silverstripe.org/community/forums/widgets-2/show/120821 <p>Hi. </p><p>I have been working with the Blog module in my localhost dev site and decided that I needed to add a category menu with the blog category widget. I installed the Widgets module but the Widgets tab didn't appear in the CMS for my blog page. </p><p>From the instructions at <a href="https://github.com/silverstripe/silverstripe-widgets/blob/master/docs/en/getting-started.md">https://github.com/silverstripe/silverstripe-widgets/blob/master/docs/en/getting-started.md</a>, I realised that I needed to enable the WidgetPageExtension by adding the supplied lines to the config.yml file. This I did, ran a /dev/build and, since then, I've been getting a 500 error. I've removed the lines from config.yml but, since I can't re-run a /dev/build, I can't get back to my site. I've cleared the browser cache but that does nothing. Other localhost sites are running fine. </p><p>I am (or at least was!) running SS 3.4.1 via WAMP. </p><p>Please help 'cos I'm completely stuck! Thanks.</p> <br /> <p data-swiftype-index="false">Posted to: Tried installing Widgets – now getting a 500 error and can&#039;t fix! | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/120821" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/120821" class="replyLink">Post Reply</a></p> Thu, 11 May 2017 22:53:01 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/120821 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post421980 <p>This had me stumped too. But your responses certainly helped lead me in the right direction. </p><p>I added the following to my mysite/_config/config.yml file: </p><p><div class="codesnippet"><p>--- <br />Name: mysite <br />After: <br /> - 'framework/*' <br /> - 'cms/*' <br />--- <br /># YAML configuration for SilverStripe <br /># See <a href="http://doc.silverstripe.org/framework/en/topics/configuration">http://doc.silverstripe.org/framework/en/topics/configuration</a> <br /># Caution: Indentation through two spaces, not tabs <br />SSViewer: <br /> theme: 'scg' <br />SiteConfig: <br /> extensions: <br /> - SiteConfigExtension <br />BlogHolder: <br /> extensions: <br /> - WidgetPageExtension <br />Page: <br /> extensions: <br /> - WidgetPageExtension</p></div> </p><p>I ran /dev/build?flush and the next time I entered the Admin the widget tab was available to the Blog and Page sections.</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post421980" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Wed, 15 Mar 2017 21:51:16 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post421980 Re: Modify blog tag widgets https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421630 <p>Thank you Michael <br />That worked like a charm. I did not even know about that thank you very much !! <br />Regards <br />Skullies</p> <br /> <p data-swiftype-index="false">Posted to: Modify blog tag widgets | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421630" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/119604" class="replyLink">Post Reply</a></p> Thu, 23 Feb 2017 01:47:41 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421630 Re: Modify blog tag widgets https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421629 <p>Hi @Skullies, </p><p>BlogTag has a function BlogPosts() which returns all the Blogposts with that Tag assigned to it. </p><p>So in the template when looping the BlogTag you can use </p><p>$BlogPosts.Count() which returns the number of posts that has the assigned. </p><p>Thanks <br />Michael</p> <br /> <p data-swiftype-index="false">Posted to: Modify blog tag widgets | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421629" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/119604" class="replyLink">Post Reply</a></p> Thu, 23 Feb 2017 00:59:09 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/119604#post421629 Modify blog tag widgets https://www.silverstripe.org/community/forums/widgets-2/show/119604 <p>Hi all <br />I am pretty sure this will be a easy thing to get working just cant seem to get my head wrapped around the issue <br />basically what I need to do is have the blog tags grow in size with the amount that blogs that reference the tag </p><p>so basically the tag that has the most blogs in will be the biggest. <br />I know that I will have to do a query and have a count <br />If anyone has a suggestion it would be appreciated </p><p>Thanks in advance</p> <br /> <p data-swiftype-index="false">Posted to: Modify blog tag widgets | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/119604" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/119604" class="replyLink">Post Reply</a></p> Tue, 21 Feb 2017 01:42:48 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/119604 Basic custom widget HELP! https://www.silverstripe.org/community/forums/widgets-2/show/111669 <p>Hello! I need help to create a simple basic widget: I need a widget to sign up to the newsletter. <br />It's very simple, I need a label where customers write their email and a button "Sign up" that sends a mail to my account where this person asks to be signed up to the newsletter. <br />I've tried and i successfully added a widget in the CMS, but nothing except the title is shown in the website... <br />Any suggestions?</p> <br /> <p data-swiftype-index="false">Posted to: Basic custom widget HELP! | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/111669" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/111669" class="replyLink">Post Reply</a></p> Wed, 24 Feb 2016 05:20:01 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/111669 Re: Using <% if $SideBarView %> in template https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412774 <p>Thanks for the suggestion. If anyone is interested, here is a current workaround: </p><p><div class="codesnippet"><p>class MyPageExtension extends DataExtension </p><p> function HasSidebar() <br /> { <br /> $sidebarID = $this-&gt;owner-&gt;SideBarID; <br /> if ($sidebarID) { <br /> $widgets = DataObject::get_one("Widget", "ParentID = $sidebarID"); <br /> if ($widgets) { <br /> return $widgets; <br /> } <br /> } else { <br /> return false; <br /> } <br /> } <br />}</p></div> </p><p>so in the template file: </p><p><div class="codesnippet"><p>div class="w-col-&lt;% if $hasSidebar %&gt;6&lt;% else %&gt;12&lt;% end_if %&gt;"&gt;</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Using &lt;% if $SideBarView %&gt; in template | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412774" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/111577" class="replyLink">Post Reply</a></p> Thu, 04 Feb 2016 17:09:35 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412774 Re: Using <% if $SideBarView %> in template https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412772 <p>Use the $Debug variable in the template to output useful info on the variables available. <br />Another thing to consider is that your template code may be inside a loop which means it may have gone out of scope</p> <br /> <p data-swiftype-index="false">Posted to: Using &lt;% if $SideBarView %&gt; in template | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412772" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/111577" class="replyLink">Post Reply</a></p> Thu, 04 Feb 2016 16:48:11 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/111577#post412772 Using <% if $SideBarView %> in template https://www.silverstripe.org/community/forums/widgets-2/show/111577 <p>Not sure if this has been covered before, and Had tried to search the web. But I am looking at using the $SideBarView variable, especially when trying to determine a template layout, so for example: </p><p><div class="codesnippet"><p>&lt;div class="col-&lt;% if $SideBarView %&gt;6&lt;% else %&gt;12&lt;% end_if %&gt;"&gt;</p></div> </p><p>However, I am trying to use this at the base Page.ss layout with no luck. Ideally I have a few different Layout templates to deal with so was wondering if anyone can point me in a good direction, to kind of determine in a more 'global' way of determining if the SideBar view should exist or not?</p> <br /> <p data-swiftype-index="false">Posted to: Using &lt;% if $SideBarView %&gt; in template | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/111577" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/111577" class="replyLink">Post Reply</a></p> Wed, 20 Jan 2016 14:49:08 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/111577 Re: How to install a widget? https://www.silverstripe.org/community/forums/widgets-2/show/104881#post405494 <p>Hi Phyma, </p><p>I'm not sure the Event-Calendar add-on works in this way, I could be wrong. <br />The reason I say this is because the CalendarWidget.php file doesnt extend Widget, instead it extends ViewableData. </p><p>Does the widget work within another location? </p><p>I did manage to find some information about the widget not working back in SS 2.4 (all I could find). <br />The forum post below might help out. <br /><a href="http://www.silverstripe.org/community/forums/widgets-2/show/8616?start=8">http://www.silverstripe.org/community/forums/widgets-2/show/8616?start=8</a> </p><p>-helenclarko</p> <br /> <p data-swiftype-index="false">Posted to: How to install a widget? | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/104881#post405494" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/104881" class="replyLink">Post Reply</a></p> Mon, 07 Sep 2015 09:09:19 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/104881#post405494 How to install a widget? https://www.silverstripe.org/community/forums/widgets-2/show/104881 <p>Hello! </p><p>So i'm new to this and dont know how to add widgets to the blog widget list. I have checked the forums and havent found anything and I dont understand the information on silverlight/widget so please keep it kind of simple with examples and detailed filenames. <br />So I have installed: <br />Silverstripe/widgets <br />the blog module </p><p>I can see the widget list with 4 widgets from the blog. <br />But I want a fifth one the event_calendar widget. </p><p>I have installed the event_calendar module and have a working calendar but I cant get the widget to be added to the widget list. </p><p>How do i do this? </p><p>Thank you!</p> <br /> <p data-swiftype-index="false">Posted to: How to install a widget? | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/104881" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/104881" class="replyLink">Post Reply</a></p> Sat, 05 Sep 2015 23:44:46 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/104881 Re: Facebook Feed Widget https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404209 <p>Thanks for your reply! I managed to fix it by removing the <div class="codesnippet"><p>if ( $show_post &amp;&amp; ( $show_status || ! $is_status ) )</p></div> conditional, and by appending <div class="codesnippet"><p>&amp;fields=message,picture,created_time</p></div> to the URL. <br />Also, yes, I was referring to the Facebook API.</p> <br /> <p data-swiftype-index="false">Posted to: Facebook Feed Widget | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404209" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/103593" class="replyLink">Post Reply</a></p> Tue, 04 Aug 2015 12:03:12 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404209 Re: Facebook Feed Widget https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404079 <p>By API version you are referring to Facebook, right? <br />SS2.4 support was discontinued in March. The widget might be far out of date if you're not talking about facebook.</p> <br /> <p data-swiftype-index="false">Posted to: Facebook Feed Widget | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404079" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/103593" class="replyLink">Post Reply</a></p> Mon, 03 Aug 2015 22:15:40 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/103593#post404079 Facebook Feed Widget https://www.silverstripe.org/community/forums/widgets-2/show/103593 <p>Hi guys, </p><p>I've installed this <a href="https://github.com/shoaibali/Facebook-Wall-Feed-widget-for-SilverStripe">https://github.com/shoaibali/Facebook-Wall-Feed-widget-for-SilverStripe</a> Facebook Feed widget, which seems to work fine on one of my apps that's running API version 2.0, but not on another running 2.4 (nothing shows up). I'm sure I have the App Id, Secret, Access tokens all right, and the settings within the app itself are the same as my previous app. </p><p>Any idea what could be causing this? I had thought there would be support for the 2.0 API up until at least next year. </p><p>Cheers, Finn.</p> <br /> <p data-swiftype-index="false">Posted to: Facebook Feed Widget | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/103593" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/103593" class="replyLink">Post Reply</a></p> Mon, 03 Aug 2015 15:02:17 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/103593 Re: SS3 Widget Module/WidgetAreaEditor Breaks CMS AJAX Functionality https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395823 <p>I've diagnosed and resolved the cause of this issue. It's mandatory that all files have a new line at the end. I don't know whether the culprit in my case was one of the PHP files or a .yaml or a _config ... but I made sure all the files ended with a new line and the bug disappeared (I do regard it as a bug - so far as I've been able to discover, the new line isn't a documented requirement).</p> <br /> <p data-swiftype-index="false">Posted to: SS3 Widget Module/WidgetAreaEditor Breaks CMS AJAX Functionality | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395823" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/22564" class="replyLink">Post Reply</a></p> Mon, 12 Jan 2015 16:57:31 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395823 Re: SS3 Widget Module/WidgetAreaEditor Breaks CMS AJAX Functionality https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395367 <p>I'm having an identical issue after creating a new Admin page. I'm fairly sure it's something I've implemented incorrectly, but as yet I haven't diagnosed the cause. All the pages including the new one load fine after a refresh. </p><p>When I track down the cause I'll post the details.</p> <br /> <p data-swiftype-index="false">Posted to: SS3 Widget Module/WidgetAreaEditor Breaks CMS AJAX Functionality | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395367" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/22564" class="replyLink">Post Reply</a></p> Sat, 10 Jan 2015 11:26:28 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/22564#post395367 Widget in Footer.ss https://www.silverstripe.org/community/forums/widgets-2/show/89351 <p>I am wanting to including the lastest blog posts widget in my includes/footer.ss to display the lastest blogs posts there. </p><p>But for the life of me I can't get it to work. </p><p>I have: <br />silverstripe-blog <br />widgets <br />widget-latestposts </p><p>Latest posts display in my sidebar on all my pages. Yey. Did something right. </p><p>But I only just want to display the latest blog posts widget in footer, not all the sidebar widgets. </p><p>Have tried $LatestPosts etc etc - to no avail. </p><p>Silverstripe version 3.1.5 </p><p>I read the widget github page: <a href="https://github.com/silverstripe/silverstripe-widgets">https://github.com/silverstripe/silverstripe-widgets</a> </p><p>But the Rendering a widget individually puts my site in error once I put $SilverStripeFeed in my footer.ss </p><p>I am not sure if that page is current or not as : </p><p>s directed in the definition of SilverStripeFeed(), the Widget will be rendered through the WidgetHolder template. This is pre-defined at framework/templates/WidgetHolder.ss and simply consists of: </p><p>:::ss <br />&lt;div class="WidgetHolder"&gt; <br /> &lt;h3&gt;$Title&lt;/h3&gt; <br /> $Content <br />&lt;/div&gt; <br />You can override the WidgetHolder.ss and Widget.ss templates in your theme too by adding WidgetHolder and Widget templates to themes/myThemeName/templates/Includes/ </p><p>I had to put those files in templates includes from widget - but still did not work :( </p><p>I very eagerly hope there is a very easy fix to my problem.</p> <br /> <p data-swiftype-index="false">Posted to: Widget in Footer.ss | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/89351" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/89351" class="replyLink">Post Reply</a></p> Mon, 08 Dec 2014 16:40:50 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/89351 Add a div to the title of a widget https://www.silverstripe.org/community/forums/widgets-2/show/88316 <p>Hello, </p><p>I want to use the space of the h3 title of the archive widget to use it as a button to toggle the slide up and down of its content for the mobile version of a site. I just can't find the place to add a div to it. As the h3 is not contained in the template I guess it's being generated with .php? Is there a way to add a div class containing the title to be able to target it with javascript? <br />Cheers for answers! <br />Nacho</p> <br /> <p data-swiftype-index="false">Posted to: Add a div to the title of a widget | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/88316" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/88316" class="replyLink">Post Reply</a></p> Tue, 02 Dec 2014 06:15:33 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/88316 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post386752 <p>Hey there, </p><p>I finally found a weird solution and I figured I should share it with the next one having the problem. I added the code to /mysite/_config/config.yml BUT I made a fresh install in another server. That worked! Interstingly enough, following the same steps in the first server didn't help. So I deleted the files of the server, copied and pasted the files from the second one (included .htaccess, which filezilla didn't recognize) and imported the database. Not elegant at all, but it worked!</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post386752" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Tue, 02 Dec 2014 06:07:55 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486?start=8#post386752 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post383383 <p>Sorry to bother again - could anyone help?<br>When I add a sitewide.yml file and run dev/build I get this error:</p><p>Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to parse line 5 (--- ).' in D:\KI-WEB\framework\thirdparty\zend_translate_railsyaml\library\Translate\Adapter\thirdparty\sfYaml\lib\sfYamlParser.php:265 Stack trace: #0 D:\KI-WEB\framework\core\manifest\ConfigManifest.php(275): sfYamlParser-&gt;parse('--- ?Name: widg...') #1 [internal function]: SS_ConfigManifest-&gt;addYAMLConfigFile('sitewide.yml', 'D:\KI-WEB/mysit...', 2) #2 D:\KI-WEB\framework\filesystem\FileFinder.php(158): call_user_func(Array, 'sitewide.yml', 'D:\KI-WEB/mysit...', 2) #3 D:\KI-WEB\framework\core\manifest\ConfigManifest.php(215): SS_FileFinder-&gt;find('D:\KI-WEB') #4 D:\KI-WEB\framework\core\manifest\ConfigManifest.php(103): SS_ConfigManifest-&gt;regenerate(false) #5 D:\KI-WEB\framework\core\Core.php(119): SS_ConfigManifest-&gt;__construct('D:\KI-WEB', false, true) #6 D:\KI-WEB\framework\main.php(122): require_once('D:\KI-WEB\frame...') #7 [internal function]: {closure}(Object(ErrorControlChain)) #8 D:\KI-WEB\framework\core\startup\Err in D:\KI-WEB\framework\thirdparty\zend_translate_railsyaml\library\Translate\Adapter\thirdparty\sfYaml\lib\sfYamlParser.php on line 265</p><p> Would be very grateful for help - thanks!</p> <br> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post383383" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Thu, 13 Nov 2014 01:21:50 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post383383 Hide widgets type https://www.silverstripe.org/community/forums/widgets-2/show/81571 <p>Anyone have ideia to hide widgets in specific page type?</p> <br /> <p data-swiftype-index="false">Posted to: Hide widgets type | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/81571" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/81571" class="replyLink">Post Reply</a></p> Tue, 04 Nov 2014 22:46:46 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/81571 Re: In Admin Only Show Widget on Certain Pagetypes https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371016 <p>Ok, so after a LOT of trial and error and a LOT of thinking about this I've finally come up with a fairly satisfactory solution.</p><p>First of all I created a DataExtension for UserDefinedForm.</p><p>In this DataExtension I added a new widget area, just for user defined form page types.</p><p>This then enabled me to use the $only_available_in property in my widget(s) to specify which widget area (rather than page type) they should be available in. I also removed the default widget area ('$fields-&gt;removeByName('Widgets');') so I didn't have them both showing up in the admin interface.</p><p>Finally, in my 'templates/[my-theme]/templates/Layout/Page.ss' file I added a simple conditional block to only output the user defined form widgets if the page type was 'UserDefinedForm':</p><p></p><div class="codesnippet"><p>&lt;% if ClassName = UserDefinedForm %&gt;<br>$UserDefinedFormWidgetArea<br>&lt;% end_if %&gt;</p></div><p>It's not as simple or elegant as I would like, but it works. It would be much better if widgets had a $allowed_page_types property (so you can just specify an array of page types you want the widget available on), but my knowledge doesn't go far enough to know how to set that up.</p><p>Anyway, I hope my example above helps others with a similar problem.</p> <br> <p data-swiftype-index="false">Posted to: In Admin Only Show Widget on Certain Pagetypes | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371016" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/48453" class="replyLink">Post Reply</a></p> Sat, 06 Sep 2014 01:34:21 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371016 Re: In Admin Only Show Widget on Certain Pagetypes https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371006 <p>I've looked into this a bit further and it turns out '$only_available_in' is for widget areas, not for page types. So if you have a sidebar widget area and a footer widget area you can make sure certain widgets are only shown in one or the other. </p><p>So, my problem still remains - how can I stop a widget from being shown on a particular page type? </p><p>Here's a more specific example: </p><p>I am using the userforms module. It inherits all the functionality of my 'Page' pagetype. This is fine, but there is one widget I don't want available on a UserDefinedForm page. </p><p>Any help would be gratefully received.</p> <br /> <p data-swiftype-index="false">Posted to: In Admin Only Show Widget on Certain Pagetypes | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371006" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/48453" class="replyLink">Post Reply</a></p> Fri, 05 Sep 2014 22:43:15 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/48453#post371006 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post360157 <p>Hello, </p><p>I installed a fresh 3.1.5 and the latest widgets and blog modules. The widgets tab is missing and the blog entries also don't show in the blog holder. I tried to create a sitewide.yml file with the given code but that didn't help. It's kind of discouraging that the blog and the widgets modules don't work out of the box. I would be very grateful for any help to fixing this problems - thanks!</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post360157" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Sat, 21 Jun 2014 01:54:28 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post360157 Re: widgets are not clickable. https://www.silverstripe.org/community/forums/widgets-2/show/25103#post350725 <p>Rename downloaded module to widgets. then use dev/build and check again</p> <br /> <p data-swiftype-index="false">Posted to: widgets are not clickable. | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25103#post350725" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25103" class="replyLink">Post Reply</a></p> Fri, 09 May 2014 19:26:29 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/25103#post350725 Re: Widgets cannot be clicked. https://www.silverstripe.org/community/forums/widgets-2/show/39259#post350724 <p>Rename downloaded module to widgets. then use dev/build and check again</p> <br /> <p data-swiftype-index="false">Posted to: Widgets cannot be clicked. | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/39259#post350724" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/39259" class="replyLink">Post Reply</a></p> Fri, 09 May 2014 19:25:26 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/39259#post350724 Re: In Admin Only Show Widget on Certain Pagetypes https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345463 <p>Thanks Willr. </p><p>I've tried your suggestions and it's still not working. Basically the widget doesn't appear in the available widgets area when I add that line of code (and I've doubled checked I am on a page with the correct pagetype). </p><p>My set up is as follows. I have a pagetype that extends Page, called PageHolder. My widget allows you to list child pages in the widget area. The bare bones of my widget code is as follows: </p><p><div class="codesnippet"><p>&lt;?php </p><p>class PageHolderListPlacementWidget extends Widget <br />{ <br />static $cmsTitle = 'Page Holder List Placement Widget'; <br />static $description = 'This widget allows you to position a Page Holder list on the page.'; <br />private static $only_available_in = array('PageHolder'); </p><p>// The rest of my widget code...</p></div> </p><p>Let me know if you think of anything else?</p> <br /> <p data-swiftype-index="false">Posted to: In Admin Only Show Widget on Certain Pagetypes | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345463" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/48453" class="replyLink">Post Reply</a></p> Fri, 04 Apr 2014 21:10:44 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345463 Re: In Admin Only Show Widget on Certain Pagetypes https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345461 <p>$only_available_in looks to be what you want (<a href="https://github.com/silverstripe/silverstripe-widgets/blob/master/code/model/Widget.php#L30">https://github.com/silverstripe/silverstripe-widgets/blob/master/code/model/Widget.php#L30</a>) I would check to ensure you have marked it as private, got the latest version of widgets module and you've done a flush.</p> <br /> <p data-swiftype-index="false">Posted to: In Admin Only Show Widget on Certain Pagetypes | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345461" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/48453" class="replyLink">Post Reply</a></p> Fri, 04 Apr 2014 17:06:01 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/48453#post345461 In Admin Only Show Widget on Certain Pagetypes https://www.silverstripe.org/community/forums/widgets-2/show/48453 <p>In Admin I have a widget that I only want to be available on a certain pagetype. I've tried things like the code below, but can't get it to work. </p><p><div class="codesnippet"><p>&lt;?php </p><p>class MyWidget extends Widget <br />{ <br /> // Stuff </p><p> static $only_available_in = array('MyPageType'); </p><p> // More stuff etc.</p></div> </p><p>Can anyone help?</p> <br /> <p data-swiftype-index="false">Posted to: In Admin Only Show Widget on Certain Pagetypes | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/48453" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/48453" class="replyLink">Post Reply</a></p> Fri, 04 Apr 2014 01:11:20 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/48453 Re: Widgets cannot be clicked. https://www.silverstripe.org/community/forums/widgets-2/show/39259#post336711 <p>add the below line </p><p>Director: <br /> environment_type: 'dev' </p><p>in mysite/_config/config.yml </p><p>and check it any error in firebug console</p> <br /> <p data-swiftype-index="false">Posted to: Widgets cannot be clicked. | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/39259#post336711" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/39259" class="replyLink">Post Reply</a></p> Tue, 11 Feb 2014 16:41:20 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/39259#post336711 Widgets cannot be clicked. https://www.silverstripe.org/community/forums/widgets-2/show/39259 <p>I have installed widgets on SS.3.1 </p><p>There is widgets tab in CMS. It says 'Click widget title below to use it on this page'. however, none of the widgets is clickable. </p><p>I have tried to find the solution. but it seems there is not solution, at least, commented in the similar topic. </p><p>So im here to give a try. </p><p>Help!!!! Thanks </p><p>(p.s. I have been struck on this for whole day.)</p> <br /> <p data-swiftype-index="false">Posted to: Widgets cannot be clicked. | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/39259" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/39259" class="replyLink">Post Reply</a></p> Wed, 05 Feb 2014 20:49:56 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/39259 Re: Fatal error: Class 'FieldSet' not found translation and weather widgets https://www.silverstripe.org/community/forums/widgets-2/show/25656#post325536 <p>FieldSet doesn't exist in 3.1, it has been replaced by FieldList. Those widgets probably haven't been updated for 3.1 support.</p> <br /> <p data-swiftype-index="false">Posted to: Fatal error: Class &#039;FieldSet&#039; not found translation and weather widgets | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25656#post325536" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25656" class="replyLink">Post Reply</a></p> Thu, 28 Nov 2013 22:49:44 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25656#post325536 Fatal error: Class 'FieldSet' not found translation and weather widgets https://www.silverstripe.org/community/forums/widgets-2/show/25656 <p>Hi </p><p>I wanted to create a subclass of the weather widget. But I can't seem to be able to install it properly </p><p>My distribution is SilverStripe 3.1.2 <br />And using the Simpli theme </p><p>I installed the distribution using composer, same did with the widgets and the translator modules. <br />The GoogleWeather widget was installed manually </p><p>When I go to the Widgets tab on the home page (admin area) I click on the '+ symbol to add the widget, I get the following error </p><p><div class="codesnippet"><p>Fatal error: Class 'FieldSet' not found in /www/fire.weather-it-is.com/widgets_GoogleWeather/GoogleWeatherWidget.php on line 83</p></div> </p><p>Same goes when I try to add the language chooser </p><p><div class="codesnippet"><p>Fatal error: Class 'FieldSet' not found in /www/fire.weather-it-is.com/widgets_languagechooser/LanguageChooser.php on line 11</p></div> </p><p>I can locate the FieldSet and FieldList functions inside </p><p>I appreciate any help</p> <br /> <p data-swiftype-index="false">Posted to: Fatal error: Class &#039;FieldSet&#039; not found translation and weather widgets | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25656" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25656" class="replyLink">Post Reply</a></p> Sat, 23 Nov 2013 23:07:57 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25656 Re: New Google Maps widget without API Key need https://www.silverstripe.org/community/forums/widgets-2/show/19217#post325340 <p>Hi Ayyurek, </p><p>I want to use this widget on silverstripe 3.0 with my custom theme, when i install the widget and write the code on my ContactPage.php, I got a fatal error </p><p>Fatal error: Class 'WidgetAreaEditor' not found in /home/luthra/public_html/en/mysite/code/ContactPage.php on line 9 </p><p>My ContactPage.php is : </p><p>&lt;?php <br />class ContactPage extends Page { <br /> public static $has_one = array( <br /> "Sidebar" =&gt; "WidgetArea" <br /> ); <br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;public function getCMSFields() { <br /> $fields = parent::getCMSFields(); <br /> $fields-&gt;addFieldToTab("Root.WidgetArea", new WidgetAreaEditor("Sidebar")); <br /> return $fields; <br /> } <br />} <br />class ContactPage_Controller extends Page_Controller { <br />} </p><p>Please let me know how can i get this one in a perfect way. </p><p>Thanks is Advance.</p> <br /> <p data-swiftype-index="false">Posted to: New Google Maps widget without API Key need | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/19217#post325340" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/19217" class="replyLink">Post Reply</a></p> Sat, 23 Nov 2013 07:33:20 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/19217#post325340 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325243 <p>That's great. Yes it should pick it up automatically. Great you got it working. </p><p>VWD.</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325243" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Thu, 14 Nov 2013 18:32:56 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325243 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325240 <p>Awesome stuff. Thanks that worked. </p><p>I upgraded from version 3 to 3.1 so I had to create the _config folder. is there anything else I needed to do? </p><p>I'm assuming it picks it up automatically.</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325240" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Thu, 14 Nov 2013 13:47:49 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325240 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325230 <p>Hi VXD, </p><p>I put that config code in: <em>/mysite/_config/sitewide.yml</em>. That's where I put all my config code and module config overrides. </p><p>If you want to add the widget area to holder pages also, here's the code: </p><p><div class="codesnippet"><p>--- <br />Name: widgetblogholderextension <br />After: <br /> - '#blog' <br />--- <br />BlogHolder: <br />&nbsp;&nbsp;&nbsp;extensions: <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- WidgetPageExtension <br />BlogEntry: <br />&nbsp;&nbsp;&nbsp;extensions: <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- WidgetPageExtension</p></div> </p><p>Hope that helps. </p><p>Kind regards, <br />VWD.</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325230" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Wed, 13 Nov 2013 19:40:36 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325230 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325228 <p>HI vwd, </p><p>Where did you add the below? </p><p><div class="codesnippet"><p>:::yml <br />BlogHolder: <br />extensions: <br />- WidgetPageExtension</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325228" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Wed, 13 Nov 2013 14:49:57 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325228 Using i18n in widgets (subclass of Widget) or widget extensions (subclass of DataExtension) https://www.silverstripe.org/community/forums/widgets-2/show/25553 <p>Trying to get translations to work in widget. But get not the translation </p><p>Directory structure of the widget in the ss root is: </p><p>- widget_test <br />-- _config <br />--- TestWidget.yml <br />-- code <br />--- extension <br />---- TestWidgetExtension.php <br />--- model <br />---- TestWidget.php <br />-- lang <br />--- _manifest_exclude <br />--- de.yml <br />--- en.yml <br />-- templates <br />-- _config.php </p><p>----------------------------------------------------------------------- </p><p>_config.php: <br />&lt;?php /* */ ?&gt; </p><p>----------------------------------------------------------------------- </p><p>Example code of TestWidget.php: </p><p>&nbsp;&nbsp;&nbsp;function getCMSFields() <br />&nbsp;&nbsp;&nbsp;{ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields = new FieldList( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new TabSet("GeneralTab", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabTemplate = new Tab( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name = 'SubTab', <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new HeaderField("filters", _t('FormFieldLabels.FILTERS', 'Filters')),&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new HeaderField("sorting", _t('FormFieldLabels.SORTING', 'Sorting')) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;), <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabRequest = new Tab( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name = 'RequestSettings' <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;), <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabInfo = new Tab( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name = 'InfoTab' <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabTemplate-&gt;setTitle(_t('TabLabels.TEMPLATESETTINGS', "Template settings")); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabRequest-&gt;setTitle(_t('TabLabels.REQUESTSETTINGS', "Request settings")); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tabInfo-&gt;setTitle(_t('TabLabels.INFOTAB', "Details")); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;extend('updateCMSFields', $fields); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return $fields; <br /> } </p><p>----------------------------------------------------------------------- </p><p>Example code of TestWidgetExtension.php: </p><p>function updateCMSFields(FieldList $fields) <br />{ <br />&nbsp;&nbsp;&nbsp;// Template settings <br />&nbsp;&nbsp;&nbsp;// - Filters <br />&nbsp;&nbsp;&nbsp;$fields-&gt;addFieldToTab('GeneralTab.SubTab', new NumericField("ResultStart", _t('FormFieldLabels.STARTROW', "STARTROW")), "sorting"); <br />} </p><p>----------------------------------------------------------------------- </p><p>Example code of de.yml: <br />de: <br /> FormFieldLabels: <br /> STARTROW: "Start at ..." </p><p>----------------------------------------------------------------------- </p><p>The NumericField is rendered, but the label is "STARTROW", instead it should be "Start at ..." Another problem is, that the values of the formfields don´t find their way to the database, but I already posted this in another topic (<a href="http://www.silverstripe.org/widgets-2/show/23444">http://www.silverstripe.org/widgets-2/show/23444</a>) </p><p>Any idea could help!</p> <br /> <p data-swiftype-index="false">Posted to: Using i18n in widgets (subclass of Widget) or widget extensions (subclass of DataExtension) | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25553" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25553" class="replyLink">Post Reply</a></p> Wed, 06 Nov 2013 21:53:01 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25553 Re: Tabset on a Widget, problem saving widget data on SS 3.0.5 https://www.silverstripe.org/community/forums/widgets-2/show/23444#post325156 <p>I have the same problem. Organizing the fields in Tabs does not work. All fields are displayed well. No errors on submit. Nut no value stored in the database, only the default values. </p><p>In my case I am using ss 3.0.5 since I can´t get widgets to work on 3.1.1. I don´t care about that, 3.0.5 is still ok, if it works. </p><p>Installed the widgets module. <br />Created new widget Widget1 and Widget2 <br />Created a widget extension for both Widget1 and Widget2</p> <br /> <p data-swiftype-index="false">Posted to: Tabset on a Widget, problem saving widget data on SS 3.0.5 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/23444#post325156" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/23444" class="replyLink">Post Reply</a></p> Wed, 06 Nov 2013 21:36:50 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/23444#post325156 Re: Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325051 <p>Looks like it is necessary to explicitly add the widget extension to BlogHolder… Is this a bug or deliberate? </p><p><div class="codesnippet"><p>:::yml <br />BlogHolder: <br /> extensions: <br /> - WidgetPageExtension</p></div> </p><p>VWD</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325051" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Wed, 30 Oct 2013 08:58:36 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486#post325051 Widgets Tab missing for Blog in SS3.1 https://www.silverstripe.org/community/forums/widgets-2/show/25486 <p>Hi, </p><p>Since migrating to SS3.1, I can't see my widgets tab in the blog holder page anymore. </p><p>I use composer to update all modules, and so should have all the latest modules, framework &amp; CMS: </p><p><div class="codesnippet"><p>{ <br />&nbsp;&nbsp;&nbsp;"name": "silverstripe/installer", <br />&nbsp;&nbsp;&nbsp;"description": "The SilverStripe Framework Installer", <br />&nbsp;&nbsp;&nbsp;"require": { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"php": "&gt;=5.3.2", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"silverstripe/cms": "3.1.*@dev", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"silverstripe/framework": "3.1.*@dev", <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"silverstripe-themes/simple": "*", <br /> "silverstripe/userforms": "dev-master", <br /> "silverstripe/blog": "dev-master", <br /> "silverstripe/widgets": "dev-master", <br /> "undefinedoffset/sortablegridfield": "dev-master", <br /> "silverstripe/googlesitemaps": "dev-master" <br />&nbsp;&nbsp;&nbsp;}, <br />&nbsp;&nbsp;&nbsp;"require-dev": { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"silverstripe/docsviewer": "*" <br />&nbsp;&nbsp;&nbsp;}, <br />&nbsp;&nbsp;&nbsp;"minimum-stability": "dev" <br />}</p></div> </p><p>Any idea why I can't see the Widgets tab please? When building a SS3.0 site, all that needed to be done was to have both modules installed, dev/build?flush=all, add a blog holder and voilá the Widgets tab was there. Are there any special steps involved in getting Widgets working with the blog (and the Widget tab visible) with SS3.1? </p><p>Thanks. <br />VWD.</p> <br /> <p data-swiftype-index="false">Posted to: Widgets Tab missing for Blog in SS3.1 | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25486" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25486" class="replyLink">Post Reply</a></p> Wed, 30 Oct 2013 08:18:16 +1300 https://www.silverstripe.org/community/forums/widgets-2/show/25486 Re: Installing widgets, block BlogHolder pages from being able to load in CMS https://www.silverstripe.org/community/forums/widgets-2/show/23220?start=8#post324437 <p>I have had a number of issues with SS modules and such lately.. and have found the forum near dead for help.. so .. <br />I have moved on. I have some live sites that have become 1/2 broken.. but only from the backend.. so I am leaving them as is.. and working on replacements, it was time for an update anyway.. just trying to decide it SS3 is going to be the way forward.</p> <br /> <p data-swiftype-index="false">Posted to: Installing widgets, block BlogHolder pages from being able to load in CMS | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/23220?start=8#post324437" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/23220" class="replyLink">Post Reply</a></p> Fri, 20 Sep 2013 04:16:05 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/23220?start=8#post324437 widgets are not clickable. https://www.silverstripe.org/community/forums/widgets-2/show/25103 <p>I see a large list of available widgets and the text: "Click a widget title below to use it on this page." <br />But all my widgets are just plain text. Clicking them doesnt seem to do a thing about it... it this normal? </p><p>Thanks!</p> <br /> <p data-swiftype-index="false">Posted to: widgets are not clickable. | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/25103" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/25103" class="replyLink">Post Reply</a></p> Thu, 19 Sep 2013 04:32:03 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/25103 Re: Nivo Slider CompositeField https://www.silverstripe.org/community/forums/widgets-2/show/17213#post324377 <p>Hi all, </p><p>I am new on silverstripe, I have installed nivo slider on it and complete the installation as per the instruction. After building the data base and flushing all the content nivo slider is not showing on my admin. </p><p>Please guide me where i am wrong. </p><p>Thanks in advance</p> <br /> <p data-swiftype-index="false">Posted to: Nivo Slider CompositeField | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/17213#post324377" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/17213" class="replyLink">Post Reply</a></p> Mon, 16 Sep 2013 05:22:20 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/17213#post324377 Re: Cant get Widgets to work https://www.silverstripe.org/community/forums/widgets-2/show/24010#post324307 <p>Im having a problem with widgets in 3.0.5. <br />The widgets page shows available widgets, and it says i should click them to add them. But they are not clickable at all. Seems like something is missing. </p><p>Any clues? </p><p>Thanks</p> <br /> <p data-swiftype-index="false">Posted to: Cant get Widgets to work | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/24010#post324307" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/24010" class="replyLink">Post Reply</a></p> Wed, 11 Sep 2013 10:13:00 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/24010#post324307 Re: Multiple Widget Areas. What problem? https://www.silverstripe.org/community/forums/widgets-2/show/19516#post324181 <p>I tried this in 3.1-rc1: </p><p>HomePage.php <br /><div class="codesnippet"><p>&nbsp;&nbsp;&nbsp;private static $has_one = array( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'MainWidgetArea' =&gt; 'WidgetArea', <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'SidebarWidgetArea' =&gt; 'WidgetArea' <br />&nbsp;&nbsp;&nbsp;); </p><p>&nbsp;&nbsp;&nbsp;public function getCMSFields(){ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields = parent::getCMSFields(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields-&gt;addFieldToTab('Root.Widgets', new WidgetAreaEditor('MainWidgetArea')); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields-&gt;addFieldToTab('Root.Sidebar', new WidgetAreaEditor('SidebarWidgetArea')); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return $fields; <br />&nbsp;&nbsp;&nbsp;}</p></div> </p><p>and a template HomePage.ss which reads like this: </p><p><div class="codesnippet"><p>&lt;div class="content-container unit size3of4 lastUnit"&gt; <br /> &lt;div&gt; <br /> $MainWidgetArea <br /> &lt;/div&gt; <br /> &lt;div class="content"&gt;$Content&lt;/div&gt; <br /> &lt;div&gt; <br /> $Form <br /> $PageComments <br /> &lt;/div&gt; <br /> &lt;aside&gt; <br /> $SidebarWidgetArea <br /> &lt;/aside&gt; <br />&lt;/div&gt;</p></div> </p><p>Then, I added/removed widgets (wrote two sample widgets that return a string) in the admin-section and experienced strange behavior: <br /><ul><li>Log in to ss/admin <br /></li><li>create page "HomePage" <br /></li><li>define Widget 'weather forecast' for Widet-Area <br /></li><li>publish <br /></li><li>display page: weather widget is shown <br /></li><li>define Widget "facebook messages" for "Sidebar"-Widget Area <br /></li><li>publish <br /></li><li>display page: both template blocks are shown, but only the weather-widget shows the output from the widget-Controller <br /></li><li>admin: delete widget from main widget area <br /></li><li>publish <br /></li><li>display page: only the facebook-message widget is shown, but now includes the text, which is returned by the Widget-Controller <br /></li><li>admin: exchange the facebook messages in the sidebar with the weather widget and put the facbook widget into the main widget-area <br /></li><li>publish <br /></li><li>display page:both template blocks are shown but this time only the facebook message widget displays the text returned by the widget-ontroler <br /></li><li>admin: remove the facebook message widget <br /></li><li>publish <br /></li><li>display: whe facebook widget ist gone, the thext for the weather widget is shown <br /></li></ul> </p><p>From this experience, I concluded that either I misunderstood the widget/template-mechanism or the widget is broken.</p> <br /> <p data-swiftype-index="false">Posted to: Multiple Widget Areas. What problem? | <a href="https://www.silverstripe.org/community/forums/widgets-2/show/19516#post324181" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/widgets-2/reply/19516" class="replyLink">Post Reply</a></p> Wed, 04 Sep 2013 06:52:33 +1200 https://www.silverstripe.org/community/forums/widgets-2/show/19516#post324181