mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
Fix example code
Add namespace to sample code for updating the CMS url. Remove code highlighting from links to API
This commit is contained in:
parent
22dae0f74c
commit
b4201fcf74
@ -67,7 +67,7 @@ Then browse to `http://localhost:6006/`
|
|||||||
|
|
||||||
## The Admin URL
|
## The Admin URL
|
||||||
|
|
||||||
The CMS interface can be accessed by default through the `admin/` URL. You can change this by setting your own [Director routing rule](director#routing-rules) to the `[AdminRootController](api:SilverStripe\Admin\AdminRootController)` and clear the old rule like in the example below.
|
The CMS interface can be accessed by default through the `admin/` URL. You can change this by setting your own Director routing rule to the [AdminRootController](api:SilverStripe\Admin\AdminRootController) and clear the old rule like in the example below.
|
||||||
|
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -80,7 +80,7 @@ After:
|
|||||||
SilverStripe\Control\Director:
|
SilverStripe\Control\Director:
|
||||||
rules:
|
rules:
|
||||||
'admin': ''
|
'admin': ''
|
||||||
'newAdmin': 'AdminRootController'
|
'newAdmin': 'SilverStripe\Admin\AdminRootController'
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ ss.config.adminUrl
|
|||||||
|
|
||||||
### Multiple Admin URL and overrides
|
### Multiple Admin URL and overrides
|
||||||
|
|
||||||
You can also create your own classes that extend the `[AdminRootController](api:SilverStripe\Admin\AdminRootController)` to create multiple or custom admin areas, with a `Director.rules` for each one.
|
You can also create your own classes that extend the [AdminRootController](api:SilverStripe\Admin\AdminRootController) to create multiple or custom admin areas, with a `Director.rules` for each one.
|
||||||
|
|
||||||
## Templates and Controllers
|
## Templates and Controllers
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user