Closed cdowdy closed 7 years ago
with allow twig set to true in your contentType field the twig tag no longer renders the image but the escaped twig output.
contentType Setup:
pages: name: Pages singular_name: Page fields: title: type: text class: large group: content slug: type: slug uses: title image: type: image teaser: type: html height: 150px body: type: html height: 300px allowtwig: true # here alllow twig is set to true! template: type: templateselect filter: '*.twig' taxonomy: [ groups ] recordsperpage: 100
Using it in content:
Result:
new result same setup as above. same tag used in our body content editor
with allow twig set to true in your contentType field the twig tag no longer renders the image but the escaped twig output.
contentType Setup:
Using it in content:
Result: