SilverStripe – Creating a new page type
Creating a new page type Earlier we stated that every page in a SilverStripe site has a page type, and that SilverStripe will look for a template corresponding to the page type. Therefore, the first step to get the homepage using a different template is to create a new page type. Each page type is […]
SilverStripe – Flush or Edit
Flushing the cache Whenever we edit a template file, we need to append ?flush=1 onto the end of the URL, e.g. http://localhost:3000/home/?flush=1. SilverStripe stores template files in a cache for quicker load times. Whenever there are changes to the template, we must flush the cache in order for the changes to take effect. </note>
SilverStripe – Creating Themes
You should ensure your templates are well structured, modular and commented so it’s easy for other people to customise them. Templates should not contain text inside images and all images provided must be open source and not break any copyright law. This includes any icons your template uses in the frontend or the backend CMS […]
SilverStripe – Installing 2.1 Themes
Simply unpack the contents of the zip file into your /themes directory in your silverstripe project Change to theme by putting the following line in your ./mysite/_config.php: SSViewer::set_theme(“themename”); Visit your homepage, ensuring you flush the cache (append ?flush=1 to the url).
Install & Setup LAN & Worldwide Access Guide for WAMP
STEP 1: Enable Associate Port in all Firewalls In order to communicate between your computer and other computers, either within your LAN or worldwide, you need to enable HTTP port in all firewalls. Different people use different firewalls and each firewall has its own way to enable port, so here I show the most basic […]
SilverStripe/Tip – Image location conventions
There are two places where you should keep images within SilverStripe: tutorial/images/ – Only designer can access and manage images. assets/ – Content author can upload and manage using SilverStripe. Each of these folders can naturally have subfolders to better organise the items. This practice also applies to other assets such as multimedia files and […]