Questions tagged [htl]

HTL (HTML Templating Language, formerly known as Sightly) - the Apache Sling XSS-aware template language

HTL (HTML Templating Language, formerly known as Sightly) is an XSS-aware templating language that was introduced in Adobe Experience Manager 6.0 and later donated to Apache Sling. Its distinguishing features are a tight integration with Sling and helping make your HTML immune to cross-site scripting by supplying sensible defaults and anti-XSS filters.

94 questions
-1
votes
3 answers

AEM sling model --Multifield Links component ,MissingElementsException: Could not inject all required fields

AEM sling model --Multifield Links component : MissingElementsException: Could not inject all required fields I am trying to create a multifield link(URL) component - EXTERNAL AND INTERNAL LINKS. See getpageURL() for understanding. See the image…
Kumar Ramela
  • 11
  • 1
  • 6
-1
votes
2 answers

How do I get a selector from a sling Resource

I have two Sling Models: @Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) public class VideoGridItem { @SlingObject private Resource resource; @SlingObject …
Kramer
  • 927
  • 2
  • 13
  • 30
-1
votes
2 answers

How to retrieve session values in Sightly/HTL?

I am using Sightly/HTL as the templating language in my AEM project (AEM version 6.3). As Sightly provides a lot of context objects, two of them being : request backed by org.apache.sling.api.SlingHttpServletRequest and currentSession backed by …
Karttik Mishra
  • 150
  • 2
  • 14
-2
votes
1 answer

Adobe Experience Manager 6.1 AEM 6.1 AEM 6.2 customize page content

I want to create a page template might be used in multiple sites. what I am currently doing is like this