$fields->insertBefore('Root.Main', Tab::create('PopularResources')); -> ends up with ‘Popular resources’ text sitting at the bottom of the page
I wonder if you have to do
i’m just spitballing a little off the top of my head - I haven’t run into this particular issue before
That does work! Amazing. Thanks Joe.
$fields->insertAfter('ChildPages', Tab::create('PopularResources')); and that got me what I was looking for.
Is there a way to change the admin url?
@CptPillow the admin url section on here should work: https://docs.silverstripe.org/en/4/developer_guides/customising_the_admin_interface/cms_architecture/
@jkersu I get the following error when doing that: [Emergency] Uncaught InvalidArgumentException: Missing spec class
Looks like theres a issue where the old url stops working but the new one works: https://github.com/silverstripe/silverstripe-admin/issues/689
Tested on Silverstripe 4.1.1 and 4.2.1
When changing the admin route by adding the following YML (as per the docs):
--- Name: myadmin After: - '#adminroutes' --- SilverStripe\Control\Director: rules: 'admin': '' 'cms': 'SilverStripe\Admin\AdminRootController'
The new URL becomes active and works correctly. The old URL (eg. http://example.com/admin|example.com/admin) now throws a 500 error (below). I would expect it to return a 404.
Uncaught InvalidArgumentException: Missing spec class GET /admin Line 403 in /app/vendor/silverstripe/framework/src/Core/Injector/Injector.php
The full stack trace is attached.
My new url throws page not found
Try removing this line maybe? '
taking that line out makes /admin work but it shouldnt be that
Ok try this the following. I tried it on my machine and it works 🙂
- Name: myadmin
- - '#adminroutes'
- 'admin': ''
- 'cms': 'SilverStripe\Admin\AdminRootController'
- url_base: 'cms'
Hello 🙂 I have some DataObjects setup, and when viewing via the modeladmin list, any summary fields that are of type HTMLText display the raw HTML in the summary list I have tried adding a summary field to the object. e.g. DescriptionSummary, with a custom getDescriptionSummary() function that makes a ->plain() call on the field to remove the HTML from display. This works. except it seems to cause an error in the Search function . a SQL error 'Field not Found: DescriptionSummary'. Could anyone provide any advice on how to fix that error, or have another way to not display the HTML in the summary list?