2

I have looked at a bunch of modal window modules but they all seem to only apply to media such as images or videos.

Do any of the modal window modules (lightbox, shadowbox etc) for drupal 7 allow drupal content to be displayed within, for example blocks / webforms etc?

3 Answers 3

0

checkout this post, it recommends the shadowbox.

0

I've used the colorbox module for this purpose for a couple of recent D7 projects. It works well and seems to fit your use case.

You might also want to checkout the overlay module in D7 core, but it generally involves more effort to make it work for the non core use cases.

1
  • hmm, not sure because it states "The attempt to support opening various forms in a Colorbox was in hindsight never a good idea." I will look at the modal forms module, really surprised I can not find one which works with blocks / nodes in a modal window :(
    – WestieUK
    Oct 20, 2011 at 14:18
0

If you want to use the Overlay module in core this post explains how to implement it quite well. Another useful reference is the User Modal module which contains examples.

The limitations include the requirement to assign the 'Access the administrative overlay' and 'View the administration theme' permissions to your users and the need to declare your paths in hook_admin_paths() as administration paths.

So while Overlay might seem like a good idea it is in fact aimed at administrating Drupal rather than being a modal framework for general use. Unfortunately the other candidate modules for this functionality aren't there yet with a D7 release so it may be the only alternative to ctools' modals or the various lightbox modules at this point. I guess it depends on what you want to put in there and how much dev work you are interested in doing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.