Colorbox Inline
Part of the Colorbox ecosystem · 6 projects
This module allows you to open existing content on your page within a Colorbox modal. You can specify which element to display in the modal using a data attribute.
colorbox_inline allows you to open content already on the page within a colorbox. If you would like to load content via AJAX, you can use colorbox_load.
To create an element which opens the colorbox on click:
- Enable the module. No other options or configuration exist.
- Add the attribute data-colorbox-inline to an element and make its value a selector for the element you wish to open. Eg,
<a data-colorbox-inline=".user-login">User Login</a>will open a popup with the first element with the classuser-loginas the content. - Optional add data-width and data-height to the anchor to control the size of the modal window.
This module requires colorbox.
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Colorbox ecosystem
Most installed first