Skip to main content

SilverStripe

Requirements

Deeplinking Silverstripe requires a Page containing either a HTML element with <body data-page-id=" "> or a javascript element with a /admin/ url pointing to the same content on the admin section.

If none is found, then a default URL will be created with the path of the current page

Ex 1:

<script>
function doc_keyUp(e) {
if(e.altKey && e.keyCode == 69) {
window.open("https://domain.tld/admin/pages/edit/show/420");
}
}
</script>

Ex 2:

<body data-page-id="420">

Generated URL

If ID is found:

http(s)://domain.tld/admin/pages/edit/show/#{id}

If none is found then:

http(s)://domain.tld/admin/edit/page/show/#{page_path}