SilverStripe management tutorial

How to edit SilverStripe configuration file

 

We will review the main configuration file of SilverStripe and how to locate and edit it on your end. Even if you do not have extensive development knowledge, the configuration file of a script is something that you need to be aware of. This is because it keeps valuable information for the configuration of your website. This information can be used for a lot of different tasks and allow you to check details for your website without even accessing it via your web browser.

 

Further reading:

SilverStripe installation and upgrade tutorial

 

 

In SilverStripe, you have one main configuration file that holds the details for the database set on your website and the site locale. If your SilverStripe website is installed directly within the public_html/ directory of your account, the location to the file in question would be public_html/mysite/_config.php. The file is the best place to check your database details and use them for any manual data modifications. It may also come handy when creating or restoring a backup of your website on the server.

global $databaseConfig;
$databaseConfig = array(
"type" => 'MySQLDatabase',
"server" => 'localhost',
"username" => 'example_ss',
"password" => 'p4ssw0rd',
"database" => 'example_s',
"path" => '',
);

Further reading:

SilverStripe installation and upgrade tutorial

 

 

How to edit the basic information in SilverStripe

 

We will provide the steps on how to change the name and the slogan on your SilverStripe website. This will ensure a more professional look in front of your users.

To change them, you first need to log into the administrative area of your website. Locate and click on the Settings option from the menu on the left side.

Edit the following options:

  • Site title - Enter the title of your SilverStripe website.
  • Site Tagline/Slogan - Enter a short slogan for your website.

Click on the Save button below the form and the system will automatically update the front end of your website.

The changes will be displayed to all users and attract more attention to your brand.

 

Further reading:

SilverStripe installation and upgrade tutorial

 

How to edit users in SilverStripe

 

We will review the editing of users on a SilverStripe website so you can get a better understanding of the process. We will follow the steps for editing the administrative user on your website, but the same process can be applied to any user in SilverStripe.

The first step of the process is to access the administrative area of your website. Once you do so, locate and click on the Security option from the menu on the left.

You will see a list of all users on your SilverStripe website. Click on the one that you wish to edit. In our case, this is the Default Admin user.

Simply edit the details that you wish to change for the user. If you would like to change the password, you can click on the Change Password button.

When you are ready with the changes, click on the Save button below the form.

 

Further reading:

SilverStripe installation and upgrade tutorial

 

How to create a new group in SilverStripe

 

In this tutorial, we will provide the steps for creating a new group for users on your SilverStripe website. This will allow you to group a n

Using this method will allow you to easily assign specific roles to each of the users separately. To create a new group, you need to access the administrative area of your website. Click on the Security option from the left-side menu.

Select the Groups button at the top-right corner.

Click on the Add Group button to create one.

Enter the details for the new group on your website:

  • Group name - Enter a name of the new group.
  • Parent Group - Select a parent group. If you leave the field blank, the new group will be created as a parent group on it's own.
  • Description - Enter a description for the new group.

When you enter the required details above, simply click on the Create button below and the script will automatically configure it for you.

 

How to create a role in SilverStripe

 

In this tutorial, we will review the actual process of creating new roles on your SilverStripe website. Instead of allowing actual permissions for each of your users separately, you can complete the job in one go. Simply create a new role and assign it to a number of users on your website and they will inherit it's role options automatically.

To create a new role, you need to access the administrative area of your website. Click on the Security option on the left-side menu.

Select the Roles button at the top-right corner.

Click on the Add Role button to create one

Enter the following details:

  • Title - Set the title of the new role.
  • Permissions - Select the permissions for the new role.

Once you enter the details above, simply click on the Create button below and the system will automatically complete the rest for you.

 

Assign roles to specific groups in SilverStripe

 

We will review the steps for adding a specific rules to a group on a SilverStripe website. This is an easy process that can be completed with a few clicks and you will get a better understand on how it actually works.

The user management of a website is an important task. You may have hundreds or even thousands of users and you may need to apply different set of permissions for them. However, you can group users on your website together and apply the same set of permissions for all of them. This will allow you to easier manage those users and you will not have to apply the changes for each one of them separately. The task will save you a lot of time and make the management of users on your website much easier.

To assign a certain role to a group on your website, you need to log into the administrative area of your website and then navigate to the Security option on the left-side menu.

Click on the Groups button on the top-right corner of the screen.

Select the group that you wish to assign a role to.

Select the Roles option from the top-right corner of the screen and search for the role that you wish to apply.

Click on the Save button below to keep the changes. The system will automatically update the configuration of your website.

 

How to add a new user in SilverStripe

 

We will review the steps on how to add a new user on a SilverStripe website. This may be needed if you wish to manually add specific users, without the default registration process via the front-end of your website. To complete that, you need to access the administrative area of your website. Click on the Security option from the left-side menu on the screen.

Select the Users tab at the top-right corner and then click on the big Add Member button to proceed.

Edit the following options for the new user:

  • First Name - Set the first name of the new user.
  • Surname - Set the surname of the new user.
  • Email - Set the email account of the new user.
  • Password - Enter the password that will be used by the user to log into your website.
  • Confirm Password - Enter the password again for verification.
  • Interface Language - Enter the language that will be used for the new user. This language will be set on your website when the user logs in.
  • Groups - Enter a group for the new user. The system will automatically configure the user with any roles that you have assigned for the selected group.

Click on the Create button below to confirm the changes. The system will automatically create the new user with the details you have entered above.

 

How to create a new page in SilverStripe

 

In this tutorial, we will review the process of creating a new page with content on your SilverStripe website. This is an easy task and it is one of the most important features of the script.

First, you need to access the administrative area of your website. Locate and click on the Pages option from the left-side menu and click on the Add New button to proceed.

Select the type of the new page that you will add to your website. For the purpose of this tutorial, we will create a simple page.

Edit the following options:

  • Page name - Enter a name for your new page.
  • URL Segment - Edit the URL to your new page.
  • Content - Enter content for the new page on your SilverStripe website.

Click on the Save & Publish button to create the new page on your website.

The system will automatically publish it for you and you will be able to see the page on the front-end of your website.

 

How to upload files in SilverStripe

 

In this tutorial, we will provide the steps for uploading of new files to your existing SilverStripe website. To achieve that, you need to access the administrative area of your website first. Click on the Files option on the left-side menu to proceed.

Select the folder, where you wish to upload the new files. This is usually the Uploads folder, but you can always create new folders to group files together.

Click on the Upload button at the top.

Choose the files that you wish to upload from your personal computer or directly drag and drop them into the specified area.

Once you select or drop a file, the system will automatically start uploading it to the server. You will be able to see a progress bar of the upload and a message once this is completed.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SilverStripe installation and upgrade tutorial

How to install SilverStripe via Softaculous   This tutorial will show the steps for a...

Extending SilverStripe functionality

How to install new modules in SilverStripe   The installation of modules for your...

SilverStripe backup and restore tutorial

How to create a full backup of SilverStripe   It is always a good idea to create such a...

Powered by WHMCompleteSolution