Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Is there any way to add a default behaviour so that all node edit forms appear in colorboxes?
Also, whats the procedure for opening up html content?
Thanks for a great module,
Joe
Comments
Comment #1
frjo CreditAttribution: frjo commentedFor information how to use the Colorbox script I recommend you go to the scripts homepage, http://colorpowered.com/colorbox/.
Colorbox does not have a node form function built in yet. It should not be to hard to do with the Colorbox script. If you do it a patch is welcome. You can also submit a feature request and hope someone else does it :-).
Comment #2
joecanti CreditAttribution: joecanti commentedHi frjo,
Thanks for the reply - I'll have a dig around and see what I can do... I'm really just looking for a popup solution for content editing and adding images - it would make sense to combine this with the image display - eg colorbox or lightbox etc, but i may have to have another look at the popup/popups modules and try it from that angle,
Thanks, Joe
Comment #3
gooddesignusa CreditAttribution: gooddesignusa commentedHere is the issue I ran into. I tried doing this manually with jquery UI dialog the other day. I would imagine colorbox would have the same "issues" if you want to even call them that.
First I tried to just load the node edit page in an iframe in the overlay. That worked fine but depending on your theme / admin theme is set up it might look funny. My site has 2 side areas that are always loaded and the content is in the middle. So in the overlay it had the whole site. This made sense b/c thats what a iframe does. If I used an admin theme I'm sure I could get it to work but I just don't have the time for this current site.
Next I tried to load it using ajax and load only the node edit form. This worked as expected and showed only the form edit area. But I soon discovered that b/c it didn't load all the styles and js like the iframe would have some things weren't working / looking correctly.
Basic editing of the body did work though.
It can def be done but will take a little thinking / time. I just wanted to share my days worth of messing around with this idea. It would be a great addition though.
Comment #4
joecanti CreditAttribution: joecanti commentedI've had a look around, but not sure how to implement this using the colorbox scripts homepage. It's beyond my skills so I think I might put in a feature request. Thanks for the input gooddesignusa. Does colorbox use iframes or ajax?
If anyone else has any ideas on this please help! Else I'll put in a feature request. I might even get some funding going and get a little module built - that hooks into colorbox and into the drupal core - so colorbox takes over selectable parts of the core editing system.
So many of the big sites now use lightbox style pop ups for their content additions...
Another quick question - what does a users computer need exactly to run the colorbox? Im guessing 99% of users can, and if not it degrades gracefully?
Many thanks, I will continue to experiment and write back here,
Joe
Comment #5
frjo CreditAttribution: frjo commentedComment #7
gorgo CreditAttribution: gorgo commentedI would love to know how this can be done too....
Comment #8
gorgo CreditAttribution: gorgo commentedI don't really see a fix here so changing it to 'active'. Hope that's alright.
Comment #9
Manuel Garcia CreditAttribution: Manuel Garcia commentedI figured we might as well just keep the discussion here, and change it to a feature request.
Comment #10
Dp-Mtl CreditAttribution: Dp-Mtl commentedI tried some node forms recently, it works perfectly, exept for some collapsed fieldsets.
My way is like as follow:
(1) Implement a hook_menu() im your module, add an items[]
(2)make a callback page
(3) then make links
that's it,have a fun!
Any commnts will be highly appreciated.
Comment #11
fenda CreditAttribution: fenda commentedJust adding onto #10:
You can add this to the top of colorbox_popup_form_page() to catch form errors and redirect users correctly.
Comment #12
frjo CreditAttribution: frjo commentedForm support will most likely be moved from Colorbox module to the new Modal forms module.
http://drupal.org/sandbox/frjo/1095052