Also, I have tried overwriting the $menu_priority variable using Object::set_static, but it doesn't seem to work for the Class CMSMain :(
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
- Previous 10 entries
- 1
- Page 22(current)
- 3
- 4
- 5
- 6
- …
- 11
- Next 10 entries
Right, I have just released version 0.3. It seems to be more stable and should play better with CMSWorkflow.
I have also added some static variables:
$rss_url
$limit_pages
$limit_files
$limit_ucomments
If you add for example:
DashboardAdmin::$rss_url('http://rss/url') to your _config.php file, this will overwrite the default feed address.
The other variables accept Integers, and represent the maximum number of pages/files/unmoderated comments will be shown.
Hope that helps, hope you enjoy :)
Cheers,
Mo
Gah! It collides with DOM.
"I can't handle sub-URLs of a DsCMSMain object."
What version of SS are you running?
I don't understand what you mean by colliding with DOM, do you mean you are getting a JavaScript error?
Mo
No.. DOM = DataObjectManager. Sorry.. that acronym has taken on a totally different meaning in Silverstripe.
Hmm, the only reason DsCMSMain exists is to load the Javascript that overwrites some of the Ajax.
Is there a better way to do that, in which case, I could remove that class?
Can't you just do LeftAndMain::require_javascript()?
The trouble with using that approach is that the Javascript file is loaded to soon, and so is overwritten by the default javascript for CMSMain.
It ideally needs to be the last file loaded, or into the page.
Why is DOM looking for sub-URL's? Surely it should just look at CMSMain for those, as DsCMSMain is just an extension of it?
- Previous 10 entries
- 1
- Page 22(current)
- 3
- 4
- 5
- 6
- …
- 11
- Next 10 entries