0

This sound like a really dumb question, but for the life of me I cannot find something that works.

I want to trigger a modal/dialog box for some basic content. Its just HTML, not the login page or password reset or webform, or an image. I just want to pop some content into the modal box.

Whats the best way to do this? I ideally I would be able to control the dimensions of the window.

1

2 Answers 2

0

You can use lightbox module to achieve that, but note if you want to open a modal content you need to use rel="lightframe" as an attribute for the <a> tag.

Also don't forget the Library of the module.

0

Try the Overlay Paths module

This is a simple module that enables site builders to use the built-in Overlay for non-admin pages.

This means that you can use the overlay for doing popups without adding yet more javascript libraries to your site.

This module provides a simple UI for defining paths to appear in the overlay, but developers can use it to define paths too, see the overlay_paths.api.php file in the module for details.

Your Answer

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

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