Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

Customising the CMS /

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

Generating popups


Go to End


5 Posts   2564 Views

Avatar
Mo

Community Member, 541 Posts

6 October 2009 at 4:33am

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

Avatar
dalesaurus

Community Member, 283 Posts

8 October 2009 at 5:07pm

Try something snappy like the thicklightsomethingbox popup used with getCMSFields_forpopup:

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

Avatar
biapar

Forum Moderator, 435 Posts

7 January 2010 at 3:49am

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

Avatar
biapar

Forum Moderator, 435 Posts

9 January 2010 at 5:24am

?

Avatar
Mo

Community Member, 541 Posts

19 January 2010 at 6:33am

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