Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.8 kB
3
Indexable
Never
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html"
   data-sly-call="${clientlib.all @ categories='mca.cardblock'}"/>
<div class="cardblockcomponent mt-4">
   <sly data-sly-use.multiItems="${'com.mca.core.models.MultifieldModel' @nodeName='cards'}">
   <div class="row">
      <sly data-sly-list.head="${multiItems.items}">
         <div class="col-xl-4 col-lg-6 col-md-6 col-sm-12">
         	<sly data-sly-test="${head.externalLinkCheck == 'false'}"> 
            	<a class=" text-decoration-none" href="${head.linkURL}">
            </sly>
            <sly data-sly-test="${head.externalLinkCheck == 'true'}"> 
				<a class=" text-decoration-none" target="_blank" href="${head.linkURL}">
			</sly>
               <div class="cardblock">
                  <img class="blockicon" src="${head.pathicon}"/>
                  <div class="block-card-text">
                     ${head.text}
                  </div>
                  <div class="d-flex align-items-center justify-content-end">
                     <span class="block-read-more">
                        ${head.readText}
                        <sly data-sly-test="${properties.cardBlockUnique == 'cardBlockOne'}">
                           <img src="/content/dam/mca/icons/read-more.svg"/>
                     </span>
                  </div>
               </div>
            </a>
         </div>
         </sly>
   </div>
   </sly>
</div>


<!-- /*
<sly data-sly-test="${properties.externalLinkCheck == "false"}> 
<a class=" text-decoration-none " href="${head.linkURL}">
</sly>
<sly data-sly-test="${properties.externalLinkCheck == "true"}> 
<a class=" text-decoration-none" target="_blank" href="${head.linkURL}">
</sly>
*/ -->
Leave a Comment