
How to add data-attribute conditionally using HTL in AEM?
How to add data-attribute conditionally using HTL in AEM? Asked 5 years, 9 months ago Modified 5 years, 9 months ago Viewed 4k times
Access AEM component data as JSON within HTL (Sightly)
May 31, 2021 · This works perfectly and I am able to see the JSON data when hit the end point from my browser. I want to render this entire json object in my component's HTL. Is there an elegant way of …
What is the difference between data-sly-use, data-sly-resource, data ...
Oct 28, 2015 · As you already said: data-sly-use "is used to add js/java". You declare component-beans with this statement for instance. data-sly-resource you can override a resource-type for a included …
Date type required in AEM HTL / Sightly date formatter
Feb 4, 2019 · Date type required in AEM HTL / Sightly date formatter Asked 7 years, 2 months ago Modified 7 years, 2 months ago Viewed 5k times
AEM - certain page properties don't render in Sightly HTL
Dec 9, 2021 · I am trying to access certain page properties for a certain page using a path defined in a component's dialog. I am using this in my AEM PageCard Class: public Page getPage() { return this.
Embeding component into another component - Stack Overflow
Jun 1, 2023 · I have two aem components having different author dialog. Now I want to embed one component onto the other using htl. How to do that can anyone help? I tried using data-sly-resource …
Retrieving values from multifield component in HTL in AEM 6.5
Retrieving values from multifield component in HTL in AEM 6.5 Asked 6 years, 3 months ago Modified 2 years, 3 months ago Viewed 15k times
aem - get asset properties on htl page with asset path without using ...
Aug 16, 2022 · It's best to use the (backend service) Asset APIs but you could also hack your way with just HTL if you know exactly the JCR node and property. data-sly-use allows specifying a JCR path …
AEM 6.0: Additional parameters when using data-sly-resource?
There is a newer feature that request-attributes can be set on data-sly-include and data-sly-resource : ... Unfortunately it doesn't seem to be possible to construct a Map with HTL (=Sightly) expressions, and …
sightly - AEM different ways to use HTL sly - Stack Overflow
Dec 16, 2020 · Most of HTL can be written around existing HTML tags and attributes, such as ... However, in instances where you don't want the HTML element to be present in the output, you can …