Photo by Aneta Foubíková from Pexels

Technical articles, guides, and tutorials on Silverstripe and other web development topics.

View by:

How to access localhost on a mobile device.

In this guide we will go through the steps required to view our website or apps running on our localhost server on a mobile device.

Read more

Working with "many many" and "belongs many many" relationships in SilverStripe

A common example where this relation can be useful is usually the following scenario.

We have two dataobjects, one is ‘Product’ and the other is ‘ProductCategory’. What we want is to be able to assign each ‘Product’ one or more ‘Categories’, and we want a ‘Category’ to have one or more ‘Products’.

Read more

How to add prismjs to a Silverstripe WYSIWYG editor for syntax highlighting

In this guide we will go through the steps required to use prismjs in your Silverstripe WYSIWYG editor to enable syntax highlighting.

Read more

Creating a simple web scraper using NodeJS, axios and cheerio

In this tutorial we'll create a simple web scraper using NodeJS, axios and cheerio. We'll also use the fs module to save the scraped data into a JSON file.

Read more

Using Guzzle and Silverstripe to get and render API data

In this guide we will go through a basic example of using Guzzle to fetch data from an API and rendering that data onto a Silverstripe template.

Read more

Creating a has_many relationship in Silverstripe

This guide will walk through how to create a basic has_many relationship between a page type and DataObject in Silverstripe.

Read more

Creating a simple RESTful API endpoint in Silverstripe

In this guide we’ll create a simple RESTful API endpoint that returns a list of items modelled on a very basic DataObject.

Read more

Rendering DataObjects as pages using controller actions

This is a quick guide on how to render a DataObject as a page using Controller actions to render each DataObject onto its own template.

Read more

Getting DataObjects and rendering them onto a template in Silverstripe

How to get DataObjects and render them onto a template in Silverstripe using a getter method in a PageController.

Read more

Silverstripe - how to render arrays in templates using ArrayList and ArrayData

How to render arrays onto Silverstripe templates using the ArrayList and ArrayData classes

Read more

How to send emails in Silverstripe 4 with Gmail SMTP

A basic example showing how to use Gmail's SMTP with a simple Silverstripe form to send emails.

Read more