Is it possible to return all the query string parameters? Similar to javascript window.location.search. Eg: current page url is https://google.com?utm_source=search&utm_media=online¶m3=xxx and the expected return string is ?utm_source=search&utm_media=online¶m3=xxx
Based on HTL documentation HTL Block Statements itemList: Object holding the following properties:index: zero-based counter ( 0..length-1).count: one-based counter ( 1..length).first: true if the current item is the first item.middle: true if the current item is neither the first nor the last item.l...
The ACS common list contains JSON key and value (lists of title/value pairs)Title: List One , Value: list-oneTitle: List Two , Value: list-twoTitle: List Three , Value: list-three...etcFrom GenericList interface acs-aem-commons/GenericList.java at master · Adobe-Consulting-Services/acs-aem-commons ·...
I am also having similar issue trying to return the ACS common list in the page with HTL.In my JS USE API following the example code at Use js to read the generic list – All about AEM.. use(function() { "use strict"; var resolver = request.getResourceResolver(); var pageManager = resolver.adaptTo(...
Thanks Arun. Do I understand correctly that there is no way using existing HTL logic to achieve data-sly-list/data-sly-repeat in a data attribute element? Only way to achieve this is via JS Use API or Java Sling modal?
For 6.4.2 with HTL code:<div data-sly-repeat.tag="${item.tags}"> <a>${tag.name}</a></div>This will output<div><a>tag-1</a><a>tag-2</a></div>I am trying to achieve the following1) How can I add a comma between the list?<a>tag-1</a>,<a>tag-2</a>2) How to have the repeat in a data attribute?I am tryin...
When a component is added to a page via the Layout Container, you can resize the component and the width will snap to the grid.Similar if the component contains a data-sly-resource referencing to another component.My question is, if is possible to have the same resizing snap to grid for a property a...