Present additional HTML content in a lightbox
Composite.Web.Html.Lightbox allows you to display HTML content in a lightbox popup when the user clicks its teaser on a page.
How to implement
- Edit a page.
- Insert the
Composite.Web.Html.Lightbox function (
Insert |
Function) or add the following code:
<f:function name="Composite.Web.Html.Lightbox" xmlns:f="http://www.composite.net/ns/function/1.0"> <f:param name="LightboxTeaser" value="<html xmlns="http://www.w3.org/1999/xhtml">
 <head></head>
 <body>
 <p>(teaser )</p>
 </body>
 </html>" /> <f:param name="LightboxContent" value="<html xmlns="http://www.w3.org/1999/xhtml">
 <head></head>
 <body>
 <p>(content)</p>
 </body>
 </html>" /> <f:param name="ContentWidth" value="500" /> <f:param name="ContentHeight" value="400" /> </f:function>
- Specify these required parameters address:
- Lightbox Teaser: Content for the teaser the user clicks to open the HTML lightbox
- Lightbox Content: Content for the HTML lightbox
- Specify the optional parameters if necessary:
- Content Width: The width of the HTML lightbox. Default is 500.
- Content Height: The height of the HTML lightbox. Default is 400.
Requirements
Composite C1 version 2.1.1 or later