Skip to content
Add Instance Shortcodes to a SilverStripe 4 Project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix isc callback being run multiple times. Run callback only when ins… Jun 12, 2019
.editorconfig Full init commit v1.0.0. May 26, 2019 Updated CHANGELOG and added yaml config for addon. May 26, 2019
LICENSE Update issues section in README to define links to issues and pull re… May 26, 2019

SilverStripe Instance Shortcodes


This extension facilitates accessing properties on a class via a shortcode defined in the CMS, except the shortcode is rendered in instance context giving it access to the model data of the page. This allows defining functions and forms once then re-using them across multiple pages while defining page specific properties for that function or form. Page defined properties can be dynamically displayed in your page and will display when you add your instance shortcode in the CMS.

Example use case

Create a form for Page, then a $db property called form_title. The form is displays on multiple pages via a shortcode definition in the $Content section, but needs to use $form_title to display as a uniquee form title on the page the form displays. Displaying the form via a standard shortcode will not allow you to access form_title uniquely, but display this via an instance shortcode will.


$ composer require taocean/silverstripe-instance-shortcodes


  • silverStripe ^4


  • Thomas Ocean

Issues and improvement

If you find an issue, please log and issue If you know of a way to improve this extension, please create a pull request

You can’t perform that action at this time.