{"id":619,"date":"2014-01-05T09:31:36","date_gmt":"2014-01-05T09:31:36","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=619"},"modified":"2014-01-05T09:31:36","modified_gmt":"2014-01-05T09:31:36","slug":"having-a-problem-with-silverstripe-flexslider-fix-it","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2014\/having-a-problem-with-silverstripe-flexslider-fix-it","title":{"rendered":"Having a Problem With SilverStripe FlexSlider? Fix It!"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" class=\"size-full wp-image-597 \" alt=\"SilverStripe\" src=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png\" style=\"width: 150px ; height: 150px ; float: right\" srcset=\"https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png 150w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-148x148.png 148w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-31x31.png 31w, https:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo-38x38.png 38w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/p>\n<p><strong>Note<\/strong>: You may have problems with your first installation of SilverStripe FlexSlider, there is a trick.<\/p>\n<p>Have faith, the SilverStripe FlexSlider does work. The installation appears straight forward. Loading of images can be a bit clumsy, but is functional. The use of shortcode is easy, and insertion into the template files is simple. The details on loading and use of SilverStripe&#8217;s implementation of FlexSlider is at <a href=\"http:\/\/www.netefx.de\/Silverstripe-flexslider.php\">http:\/\/www.netefx.de\/Silverstripe-flexslider.php<\/a>.<\/p>\n<p>However, there are two problem with the installation.<\/p>\n<ol>\n<li>\n<p>There is a problem with one step in the instructions<\/p>\n<p>Install flexslider as explained on the page referenced above, but:<\/p>\n<ul>\n<li>When the instructions tell you to add<br \/>\n<b>Object::add_extension(&#8216;Page&#8217;, &#8216;FlexSliderExtension&#8217;) ;<\/b><br \/>\nto mysite\/_config.php, <b>stop<\/b>,<\/li>\n<li>Run <b>dev\/build?flush=1<\/b> first,<\/li>\n<li>Then go to mysite\/_config.php and insert the line, and<\/li>\n<li>Follow that with another <b>dev\/build?flush=1<\/b>.<\/li>\n<\/ul>\n<p>If you install the add_extension() before building the database,<br \/>\n              you will get an installation error.<\/p>\n<\/li>\n<li>\n<p>Line 219 of flexslider\/code\/FlexSlider.php must be commented out<\/p>\n<p>The line <b>&#8220;Requirements::javascript(THIRDPARTY_DIR . &#8216;\/jquery\/jquery.js&#8217;);&#8221;<\/b> at line 219 of flexslider\/code\/FlexSlider.php must be commented out. This line loads jQuery.js, but, the default install of SilverStripe loads jquery.js. If jquery.js is loaded twice, jquery code becomes confused and jquery calls, such as calls to $FlexSlider() become confused and fail.<\/p>\n<\/li>\n<\/ol>\n<p>If you use the above adjustments to the documented install procedures on <a href=\"http:\/\/www.netefx.de\/Silverstripe-flexslider.php\">http:\/\/www.netefx.de\/Silverstripe-flexslider.php<\/a>, you should be running smoothly in no time.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: You may have problems with your first installation of SilverStripe FlexSlider, there is a trick. Have faith, the SilverStripe FlexSlider does work. The installation appears straight forward. Loading of images can be a bit clumsy, but is functional. The use of shortcode is easy, and insertion into the template files is simple. The details [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13,26],"tags":[],"class_list":["post-619","post","type-post","status-publish","format-standard","hentry","category-html5","category-jquery","category-silverstripe"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=619"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/619\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/619\/revisions\/624"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}