...
Code Block |
---|
language | yaml |
---|
title | block-examples/templates/blocks/quote.ftl |
---|
|
[#if content.quotation?has_content]
<blockquote>
<p>${cmsfn.decode(content).quotation}</p>
[#if content.citedPerson?has_content]<cite>${content.citedPerson}</cite>[/#if]
</blockquote>
[/#if] |
(Optional) Add internationalized labels:
Code Block |
---|
language | yaml |
---|
title | block-examples/i18n/example-blocks_en.properties |
---|
|
blocks.quote.label=Quote
quote.quotation.label=Quote
quote.citedPerson.label=Cited person |
Code Block |
---|
language | yaml |
---|
title | block-examples/i18n/example-blocks_de.properties |
---|
|
blocks.quote.label=das Zitat
quote.quotation.label=das Zitat
quote.citedPerson.label=zitierte Person |
YZ