https://www.silverstripe.org/community/forums/rss Search not displaying results when searching for blog articles including forward-slash https://www.silverstripe.org/community/forums/blog-module-forum/show/122077 <p>Hi team, I'm not sure if this is the Blog modules fault at all but my Silverstripe site isn't returning blog articles that include results with a forward slash in the title or content. Specifically the query is <div class="codesnippet"><p>AS/NZS</p></div> </p><p>The article turns up as a result if I search with any other word or sentence that's included, but not if I specifically search for the above query. </p><p>I have <div class="codesnippet"><p>FulltextSearchable::enable();</p></div> enabled. </p><p>Is this something common with Silverstripe search? Any chance of shedding some light on the subject? Cheers</p> <br /> <p data-swiftype-index="false">Posted to: Search not displaying results when searching for blog articles including forward-slash | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/122077" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/122077" class="replyLink">Post Reply</a></p> Wed, 20 Sep 2017 16:29:16 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/122077 Blog page not adding https://www.silverstripe.org/community/forums/blog-module-forum/show/121912 <p>I am trying to add a blog to a SilverStripe site using the Blog Module. </p><p>The package seemed to install fine via </p><div class="codesnippet"><p>composer require silverstripe/blog</p></div> and dev/build returned no errors. The ‘Blog’ page type is also available from the ‘Add page’ menu.<p>After adding a ‘Blog’ page, the site doesn’t redirect to http://localhost:8888/example/admin/pages/edit/show and simply remains on the http://localhost:8888/example/admin/pages/add/ page.<br>From what I can tell, the only result from this action is an ‘ARCHIVED’ page being added to the sitetree.</p><p>Have ?flush=all etc as per other suggestions to no avail and other page types are still being added fine.</p><p>Does anyone have any idea what might be going on here?</p><p>Currently using:<br></p><div class="codesnippet"><p>"silverstripe/cms": "3.6.1",<br> "silverstripe/framework": "3.6.1",<br> "phpunit/PHPUnit": "~3.7@stable"<br> "silverstripe/blog": "2.4.6"</p></div><p>[Edit 13/09/2017]</p><p>While simply adding a 'Blog' page produces no observable errors, adding a generic 'Page' and changing the page type to 'Blog' produces the following error in the php_error.log:</p><p></p><div class="codesnippet"><p>PHP Warning: require_once(/Applications/MAMP/htdocs/example/blog/_config.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141</p></div><p></p><div class="codesnippet"><p>PHP Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/example/blog/_config.php' (include_path='/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit-mock-objects:/Applications/MAMP/htdocs/example/vendor/phpunit/php-token-stream:/Applications/MAMP/htdocs/example/vendor/phpunit/php-code-coverage:/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit:/Applications/MAMP/htdocs/example/vendor/symfony/yaml:.:/Applications/MAMP/htdocs/example/framework:/Applications/MAMP/htdocs/example/framework/parsers:/Applications/MAMP/htdocs/example/framework/thirdparty:.:/Applications/MAMP/bin/php/php5.6.30/lib/php') in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141</p></div> <br> <p data-swiftype-index="false">Posted to: Blog page not adding | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/121912" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/121912" class="replyLink">Post Reply</a></p> Tue, 12 Sep 2017 10:03:36 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/121912 Blog module breaking silverstripe search https://www.silverstripe.org/community/forums/blog-module-forum/show/121278 <p>Hello,</p><p>I have a website running Silverstripe(3.6.1) with the blog module (silverstripe-blog-camfindlay-patch-1).<br>I get the following error when I use silverstripe search. This errors occurs no matter what you type in the search box. I have no idea why this is happening.</p><p></p><div class="codesnippet"><p>[Recoverable Error] Argument 1 passed to PaginatedList::__construct() must implement interface SS_List, null given, called in X :\path-to-website\silverstripe-blog-camfindlay-patch-1\code\model\Blog.php on line 965 and defined<br>GET /path-to-website/about-us/blog/SearchForm?Search=Application&amp;action_results=</p><p>Line 26 in X:\path\to\website\framework\core\PaginatedList.php</p></div> <br> <p data-swiftype-index="false">Posted to: Blog module breaking silverstripe search | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/121278" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/121278" class="replyLink">Post Reply</a></p> Mon, 10 Jul 2017 18:21:45 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/121278 Re: Blog Headlines on HomePage with SilverStripe 3.1.x https://www.silverstripe.org/community/forums/blog-module-forum/show/94633?start=8#post423479 <p>So you need to debug the problem. </p><p>________________________________________________ <br /><a href="https://goo.gl/mm6eNU">goldenslot</a></p> <br /> <p data-swiftype-index="false">Posted to: Blog Headlines on HomePage with SilverStripe 3.1.x | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/94633?start=8#post423479" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/94633" class="replyLink">Post Reply</a></p> Tue, 27 Jun 2017 17:27:58 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/94633?start=8#post423479 Re: Display recent blog posts on homepage? https://www.silverstripe.org/community/forums/blog-module-forum/show/102585?start=16#post423478 <p>If you want your current latestBlogEntry function to work, try returning blogpost rather than the process. </p><p><a href="https://goo.gl/YMbZjs">gclub</a></p> <br /> <p data-swiftype-index="false">Posted to: Display recent blog posts on homepage? | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/102585?start=16#post423478" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/102585" class="replyLink">Post Reply</a></p> Tue, 27 Jun 2017 17:27:01 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/102585?start=16#post423478 Re: Blog Module - Can not add a blog post 500 Internal Server Error https://www.silverstripe.org/community/forums/blog-module-forum/show/102487#post423477 <p>Thank you infomation. </p><p><a href="https://goo.gl/B8DSrF">โปรโมชั่น sbobet</a></p> <br /> <p data-swiftype-index="false">Posted to: Blog Module - Can not add a blog post 500 Internal Server Error | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/102487#post423477" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/102487" class="replyLink">Post Reply</a></p> Tue, 27 Jun 2017 17:26:12 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/102487#post423477 Re: Display list of blog posts, filtered by specific category https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post423476 <p>I am having the same issue. Any help would be great! Thanks. </p><p>__________________________________________________________ <br /><a href="https://goo.gl/x7mnHf">แทงบอล sbobet</a></p> <br /> <p data-swiftype-index="false">Posted to: Display list of blog posts, filtered by specific category | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post423476" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/105585" class="replyLink">Post Reply</a></p> Tue, 27 Jun 2017 17:25:08 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post423476 Re: New Blog Posts - cannot longer Publish or Delete https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post423475 <p>Can't post blogs, nor can I delete them. </p><p>I may go to the IRC channel as you suggest; I am completely bewildered.... </p><p>______________________________________________________________________ <br /><a href="https://goo.gl/nREUyc">sbobet มือถือ</a></p> <br /> <p data-swiftype-index="false">Posted to: New Blog Posts - cannot longer Publish or Delete | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post423475" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111612" class="replyLink">Post Reply</a></p> Tue, 27 Jun 2017 17:23:56 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post423475 Re: Multiple Blog Templates https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post423474 <p>Thank you infomation. </p><p><a href="https://goo.gl/71wuWf">สมัคร sbobet</a></p> <br /> <p data-swiftype-index="false">Posted to: Multiple Blog Templates | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post423474" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119619" class="replyLink">Post Reply</a></p> Sat, 24 Jun 2017 15:18:47 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post423474 Re: How to set up the Blog Module? https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post423473 <p>after that, type in blog, its the first one to come up, use that to install a blog module. </p><p><a href="https://goo.gl/1whvaD">ทางเข้า sbobet</a></p> <br /> <p data-swiftype-index="false">Posted to: How to set up the Blog Module? | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post423473" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/14987" class="replyLink">Post Reply</a></p> Sat, 24 Jun 2017 15:15:47 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post423473 Re: How to set up the Blog Module? https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post422838 <p>Been looking for some resources myself. Found these: </p><p> <a href="https://github.com/silverstripe/silverstripe-blog/blob/master/docs/en/userguide/index.md">User Guide</a> <br /> <a href="https://github.com/silverstripe/silverstripe-blog/blob/master/docs/en/index.md">Developer Guide</a></p> <br /> <p data-swiftype-index="false">Posted to: How to set up the Blog Module? | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post422838" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/14987" class="replyLink">Post Reply</a></p> Thu, 20 Apr 2017 19:09:21 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/14987?start=8#post422838 Re: Show future blog posts https://www.silverstripe.org/community/forums/blog-module-forum/show/120693#post422827 <p>In case someone else in wondering, just remove the following line from BlogFilter.php &amp; BlogPostFilter.php </p><p><div class="codesnippet"><p>-&gt;where(sprintf('"PublishDate" &lt; \'%s\'', Convert::raw2sql(SS_Datetime::now())));</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Show future blog posts | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/120693#post422827" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/120693" class="replyLink">Post Reply</a></p> Thu, 13 Apr 2017 20:36:41 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/120693#post422827 Show future blog posts https://www.silverstripe.org/community/forums/blog-module-forum/show/120693 <p>Hello, </p><p>If I make a blog post and set it's date to someday in the future, it will only be posted on that date. I want it to have a future date but be displayed to public area because I'm using the Blog module as Events so visitors need to be able to see Upcoming Events.</p> <br /> <p data-swiftype-index="false">Posted to: Show future blog posts | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/120693" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/120693" class="replyLink">Post Reply</a></p> Mon, 10 Apr 2017 20:31:04 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/120693 Re: How Do I Delete Tag Cloud? https://www.silverstripe.org/community/forums/blog-module-forum/show/7622#post421963 <p>Is anyone able to tell me how to remove tags. IE I want to remove some of the tags. Thanks!</p> <br /> <p data-swiftype-index="false">Posted to: How Do I Delete Tag Cloud? | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/7622#post421963" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/7622" class="replyLink">Post Reply</a></p> Mon, 13 Mar 2017 10:06:52 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/7622#post421963 Re: Multiple Blog Templates https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421772 <p>Hi @SilverstripeLearner, </p><p>This will only work if you only have two blogs </p><p>Event <br /><div class="codesnippet"><p>public function getEvents() { <br /> return Blog::get()-&gt;filter('isEventHolder' =&gt; '1')-&gt;first(); <br />}</p></div> </p><p>News <br /><div class="codesnippet"><p>public function getNews() { <br /> return Blog::get()-&gt;filter('isEventHolder' =&gt; '0')-&gt;first(); <br />}</p></div> </p><p>Put both of these functions into your Page.php or Homepage.php </p><p>Then in your template you can do </p><p>Events <br /><div class="codesnippet"><p>&lt;% with getEvents %&gt; <br /> &lt;% loop Children.Sort('PublishDate','DESC').Limit(3) %&gt; <br /> &lt;a href="{$Link}"&gt;$Title&lt;/a&gt; <br /> &lt;% end_loop %&gt; <br />&lt;% end_with %&gt;</p></div> </p><p>News <br /><div class="codesnippet"><p>&lt;% with getEvents %&gt; <br /> &lt;% loop Children.Sort('PublishDate','DESC').Limit(3) %&gt; <br /> &lt;a href="{$Link}"&gt;$Title&lt;/a&gt; <br /> &lt;% end_loop %&gt; <br />&lt;% end_with %&gt;</p></div> </p><p>Thanks <br />Michael</p> <br /> <p data-swiftype-index="false">Posted to: Multiple Blog Templates | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421772" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119619" class="replyLink">Post Reply</a></p> Wed, 01 Mar 2017 02:22:04 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421772 Re: Multiple Blog Templates https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421766 <p>Hello @Michael, </p><p>Thanks for your reply, I was short on time and what I've finally done to solve this is: <br />I created 2 templates: News and Events and both extend the Blog and it works fine. But now I have another problem, I want to display on my Homepage, <br />on the left side posts from News and on the right side posts from Events. I filtered the blog posts by their parent's ID but I hardcoded the ID. Any <br />idea how I dynamically get those ID's ?</p> <br /> <p data-swiftype-index="false">Posted to: Multiple Blog Templates | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421766" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119619" class="replyLink">Post Reply</a></p> Tue, 28 Feb 2017 11:39:12 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421766 Re: Multiple Blog Templates https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421643 <p>Hi @SilverstripeLearner, </p><p>You can extend Blog to have a checkbox to switch the layout </p><p><div class="codesnippet"><p>&lt;?php <br />class BlogExtension extends DataExtension { <br /> private static $db = array( <br /> 'isEventHolder' =&gt; 'Boolean' <br /> ); <br /> public function updateCMSFields(FieldList $fields) { <br /> $fields-&gt;addFieldToTab('Root.Main', CheckboxField::create('isEventHolder', 'Event Layout'),'Content'); <br /> } <br />}</p></div> </p><p>config.yml </p><p><div class="codesnippet"><p>Blog: <br /> extensions: <br /> - BlogExtension</p></div> </p><p>Run a dev/build by visiting yourdomain.com/dev/build </p><p>Then have 2 Includes </p><p>BlogLayout.ss and EventLayout.ss </p><p>Then in the Blog template you can have an if statement </p><p><div class="codesnippet"><p>&lt;% if isEventHolder == 1 %&gt; <br /> &lt;% include EventLayout %&gt; <br />&lt;% else %&gt; <br /> &lt;% include BlogLayout %&gt; <br />&lt;% end_if %&gt;</p></div> </p><p>Thanks <br />Michael</p> <br /> <p data-swiftype-index="false">Posted to: Multiple Blog Templates | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421643" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119619" class="replyLink">Post Reply</a></p> Fri, 24 Feb 2017 10:19:40 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119619#post421643 Multiple Blog Templates https://www.silverstripe.org/community/forums/blog-module-forum/show/119619 <p>I just installed Blog Module and set up my first blog called "News" and now I need to set up another blog called "Events". For the News blog I modified the layout straight into the blog files but now that I need a different layout for "Events" blog, I understand that I need another approach. I rad something about making an SuperBlogHolder and having BlogHolder just pass the $Layout but I didn't really understand how that works. </p><p>I would appreciate any response, thanks and have a great day !</p> <br /> <p data-swiftype-index="false">Posted to: Multiple Blog Templates | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119619" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119619" class="replyLink">Post Reply</a></p> Fri, 24 Feb 2017 01:03:11 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119619 Featured Images included in the RSS feed https://www.silverstripe.org/community/forums/blog-module-forum/show/119610 <p>I am currently using v2.4.2 blog module. I have noticed that the RSS feed generated by blog page doesn't include the blogpost featured images. The featured image can be loaded on the blogpost page through the CMS. <br />How difficult would it be for the feed to include the featured images. </p><p>Cheers</p> <br /> <p data-swiftype-index="false">Posted to: Featured Images included in the RSS feed | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119610" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119610" class="replyLink">Post Reply</a></p> Tue, 21 Feb 2017 17:18:53 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119610 ArchiveWidget: Grouping by Months then Years https://www.silverstripe.org/community/forums/blog-module-forum/show/119156 <p>Forgive me if this is obvious, but I couldn't find the answer if it's been posted before. I've created one site with SS and it was a few years ago, so I've forgotten a lot about it! </p><p>I've got a blog with a sidebar containing the ArchiveWidget. Currently it contains one long list of Months (December 2016, November 2016, ... January 2014). Is there a way to truncate the years for every year older than the current year? <br />Something like: <br />- December 2016 <br />- November 2016 <br />- ... <br />- January 2016 <br />&gt; 2015 <br />&gt; 2014 </p><p>It would be best if the generated UL could be split into separate ULs for each year; that way I could use Jquery to collapse/display subsequent years (like an accordion). Thanks in advance. <br />Paul </p><p>EDIT: I realise I'm using an old version of the Blog Module. I'll look into upgrading and see if that solves my problem!</p> <br /> <p data-swiftype-index="false">Posted to: ArchiveWidget: Grouping by Months then Years | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119156" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119156" class="replyLink">Post Reply</a></p> Tue, 07 Feb 2017 01:29:07 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119156 Re: Adding fields to BlogCategory and BlogTag https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421005 <p>I'm 99.9% certain this has something to do with BlogCategory being passed through Injector and renamed to BlogCategoryLinkCustomisation. </p><p>I needed to extend BlogTag in the same way so tested with the process detailed above and that worked fine. </p><p>So, I then added the following to config.yml: <br /><div class="codesnippet"><p>... <br />Injector: <br /> BlogCategory: <br /> class: BlogCategoryLinkCustomisation <br />BlogCategoryLinkCustomisation: <br /> extensions: <br /> - BlogCategoryExtension <br />BlogTag: <br /> extensions: <br /> - BlogTagExtension <br />...</p></div> </p><p>When I run /dev/build no fields are created for BlogCategory, but when I view the BlogCategory admin form I do have 3 extra fields ... which is some form of progress. Any advice on how I extend BlogCategory when it's been passed through Injector?</p> <br /> <p data-swiftype-index="false">Posted to: Adding fields to BlogCategory and BlogTag | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421005" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119091" class="replyLink">Post Reply</a></p> Fri, 09 Dec 2016 04:57:50 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421005 Re: Adding fields to BlogCategory and BlogTag https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421003 <p>Realised I should be doing this via /mysite/code/Extensions instead, so tried the following: </p><p>Created /mysite/code/Extensions/BlogCategoryExtension.php: </p><p><div class="codesnippet"><p>&lt;?php <br />class BlogCategoryExtension extends DataExtension { </p><p>&nbsp;&nbsp;&nbsp;private static $db = array( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Description' =&gt; 'Varchar(255)', <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'MetaTitle' =&gt; 'Varchar(255)', <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'MetaDescription' =&gt; 'Varchar(255)', <br />&nbsp;&nbsp;&nbsp;); <br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;public function updateCMSFields(FieldList $fields) { <br />&nbsp;&nbsp;&nbsp; $fields-&gt;push(new TextField('Description')); <br />&nbsp;&nbsp;&nbsp; $fields-&gt;push(new TextField('MetaTitle')); <br />&nbsp;&nbsp;&nbsp; $fields-&gt;push(new TextField('MetaDescription')); <br />&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp; <br />}</p></div> </p><p>I then added the following to /mysite/_config/config.yml: </p><p><div class="codesnippet"><p>... <br />BlogCategory: <br /> extensions: <br /> - BlogCategoryExtension <br />...</p></div> </p><p>Then ran /dev/build. </p><p>No field was added to the database table and when I try and access the blog part of silverstripe's admin I just get a grey screen. If I remove the lines I added to config.yml and run /dev/build again all returns to normal.</p> <br /> <p data-swiftype-index="false">Posted to: Adding fields to BlogCategory and BlogTag | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421003" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119091" class="replyLink">Post Reply</a></p> Fri, 09 Dec 2016 04:13:08 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119091#post421003 Adding fields to BlogCategory and BlogTag https://www.silverstripe.org/community/forums/blog-module-forum/show/119091 <p>Hi, </p><p>I'm trying to add extra fields to BlogCategory, but after adding them to the $db array and running dev/build no new fields are created. </p><p>If I add a new field to /blog/code/model/BlogPost.php::db and run dev/build then the field is created as expected. </p><p>Is there some special build that I need to run to get dev/build to recognise new config changes in /blog/code/model/BlogCategory.php. </p><p>The site uses Silverstripe 3.2. </p><p>Thanks, Paul</p> <br /> <p data-swiftype-index="false">Posted to: Adding fields to BlogCategory and BlogTag | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/119091" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/119091" class="replyLink">Post Reply</a></p> Fri, 09 Dec 2016 03:41:29 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/119091 Re: PostSummary.ss, odd markup in post-image paragraph https://www.silverstripe.org/community/forums/blog-module-forum/show/104888#post420927 <p>The missing attribute name for <div class="codesnippet"><p>Blog.ReadMoreAbout</p></div> was fixed by <a href="https://github.com/silverstripe/silverstripe-blog/commit/bb1484b45e3bad27b10b47a8973da65c54245a68">https://github.com/silverstripe/silverstripe-blog/commit/bb1484b45e3bad27b10b47a8973da65c54245a68</a> by the addition of <strong>title=</strong>.</p> <br /> <p data-swiftype-index="false">Posted to: PostSummary.ss, odd markup in post-image paragraph | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/104888#post420927" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/104888" class="replyLink">Post Reply</a></p> Tue, 22 Nov 2016 17:52:42 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/104888#post420927 Looping over Blog Posts of a Certain Category giving duplicated results. https://www.silverstripe.org/community/forums/blog-module-forum/show/118675 <p>Hi, <br /> so I am trying to show two blog posts of a certain category on one of my page templates. I have managed to write a function that pulls in all blog posts and makes them accessible via the page and then I have the below code on the template to render out just 2 posts with the correct category of "Business-Featured". which works, however, it seems to be running the loop twice as it is bringing in both posts twice. can anyone see where I have gone wrong? </p><p><div class="codesnippet"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% if $RecentNews %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop $RecentNews %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop $Categories %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% if $Title ="Business-Featured" %&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop blogPosts.Limit(2) %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="col-md-6"&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$FeaturedImage.CroppedImage(555, 144) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="post-preview"&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;&lt;a href="$Link"&gt;$Title&lt;/a&gt;&lt;/h3&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;$Summary &lt;a href="$Link" style="display: inline;"&gt;Read More...&lt;/a&gt;&lt;/p&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_if %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_if %&gt;</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Looping over Blog Posts of a Certain Category giving duplicated results. | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118675" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118675" class="replyLink">Post Reply</a></p> Tue, 11 Oct 2016 16:36:44 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/118675 Looping over Blog Posts of a Certain Category giving duplicated results. https://www.silverstripe.org/community/forums/blog-module-forum/show/118674 <p>Hi, <br /> so I am trying to show two blog posts of a certain category on one of my page templates. I have managed to write a function that pulls in all blog posts and makes them accessible via the page and then I have the below code on the template to render out just 2 posts with the correct category of "Business-Featured". which works, however, it seems to be running the loop twice as it is bringing in both posts twice. can anyone see where I have gone wrong? </p><p><div class="codesnippet"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% if $RecentNews %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop $RecentNews %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop $Categories %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% if $Title ="Business-Featured" %&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% loop blogPosts.Limit(2) %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="col-md-6"&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$FeaturedImage.CroppedImage(555, 144) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="post-preview"&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;&lt;a href="$Link"&gt;$Title&lt;/a&gt;&lt;/h3&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;$Summary &lt;a href="$Link" style="display: inline;"&gt;Read More...&lt;/a&gt;&lt;/p&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_if %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_loop %&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;% end_if %&gt;</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Looping over Blog Posts of a Certain Category giving duplicated results. | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118674" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118674" class="replyLink">Post Reply</a></p> Tue, 11 Oct 2016 16:36:41 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/118674 Widget Tab not showing on blog pages https://www.silverstripe.org/community/forums/blog-module-forum/show/118627 <p>Hi there </p><p>I have recently upgraded my site from 2.4 to 3.4, was a bit of a nightmare when it came to the blog module. I thankfully have the blog posts showing but am not able to add any widgets or add them to my sidebar. I have downloaded and installed the lasted versions manually ( a few times just in case) and run dev/build. All the tables are there in the db but I am not sure why the widgets are not showing up? Any ideas? Any help will be greatly appreciated </p><p>Denise</p> <br /> <p data-swiftype-index="false">Posted to: Widget Tab not showing on blog pages | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118627" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118627" class="replyLink">Post Reply</a></p> Tue, 13 Sep 2016 14:39:59 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/118627 Rename Blog SideBar headings https://www.silverstripe.org/community/forums/blog-module-forum/show/118575 <p>Hi there I have a Technical Issue I am trying to solve. <br />We have a website using Silverstripe v3.4 CMS. <br />We have installed the blog module and are using it on two pages. ‘News’ and ‘Projects’. <br />On the Projects page only we want to change the headings on the Blog Tag Widget and Blog Categories Widget. <br />From ‘Categories’ to ‘Facility Type’ and ‘Tags’ to ‘Location’. <br />The widget headings are located in the WidgetHolder.SS file below. In $Title variable </p><p>&lt;div class="WidgetHolder $ClassName&lt;% if FirstLast %&gt; $FirstLast&lt;% end_if %&gt;"&gt; <br /> &lt;% if Title %&gt;&lt;h3&gt;$Title&lt;/h3&gt;&lt;% end_if %&gt; <br /> $Content <br />&lt;/div&gt; </p><p>What I was tiring to do was to have a If statement in the WidgetHolder.ss file to override the $Title variable. <br />But my problem is I can’t access the default page placeholder $Title variable which would tell me I am on the Projects page. </p><p>Cheers Stuart </p><p>Hi Stuart, </p><p>As suggested on the phone, you could try extending the Blog pagetype, calling the new one something like ProjectBlog, and configure the Projects page to use this new pagetype. You will then be able to use the $ClassName variable to determine whether you are on a ProjectBlog page or not. Here’s a quick example of how to extend the Blog pagetype (put this in a new file named something along the lines of mysite/code/ProjectBlog.php): </p><p>&lt;?php </p><p>class ProjectBlog extends Blog { } </p><p>class ProjectBlog_Controller extends Blog_Controller { } </p><p>I hope this helps! </p><p>Thanks, <br />Garion <br />— <br />Garion Herman | Support Developer <br />SilverStripe <br /><a href="http://silverstripe.com/">http://silverstripe.com/</a> </p><p>I have created a new ProjectsBlog page type ok. <br />But I am a bit confused on where to use the $ClassName variable that Garion has suggested. I tried using it in the WidgetHolder.SS file. <br />It will display in my page sidebar the text words 'BlogCaegoriesWidget' for Categories and 'BlogTagsWidget' for Tags </p><p>Can anyone help please <br />Stuart</p> <br /> <p data-swiftype-index="false">Posted to: Rename Blog SideBar headings | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118575" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118575" class="replyLink">Post Reply</a></p> Thu, 11 Aug 2016 13:58:44 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/118575 weirdness with pagination links (solved) https://www.silverstripe.org/community/forums/blog-module-forum/show/118570 <p>I'm using SS 3.4 and Blog 2.4.2 </p><p>the Pagination.SS include is appearing as it should but the links have: <br /> sitename.com/blog/category/blog/category/cat-name?start=20 <br />or <br />sitename.com/blog/blog?start=20 </p><p>it's duplicating the root section of the URL when it's generating the $Link <br />does anybody know where this is made? </p><p>I'm guessing it uses a bunch of SiteTree 'URLSegment' and concats them together somewhere? </p><p>cheers <br />Haydn </p><p>I had to put a / in Pagination.ss and it worked: </p><p>&lt;a href="/$Link"&gt;$PageNum&lt;/a&gt;</p> <br /> <p data-swiftype-index="false">Posted to: weirdness with pagination links (solved) | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118570" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118570" class="replyLink">Post Reply</a></p> Tue, 09 Aug 2016 01:44:14 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/118570 Re: Related Posts https://www.silverstripe.org/community/forums/blog-module-forum/show/17550#post420285 <p>Hi, <br />i want to know how to use this snippet when we don't know that customer use an exactly tag or category?(the customers adds new tags everyday) <br />what we must use instead "%news%" ?!?</p> <br /> <p data-swiftype-index="false">Posted to: Related Posts | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/17550#post420285" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/17550" class="replyLink">Post Reply</a></p> Sun, 07 Aug 2016 02:50:22 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/17550#post420285 MSSQL Query Error https://www.silverstripe.org/community/forums/blog-module-forum/show/118442 <p>Hi, </p><p>I've recently installed this blog module onto a project I'm working on which uses MSSQL as the database. After created the Blog page I get a DB error: </p><p><div class="codesnippet"><p>SELECT DISTINCT TOP 15 "PublishDate" IS NULL AS "_SortColumn0", "SiteTree"."ClassName", "SiteTree"."LastEdited", "SiteTree"."Created", "SiteTree"."URLSegment", "SiteTree"."Title", "SiteTree"."MenuTitle", "SiteTree"."Content", "SiteTree"."MetaDescription", "SiteTree"."ExtraMeta", "SiteTree"."ShowInMenus", "SiteTree"."ShowInSearch", "SiteTree"."Sort", "SiteTree"."HasBrokenFile", "SiteTree"."HasBrokenLink", "SiteTree"."ReportClass", "SiteTree"."CanViewType", "SiteTree"."CanEditType", "SiteTree"."Locale", "SiteTree"."DesiredPublishDate", "SiteTree"."DesiredUnPublishDate", "SiteTree"."PublishOnDate", "SiteTree"."UnPublishOnDate", "SiteTree"."ProvideComments", "SiteTree"."ModerationRequired", "SiteTree"."CommentsRequireLogin", "SiteTree"."InheritSideBar", "SiteTree"."PublicHistory", "SiteTree"."ShareTokenSalt", "SiteTree"."ContentReviewType", "SiteTree"."ReviewPeriodDays", "SiteTree"."NextReviewDate", "SiteTree"."LastEditedByName", "SiteTree"."OwnerNames", "SiteTree"."Version", "SiteTree"."SubsiteID", "SiteTree"."PublishJobID", "SiteTree"."UnPublishJobID", "SiteTree"."WorkflowDefinitionID", "SiteTree"."SideBarID", "SiteTree"."ParentID", "BlogPost"."PublishDate", "BlogPost"."AuthorNames", "BlogPost"."Summary", "BlogPost"."FeaturedImageID", "SiteTree"."ID", CASE WHEN "SiteTree"."ClassName" IS NOT NULL THEN "SiteTree"."ClassName" ELSE N'SiteTree' END AS "RecordClassName" FROM "SiteTree" LEFT JOIN "BlogPost" ON "BlogPost"."ID" = "SiteTree"."ID" WHERE ("SiteTree"."ParentID" = ?) AND ("SiteTree"."ClassName" IN (?, ?)) AND ("SiteTree"."ClassName" IN (?, ?)) AND ("SiteTree"."SubsiteID" IN (0)) AND ("SiteTree"."Locale" = 'en_NZ') ORDER BY "_SortColumn0" DESC, "PublishDate" DESC 42000, 156</p></div> </p><p>The syntax generated isn't correct but I was wondering if anyone else has experienced any issues with running this module on MS SQL, I am using the CWP recipe as well. </p><p>Cheers</p> <br /> <p data-swiftype-index="false">Posted to: MSSQL Query Error | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118442" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118442" class="replyLink">Post Reply</a></p> Tue, 19 Jul 2016 14:41:26 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/118442 Most popular Blog Post https://www.silverstripe.org/community/forums/blog-module-forum/show/118437 <p>Hi, <br />Can anyone help us with a function that queries blog posts filtered by the most viewed post? <br />Thanks,</p> <br /> <p data-swiftype-index="false">Posted to: Most popular Blog Post | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/118437" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/118437" class="replyLink">Post Reply</a></p> Sat, 16 Jul 2016 23:43:47 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/118437 Re: How to display recent posts in sidebar on Blog page [SOLVED] https://www.silverstripe.org/community/forums/blog-module-forum/show/117876#post420015 <p>I solved this by adding the following 'RecentNews' function into my code/page.php file</p><p></p><div class="codesnippet"><p>   class Page extends SiteTree<br>   {<br>      private static $db = array();</p><p>      private static $has_one = array();<br>   }</p><p>   class Page_Controller extends ContentController<br>   {<br>      private static $allowed_actions = array(</p><p>         'RecentNews'<br>      );</p><p>      public function init()<br>      {<br>         parent::init();</p><p>      }</p><p>      function HomePage()<br>      {<br>         return HomePage::get()-&gt;limit(1)-&gt;first();<br>      }</p><p>      function ContactPage()<br>      {<br>         return ContactPage::get()-&gt;limit(1)-&gt;first();<br>      }</p><p>      public function RecentNews()<br>      {<br>         return BlogPost::get()<br>            -&gt;sort('PublishDate', 'DESC')<br>            -&gt;limit(5);<br>      }</p><p>   }</p></div><p>Then called it with the following in the BlogSideBar.ss file</p><p></p><div class="codesnippet"><p>&lt;div class='blog-sidebar typography unit size1of4 lastUnit'&gt;<br>   &lt;h3&gt;Recent News&lt;/h3&gt;<br>   <br>&lt;% if $RecentNews %&gt;</p><p>   &lt;% loop $RecentNews %&gt;<br>      <br>      &lt;div class='archived-article'&gt;<br>         &lt;p class='date-cat'&gt;<br>            DATE $PublishDate.format('d.m.Y') /<br>            &lt;span class="cat-name"&gt;<br>               &lt;% if $Categories %&gt;<br>                  &lt;% loop $Categories %&gt;<br>                     $Title<br>                  &lt;% end_loop %&gt;<br>               &lt;% end_if %&gt;<br>            &lt;/span&gt;<br>         &lt;/p&gt;<br>         &lt;h4&gt;$Title&lt;/h4&gt;<br>         &lt;% if $Summary %&gt;<br>            &lt;p&gt;$Summary&lt;/p&gt;<br>         &lt;% else %&gt;<br>            &lt;p&gt;$Excerpt.FirstSentence&lt;/p&gt;<br>         &lt;% end_if %&gt;<br>         &lt;a href='$Link' class='read-more'&gt;<br>            Read More<br>         &lt;/a&gt;<br>      &lt;/div&gt;</p><p>   &lt;% end_loop %&gt;</p><p>&lt;% else %&gt;<br>   <br>   &lt;p&gt;No recent articles.&lt;/p&gt;<br>   <br>&lt;% end_if %&gt;</p><p>&lt;/div&gt;</p></div><p>With that you will be able to put recent blog posts on any page on your site.</p><p>Hope this helps someone out. </p><p>Cheers<br>TobyC</p> <br> <p data-swiftype-index="false">Posted to: How to display recent posts in sidebar on Blog page [SOLVED] | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117876#post420015" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117876" class="replyLink">Post Reply</a></p> Thu, 30 Jun 2016 22:29:02 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117876#post420015 Removing tabs from blog entry https://www.silverstripe.org/community/forums/blog-module-forum/show/117991 <p>Hi team.</p><p>I know what you might be thinking, this has been asked a few times here in this forum.<br>Problem for me is that none of the answers has worked for me, or maybe I just have not found the right answer.</p><p>What I have done.<br>Ok so, I have extended the Page class to have 4 has_many options;<br>This has been working fine for me so far. The tabs appear when editing all page types that I need.<br>I remove the tabs successfully on other page types that i need to remove the tabs I don't want on other page types using the below code / similar code<br></p><div class="codesnippet"><p>public function getCMSFields()<br> {<br> $fields = parent::getCMSFields();</p><p> $fields-&gt;removeFieldFromTab('Root.Main', 'Content');<br> $fields-&gt;removeByName('Promos');<br> $fields-&gt;removeByName('Content Block Categories');<br> $fields-&gt;removeByName('Content Blocks');</p><p> return $fields;<br> }</p></div><p>Alright, so that is fine.</p><p>I have created an extension to add a few new fields to the blog post, which has worked also, but, here is the annoying part, I cant remove any of these new tabs like above.</p><p></p><div class="codesnippet"><p>public function updateCMSFields(FieldList $fields) {<br> $fields-&gt;removeFieldFromTab('Root','Promos');<br> $fields-&gt;removeByName('Root.Promos');<br> $fields-&gt;remove('Root.Promos');<br> $fields-&gt;remove('Promos');<br> $fields-&gt;addFieldsToTab('blog-admin-sidebar', [<br> TextField::create('YoutubeShareLink', 'Youtube Share Link'),<br> DropdownField::create('ShowOnHomePage', 'Show post on home page?')<br> -&gt;setSource(['No','Yes'])<br> ]);<br> }</p></div><p>You can see by the code above that i have tried a variety of different options to remove the Promos tab, none work, doing them one by one, or all at the same time has no effect at all.<br>This lead me to think, is the extension firing before the actual blog addon is, maybe it is, maybe it isnt, is this the case? and if so, how can i get it to load later, or is there something super simple that I am missing here?</p><p>Is there a better way to remove these tabs?</p><p>thanks</p> <br> <p data-swiftype-index="false">Posted to: Removing tabs from blog entry | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117991" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117991" class="replyLink">Post Reply</a></p> Wed, 22 Jun 2016 10:10:29 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117991 How to display recent posts in sidebar on Blog page [SOLVED] https://www.silverstripe.org/community/forums/blog-module-forum/show/117876 <p>Hi,</p><p>I am trying to display a list of recent posts on the Blog page. I have found some code examples that work on other pages but return zero results on the blog page itself.</p><p>I tried installing the widgets extension but that broke my admin panel.</p><p>What is the correct place for the RecentPosts function.</p><p>Thanks<br>Toby</p> <br> <p data-swiftype-index="false">Posted to: How to display recent posts in sidebar on Blog page [SOLVED] | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117876" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117876" class="replyLink">Post Reply</a></p> Sat, 18 Jun 2016 18:44:23 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117876 Add 2nd upload field to blog module https://www.silverstripe.org/community/forums/blog-module-forum/show/117131 <p>Good day all </p><p>I am trying to add a second upload field to my blog module but am having trouble doing so... </p><p>The main issue i am currently having is that the FeaturedThumbnail does not show in my cms </p><p>what i have tried was: </p><p>#1 <br />private static $has_one = array( <br /> 'FeaturedImage' =&gt; 'Image', <br />&nbsp;&nbsp;&nbsp;'FeaturedThumbnail' =&gt; 'Image', <br />); </p><p> public function getCMSFields(){ <br /> Requirements::css(BLOGGER_DIR . '/css/cms.css'); <br /> Requirements::javascript(BLOGGER_DIR . '/js/cms.js'); <br /> $self =&amp; $this; <br /> $this-&gt;beforeUpdateCMSFields(function ($fields) use ($self) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$uploadField = UploadField::create('FeaturedThumbnail', _t('BlogPost.FeaturedThumbnail', 'Featured Thumbnail')); <br /> $uploadField = UploadField::create('FeaturedImage', _t('BlogPost.FeaturedImage', 'Featured Image')); </p><p> $fields-&gt;insertAfter($summaryHolder, 'FeaturedImage'); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$fields-&gt;insertAfter($summaryHolder, 'FeaturedThumbnail'); </p><p> return $fields; <br />} </p><p>#2 <br />// Create a new file in extensions <br />&lt;?php <br />class BlogEntryDecorator extends DataExtension { <br />static $has_one = array( <br />'FeaturedThumbnail' =&gt; 'Image' <br />); <br />public function updateCMSFields(FieldList $fields) { <br />parent::updateCMSFields($fields); <br />$fields-&gt;addFieldToTab("Root.Main", $FeaturedThumbnail = new UploadField('FeaturedThumbnail'), 'Content'); <br />} <br />} <br />// Create add extension in _config <br />DataObject::add_extension('BlogEntry', 'BlogEntryDecorator');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><p>If anyone can assist in this problem it would be greatly appreciated </p><p>Thanks <br />Skullie</p> <br /> <p data-swiftype-index="false">Posted to: Add 2nd upload field to blog module | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117131" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117131" class="replyLink">Post Reply</a></p> Tue, 14 Jun 2016 22:43:55 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117131 Re: Displaying blog posts, filtered by specific category & Tag https://www.silverstripe.org/community/forums/blog-module-forum/show/117114#post418725 <p>you can fix this problem with this sample code: <br /><div class="codesnippet"><p>&lt;% loop $Categories %&gt; <br /> &lt;a href="$Link"&gt;$Title&lt;/a&gt; //(will be return the category Name </p><p> &lt;% loop blogPosts %&gt; <br /> &lt;a href="$Link"&gt;$Title&lt;/a&gt; //(will be return the all post of this category) <br /> &lt;% end_loop %&gt; </p><p>&lt;% end_loop %&gt;</p></div> </p><p>and if you want to show this part in other pages you can use this code at the firts of your line: <br /> <div class="codesnippet"><p>&lt;% with GetPageByType(Blog) %&gt; </p><p>&lt;% end_with %&gt;</p></div></p> <br /> <p data-swiftype-index="false">Posted to: Displaying blog posts, filtered by specific category &amp; Tag | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117114#post418725" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117114" class="replyLink">Post Reply</a></p> Sat, 11 Jun 2016 21:20:58 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117114#post418725 Displaying blog posts, filtered by specific category & Tag https://www.silverstripe.org/community/forums/blog-module-forum/show/117114 <p>Hi, </p><p>I try to call recent Blog posts filtered by specific category, Through these code in my HomePage: </p><p><div class="codesnippet"><p>public function CallCategory($limit = 3) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return BlogPost::get()-&gt;filter(array( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Categories' =&gt; 'Cultural' <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))-&gt;limit($limit)-&gt;sort('LastEdited'); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p></div> </p><p>but it doesn't work. <br />is there any way to call posts filtered by category? </p><p>Thanks,</p> <br /> <p data-swiftype-index="false">Posted to: Displaying blog posts, filtered by specific category &amp; Tag | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/117114" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/117114" class="replyLink">Post Reply</a></p> Wed, 08 Jun 2016 02:04:12 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/117114 Re: remove BlogHolder as a viewable page https://www.silverstripe.org/community/forums/blog-module-forum/show/111665#post413332 <p>You can achieve this using Extensions. The Blog object itself does not need to be extended, but the controller for it does (the part that handles where URLs go). </p><p>So in your mysite/_config/config.yml, write something like: <br /><div class="codesnippet"><p>Blog_Controller: <br /> extensions: <br /> - BlogControllerExtension</p></div> <br />This is assuming you use the latest version of the Blog module, 2.0, which has the classes Blog and BlogPost (and matching _Controllers). </p><p>Then in your code you'd have a file BlogControllerExtension.php with something like this: <br /><div class="codesnippet"><p>class BlogControllerExtension_Controller extends Blog_Controller { <br />&nbsp;&nbsp;&nbsp;function init() { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::init(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$blog = $this-&gt;getOwner(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// If there is only one blog post, redirect to it <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($blog-&gt;getBlogPosts()-&gt;count()==1) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return $this-&gt;redirect($blog-&gt;getBlogPosts()-&gt;First()-&gt;AbsoluteLink()); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// If there are no blog posts, redirect to homepage <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if(!$blog-&gt;getBlogPosts()-&gt;count()) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return $this-&gt;redirect('/'); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br />&nbsp;&nbsp;&nbsp;} <br />}</p></div> <br />Well, something like that should work :)</p> <br /> <p data-swiftype-index="false">Posted to: remove BlogHolder as a viewable page | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111665#post413332" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111665" class="replyLink">Post Reply</a></p> Thu, 21 Apr 2016 15:31:45 +1200 https://www.silverstripe.org/community/forums/blog-module-forum/show/111665#post413332 Problem with Blog Module & Silverstripe 3.3 (ASSETS not available) https://www.silverstripe.org/community/forums/blog-module-forum/show/111706 <p>Hello, </p><p>if i post a new site with the Blog-Module and it contents a Picture from assets, i get this error: </p><p>Action 'assets' isn't available on this handler. </p><p>What can i do? </p><p>INFOS: <br />Silverstripe and the Blog-Module both installed with composer.</p> <br /> <p data-swiftype-index="false">Posted to: Problem with Blog Module &amp; Silverstripe 3.3 (ASSETS not available) | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111706" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111706" class="replyLink">Post Reply</a></p> Sun, 06 Mar 2016 02:43:04 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111706 Compatibility between Blog module and Event Calendar https://www.silverstripe.org/community/forums/blog-module-forum/show/111701 <p>I'm attempting to use both the Blog module (latest stable version) and Unclecheese's Event Calendar module (also latest) together on the same site. They seem like they would be very complimentary; I'd like to be able to include Event Pages in my Blog feed, for example, so our Development office doesn't have to maintain the same text in two places. </p><p>Problem is, both modules implement index() in their controller classes; the blog module does this without parameters, while Event Calendar defines it as index(SS_HTTPRequest $r). Either way I define my Page_Controller::index(), one of the modules is going to bark about incompatible declarations. I can't use both modules without modifying them locally (which I don't want to do in the long term). </p><p>What's the best way to declare Page_Controller::index()? Should it include the SS_HTTPRequest or not? The documentation seems to go one way, while much of the example code available for starting 'mysite' goes the other. </p><p>If there is a best practice, what does that mean for modules that don't currently conform to it?</p> <br /> <p data-swiftype-index="false">Posted to: Compatibility between Blog module and Event Calendar | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111701" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111701" class="replyLink">Post Reply</a></p> Thu, 03 Mar 2016 05:32:30 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111701 remove BlogHolder as a viewable page https://www.silverstripe.org/community/forums/blog-module-forum/show/111665 <p>Hi All, </p><p>I couldn't find any help on google/forums similar to my situation, so here goes. </p><p>My current site structure looks something like this: <br /><ul><li>BlogTree </p><p> <ul><li>BlogHolder </p><p> <ul><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li></ul> </p><p> </li><li>BlogHolder </p><p> <ul><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li></ul> </p><p> </li><li>BlogHolder </p><p> <ul><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li><li>BlogEntry <br /> </li></ul> <br /> </li></ul> </p><p></li></ul> </p><p>I'm hoping to achieve two things: <br /><ul><li>If you access BlogEntry, the breadcrumb to BlogHolder will not be a link. You can't access the page. <br /></li><li>If you manually type in the link to a BlogHolder page, it will either redirect to the first article in the category, or 404. <br /></li></ul> </p><p>I'm new to silverstripe, so if anybody knows of better solutions, I'd love to hear them.</p> <br /> <p data-swiftype-index="false">Posted to: remove BlogHolder as a viewable page | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111665" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111665" class="replyLink">Post Reply</a></p> Tue, 23 Feb 2016 13:57:43 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111665 Using Blog Module as/on Homepage https://www.silverstripe.org/community/forums/blog-module-forum/show/111657 <p>Is anybody using the blog module on the Homepage? I am talking about the page using the URL segment "home". </p><p>I general the blog module works fine on the Homepage. It is just the fact that some Widgets (e.g. TagCloud, Categories) <br />seem to get into trouble because they expect the generated link to be something like <strong>home/blogpost</strong> to resolve. <br />If I use another page lets say a second page called blog for the module the URLsegment look like <strong>blog/blogpost</strong> and everything works like a charm. </p><p>Is there a general issue using the blog module as Homepage?</p> <br /> <p data-swiftype-index="false">Posted to: Using Blog Module as/on Homepage | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111657" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111657" class="replyLink">Post Reply</a></p> Sat, 20 Feb 2016 21:34:59 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111657 Re: New Blog Posts - cannot longer Publish or Delete https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412782 <p>Anyone else with this issue may want to go through and just make sure they are up to date with the blog module and TagField module. </p><p>In this case TagField was preventing a validation from passing. </p><p>There is also an issue currently with archiving blogs: <br /><a href="https://github.com/silverstripe/silverstripe-framework/issues/4835">https://github.com/silverstripe/silverstripe-framework/issues/4835</a> </p><p>-helenclarko</p> <br /> <p data-swiftype-index="false">Posted to: New Blog Posts - cannot longer Publish or Delete | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412782" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111612" class="replyLink">Post Reply</a></p> Fri, 05 Feb 2016 16:08:24 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412782 Re: New Blog Posts - cannot longer Publish or Delete https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412780 <p>Heya mate - </p><p>Yep, its been a while and a few things changed at my site. </p><p>It seems blog is behaving totally erratically - to the point where I don't even know how to describe the issue(s). </p><p>Can't post blogs, nor can I delete them. </p><p>I may go to the IRC channel as you suggest; I am completely bewildered.... </p><p>You mind take a look at the backend to get an impression of what's going on? </p><p>Happy 2016 btw! </p><p>Raymond</p> <br /> <p data-swiftype-index="false">Posted to: New Blog Posts - cannot longer Publish or Delete | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412780" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111612" class="replyLink">Post Reply</a></p> Fri, 05 Feb 2016 14:06:19 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412780 Re: New Blog Posts - cannot longer Publish or Delete https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412778 <p>Hi Mondi, </p><p>Its been awhile since you were last active in the forum, I hope everything is going well (other than this issue). </p><p>You should join the IRC channel, they are usually very quick in replying to questions and they are a friendly bunch. <br /><a href="https://irc.silverstripe.org/">https://irc.silverstripe.org/</a> </p><p>Do you have any errors popping up within the CMS whenever you go to save or load a blog post page? <br />You could try adding "?isDev=1" and see if that gives you more information. <br />Alternatively you could load up firebug or chrome's inspect element and take a look at the network tab. <br />If there are any errors they will usually show up as an error in the network tab. </p><p>-helenclarko</p> <br /> <p data-swiftype-index="false">Posted to: New Blog Posts - cannot longer Publish or Delete | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412778" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111612" class="replyLink">Post Reply</a></p> Fri, 05 Feb 2016 13:59:10 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111612#post412778 New Blog Posts - cannot longer Publish or Delete https://www.silverstripe.org/community/forums/blog-module-forum/show/111612 <p>Hi all -</p><p>Not sure what's gone wrong on my site <a href="http://www.e-lumini.com/">http://www.e-lumini.com</a> but it appears that I am no longer able to either publish or delete blog posts.</p><p>When I add a new Blog Post the New Post page opens up ok but without the Publish button;<br>When trying to Save a new post, the save button shows activity but the preview panel doesn't reflect any changes [doesn't change]<br>When trying to delete this page, the 'More Options' function shows 'Archive' as the only option. </p><p>Latest SS version running.</p><p>Could anyone give me some advise on how to resolve this issue please?!</p><p>Many thanks in advance -</p><p>Raymond<br>When attempting to delete the</p> <br> <p data-swiftype-index="false">Posted to: New Blog Posts - cannot longer Publish or Delete | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111612" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111612" class="replyLink">Post Reply</a></p> Fri, 05 Feb 2016 13:05:42 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111612 Re: Review page and blog https://www.silverstripe.org/community/forums/blog-module-forum/show/111556#post412771 <p>Another option would be to use the comments module. </p><p><a href="https://github.com/silverstripe/silverstripe-comments">https://github.com/silverstripe/silverstripe-comments</a> </p><p>This would allow you to create standard pages for the companies and people could then add comments. </p><p>You may also want to check out <a href="http://addons.silverstripe.org/">http://addons.silverstripe.org/</a> as someone may have already create a module which does want you want already.</p> <br /> <p data-swiftype-index="false">Posted to: Review page and blog | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111556#post412771" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111556" class="replyLink">Post Reply</a></p> Thu, 04 Feb 2016 16:44:18 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111556#post412771 Review page and blog https://www.silverstripe.org/community/forums/blog-module-forum/show/111556 <p>I want to make a page with reviews about a company. <br />Can this be done with the blog module but also have a blog on another page? <br />Or does someone have a better solution for a review page?</p> <br /> <p data-swiftype-index="false">Posted to: Review page and blog | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/111556" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/111556" class="replyLink">Post Reply</a></p> Thu, 14 Jan 2016 05:23:19 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/111556 Re: Display list of blog posts, filtered by specific category https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post412504 <p>Hey BigD1214, helenclarko, </p><p>Thank you both for your replies! I always worry that the Silverstripe forum is such a quiet place for such an awesome app... </p><p>I actually did find a very simple solution to this problem - apologies, I should have posted my solution (more of a workaround for my particular situation) and closed this off. </p><p>I set up a dropdown selector in the CMS that allows me to select any page from SiteTree, including blog posts: </p><p><div class="codesnippet"><p>&lt;?php </p><p>class ArticlePage extends Page { <br />... </p><p>private static $has_one = array ( <br /> 'RelatedBlogPost' =&gt; 'SiteTree' <br /> ); </p><p>... </p><p> public function getCMSFields() { <br /> $fields = parent::getCMSFields(); </p><p>... </p><p> $fields-&gt;addFieldToTab( <br /> 'Root.RelatedBlogPosts', <br /> $treedropdownfield = new TreeDropdownField( <br /> "RelatedBlogPostID", <br /> "Choose Blog Post", <br /> "SiteTree" <br /> ) <br /> ); </p><p> return $fields; <br /> }</p></div> </p><p>I can output data from the selected blog post into my page </p><p>It's slightly more "manual" than writing a function and looping over results, but actually my client preferred being able to "hand-pick" the blog posts they wanted on each page, regardless of the tags or categories associated with that post. </p><p>@BigD1214 this may not an appropriate workaround for you, but I hope it's helpful nonetheless!</p> <br /> <p data-swiftype-index="false">Posted to: Display list of blog posts, filtered by specific category | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post412504" class="showLink">Show Thread</a> | <a href="https://www.silverstripe.org/community/forums/blog-module-forum/reply/105585" class="replyLink">Post Reply</a></p> Wed, 16 Dec 2015 09:45:24 +1300 https://www.silverstripe.org/community/forums/blog-module-forum/show/105585#post412504