Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Dashboard Module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11
Go to End
Author Topic: 15129 Views
  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Dashboard Module Link to this post

    Also, I have tried overwriting the $menu_priority variable using Object::set_static, but it doesn't seem to work for the Class CMSMain

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Dashboard Module Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Dashboard Module Link to this post

    Gah! It collides with DOM.

    "I can't handle sub-URLs of a DsCMSMain object."

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Dashboard Module Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Dashboard Module Link to this post

    No.. DOM = DataObjectManager. Sorry.. that acronym has taken on a totally different meaning in Silverstripe.

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Dashboard Module Link to this post

    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?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Dashboard Module Link to this post

    Can't you just do LeftAndMain::require_javascript()?

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Dashboard Module Link to this post

    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?

    15129 Views
Page: 1 2 3 4 5 6 7 8 9 10 11
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.