Skip to content

Instantly share code, notes, and snippets.

@odaBio
Created October 23, 2021 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odaBio/e9d97c25539f949e108487e1f301ddaf to your computer and use it in GitHub Desktop.
Save odaBio/e9d97c25539f949e108487e1f301ddaf to your computer and use it in GitHub Desktop.
<sly data-sly-use.options="com.adobe.cq.wcm.core.components.models.form.Options"
data-sly-use.template="core/wcm/components/commons/v1/templates.html"
data-sly-test.isNotEmpty="${options.items.size}">
<div data-sly-repeat.optionItem="${options.items}">
<label>
<span>${optionItem.title}</span>
<span>${optionItem.url}</span>
<span>${optionItem.text}</span>
<span>${optionItem.value}</span>
<span>${optionItem.url}</span>
</label>
<span data-sly-test="${properties.fileReference}"
class="cmp-button-img">
<img src="${properties.fileReference}"
alt="${properties.alt}"/>
</span>
</div>
</sly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment