Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Generating popups

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

Page: 1
Go to End
Author Topic: 1376 Views
  • Mo
    Avatar
    Community Member
    508 Posts

    Generating popups Link to this post

    Hi All,

    I am trying to get my head around how I would generate a popup in the CMS. Basically, my dashboard module lists most recently modified files, along with an "edit this" link.

    Currently, this link opens up the edit file form in a new window, but other than that, it works fine. I would like to open the form however in a popup, as if it was in "Files and Images".

    How would I go about doing this? I take it I need to load in some of the prototype libraries, but I am not sure which ones, or what to do them (I use jQuery, not Prototype)

    Cheers,

    Mo

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: Generating popups Link to this post

    Try something snappy like the thicklightsomethingbox popup used with getCMSFields_forpopup:

    http://doc.silverstripe.com/doku.php?id=modules:dataobjectmanager#usage

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Generating popups Link to this post

    How Had you resolved? I've the same problem.
    Thank you

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Generating popups Link to this post

    ?

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: Generating popups Link to this post

    I used a third party one in the end, this one to be precise: http://jquery.com/demo/grey/

    As I was loading it into a new extension of left and main, I could simply add the javascript via requirements. If you are trying to do something else, I am not sure the best way to attach the code?

    Mo

    1376 Views
Page: 1
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.