-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove title and description fields from content fragment, only outpu…
…t requested field.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...rc/main/content/jcr_root/apps/aemdesign/components/content/contentfragment/templates.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template data-sly-template.contentFragment="${@ fragment='The content fragment', fragmentPath='', wcmmode='WCM mode'}"> | ||
<article id="${fragment.id}" | ||
class="cmp-contentfragment cmp-contentfragment--${fragment.name}" | ||
data-cmp-contentfragment-model="${fragment.type}" | ||
data-sly-attribute.data-cmp-contentfragment-path="${fragmentPath}" | ||
data-json="${!wcmmode.disabled && fragment.editorJSON}" | ||
data-cmp-data-layer="${fragment.data.json}"> | ||
<sly data-sly-test.isParagraphMode="${fragment.elements.size == 1 && fragment.elements[0].isMultiLine && properties.displayMode == 'singleText'}"> | ||
<sly data-sly-call="${paragraphs @ fragment=fragment}"></sly> | ||
</sly> | ||
<sly data-sly-test="${!isParagraphMode}"> | ||
<sly data-sly-call="${elements @ fragment=fragment, wcmmode=wcmmode}"></sly> | ||
</sly> | ||
</article> | ||
</template> | ||
|
||
<!-- This template should not be used/called by the content fragment list component --> | ||
<template data-sly-template.paragraphs="${@ fragment='The content fragment'}"> | ||
<div class="cmp-contentfragment__elements"> | ||
<div data-sly-resource="${'par0' @ resourceType=fragment.gridResourceType}"></div> | ||
<div data-sly-list="${fragment.paragraphs}"> | ||
${item @ context="html"} | ||
<div data-sly-resource="${'par{0}' @ format=itemList.count, resourceType=fragment.gridResourceType}"></div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<template data-sly-template.elements="${@ fragment='The content fragment', wcmmode='WCM mode'}"> | ||
<dl class="cmp-contentfragment__elements${!wcmmode.disabled ? ' cq-dd-contentfragment' : ''}" | ||
data-sly-list.element="${fragment.elements}" | ||
data-sly-use.elementTemplate="core/wcm/components/contentfragment/v1/contentfragment/element.html"> | ||
<sly data-sly-call="${elementTemplate.element @ element=element}"></sly> | ||
</dl> | ||
</template> |