...
Create the module structure we will need:
Code Block | ||
---|---|---|
| ||
cd my-light-modules mkdir -p block-examples/blocks mkdir -p block-examples/templates/blocks |
...
Add the template definition:
Code Block | ||||
---|---|---|---|---|
| ||||
templateScript: /block-examples/templates/blocks/quote.ftl renderType: freemarker |
Add the template script:
Code Block | ||||
---|---|---|---|---|
| ||||
[#if content.quotation?has_content]
<blockquote>
<p>${cmsfn.decode(content).quotation}</p>
[#if content.citedPerson?has_content]<cite>${content.citedPerson}</cite>[/#if]
</blockquote>
[/#if] |
YZ