{"id":600,"date":"2013-12-31T02:13:32","date_gmt":"2013-12-31T02:13:32","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=600"},"modified":"2014-01-28T05:22:00","modified_gmt":"2014-01-28T05:22:00","slug":"using-silverstripe-part-2","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2013\/using-silverstripe-part-2","title":{"rendered":"Using SilverStripe &#8211; Part 2"},"content":{"rendered":"<h2>How to Find the Administration Panel<\/h2>\n<p><a href=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-597 alignright\" style=\"border: 1px solid black;\" title=\"SilverStripe\" alt=\"SilverStripe\" src=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/12\/SilverStripe-Logo.png\" width=\"150\" height=\"150\" 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\" \/><\/a>First things first.   Eventually, you will want to get to the SilverStripe administration panel.   You might expect to see an admin directory in the root directory, as done on Joomla, Drupal and WordPress, but you will be surprised to see no corresponding directory in SilverStripe.   The SilverStripe administration is virtual, no obvious login or index file for it in particular.   To get to administration, enter<\/p>\n<ul>\n<li><domain name>\/admin<\/li>\n<\/ul>\n<p>Voila, you have the login access to the administration area.    If you are looking for the actual admin files, they are available in the \/framework\/admin directory.<\/p>\n<h2>Where to Load Add-ons<\/h2>\n<p>Curiously, unlike Drupal, Joomla or WordPress, SilverStripe likes to clutter the Document Root directory with all add-ons folders.   Retrieve your add-on from Git and the add-on folder will be stored in the site&#8217;s root directory.<\/p>\n<\/p>\n<p>If you use a ZIP file retrieved from the GIT directory for the add-on:<\/p>\n<ul>\n<li>Unpack the zip file, leaving content in their add-on directory<\/li>\n<li>Rename the add-on directory. If the add-on directory name has &#8220;silverstripe&#8221; prepended, or &#8220;-master&#8221; incorporated in the directory name,  remove the &#8220;silverstripe&#8221; and &#8220;-master,&#8221;  leaving only the application name as the directory name.<\/li>\n<li>Replace &#8220;-&#8221; with &#8220;_&#8221; if a dash has been used in the naming of the directory.<\/li>\n<li>Copy the add-on to the site&#8217;s root directory.<\/li>\n<\/ul>\n<p>If you fail to remove the prepended or appended labels, the loading of the files will fail.<\/p>\n<p>If you fail to replace &#8220;-&#8221; with &#8220;_&#8221;, the content will load, but, will load incorrectly and fail to function.<\/p>\n<h2>How to Rebuild the CMS Control Database<\/h2>\n<p>If you load an add-on or make changes to the database, you must rebuild the SilverStipe site.  To rebuild, enter:<\/p>\n<ul>\n<li><domain name>\/dev\/build\n<li>\n<\/ul>\n<h1>How to Clear Cache<\/h1>\n<p>To speed site display, SilverStripe caches page content. Anytime you make changes to template files and data base, clear the cache.   Clear the cache every time you add a new add-on, anytime you create a new page type (explained later), or make any change affecting database or available php or ss files.  Clear cache by entering:<\/p>\n<ul>\n<li><domain name>\/index.php?flush=1<\/li>\n<\/ul>\n<h1>Where to Load Images<\/h1>\n<p>SilverStripe design suggests that specific content belongs in specific directories.   Templates will be placed in \/themes subdirectory, you images belong in the \/assets.   As you load content via SilverStripe, images will be loaded to \/assets\/upload and subdirectories you request.   You may want to arrange to use \/assets as the area to store all files you ftp onto your site for consistency.  Expect your images stored in subdirectories of:<\/p>\n<ul>\n<li><domain name>\/assets\/upload<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<ul>\n<li><domain name>\/admin  &#8211; access to the administration panel<\/li>\n<li><domain name>\/  &#8211; location to store add-on directories<\/li>\n<li><domain name>\/dev\/build  &#8211; command to rebuild the site database<\/li>\n<li><domain name>\/index.php?flush=1 &#8211; command to flush the cache<\/li>\n<li><domain name>\/assets\/upload &#8211; appropriate directory for storage of images<\/li>\n<\/ul>\n<p>The next article will discuss creation of a template<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Find the Administration Panel First things first. Eventually, you will want to get to the SilverStripe administration panel. You might expect to see an admin directory in the root directory, as done on Joomla, Drupal and WordPress, but you will be surprised to see no corresponding directory in SilverStripe. The SilverStripe administration is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,16,26],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-css","category-javascript","category-silverstripe"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/600","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=600"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}