Using the Modal Tag
For short and simple text content, you can place the content straight into the modal tag by using the html attribute:
{modal html="This text is entered right inside the modal tag." title="Hello!"}Show some inline text{/modal}
Using a separate Content Tag
To place entire content blocks inside a modal without the need of creating separate articles/urls, you can use the content attribute in combination with modalcontent tags.
You are completely free to place whatever custom content you want to open inside the modal.
All you need to do is choose an alias for the modalcontent tag and place that alias as value for the content attribute in the modal tag. In this example, our alias will be: mycontent.
{modalcontent mycontent}
... your fully styled content...
{/modalcontent}
{modal content="mycontent" title="Fully styled inline content"}A lot more inline content{/modal}
Note: The modalcontent tag can be placed anywhere on the page. You can also have multiple modal links opening the same modalcontent content.
Pellentesque habitant morbi tristiquesenectus et netus et malesuada