Questions tagged [sightly]

Sightly (now known as HTL) - the Apache Sling XSS-aware template language

Sightly is an HTML 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-side scripting by supplying sensible defaults and anti-XSS filters.

374 questions
0
votes
1 answer

AEM TouchUI Components dialog

I have multiple components that use another component as a child, not to generate all the content but it is a child component we recognized needed to be used multiple times so we created a child component that is being included: The problem that I…
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
0
votes
1 answer

How to total up first few elements in a for each loop of Sightly?

How to add the first three elements of a for loop in sightly and show the value as Total. I have code as below {{each(i, provision) provisionTypes}}
0
votes
1 answer

currentStyle. is returning null in cq5 publisher, which is working perfectly fine in author

I am using sightly to access the design dialog properties for a component. something like ${currentStyle.delimiter} but all I am getting is an empty string. I tried to resolve the issue by…
amitdeol
  • 279
  • 1
  • 14
0
votes
1 answer

How to develop Custom Adapter in Sightly

I was going through sightly blog with practical. I have simple Use class as below : public class SightlyDemo2 extends WCMUse { private String fullName; @Override public void activate() { fullName = get("firstName",…
Vivek Dhiman
  • 1,967
  • 6
  • 46
  • 82
0
votes
1 answer

AEM Column Control predefined columns

You can provide column definitions by editing a Column Control component and using the following format: [Number of Columns] + ‘;’ + [Column Class] + ‘\t’ + [Format Label] However, I don't want to give control to the author, not only that but if…
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
0
votes
1 answer

AEM Sightly listening for when a component is added to a template

How do you listen for events in Sightly? I have a wrapper component that holds information about its children, I want to be able to have the children react based on those changes. Think of the column component. I just started looking at colctrl.js…
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
0
votes
1 answer

AEM - adding a container and varying number of children

I have created a component, the new request is to add 3 or 4 of those components within a container. I understand I can just add a column control component and add the children as needed but the request is to go beyond that and add the children as…
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
0
votes
2 answers

How to represent a breadcrumb child?

I represent the breadcrumb in a table as follow:
Ronald
  • 2,721
  • 8
  • 33
  • 44
0
votes
1 answer

Pass arguments to JavaScript function from Sightly

I can call JavaScript functions from Sightly with no parameters, e.g.
But I would like to call a function…
Alasdair McLeay
  • 2,572
  • 4
  • 27
  • 50
0
votes
1 answer

Output as context html

The Idea is simple, i have an unordered list, because there is no mod i do the following
  • ${itemList.index== 3 ? '
    ' : '' @ context='html'}
the output is some kind of strange…
0
votes
1 answer

Pass variable from component model to author dialog

I have a Sightly component with a (JavaScript) UseAPI model in an Adobe AEM/CQ site. In the model, I have a variable that is calculated when the component loads and is not stored in the JCR (let's say it's a random string). When an author opens the…
Alasdair McLeay
  • 2,572
  • 4
  • 27
  • 50
0
votes
2 answers

data-sly-call in sightly not invoking

I was trying the sample example given at [a link]http://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-java.html. I have created the component SightlyTest in which the data-sly-call to the template does not work. Below are my files inside…
Vivek Dhiman
  • 1,967
  • 6
  • 46
  • 82
0
votes
3 answers

how can I iterate over a list of objects in sightly?

I have created a Java class method getmyPages() which returns iterator. Now in HTML page I am able to instantiate the class and access other properties of this class. However I want to iterate over this iterator the way…
user4052951
  • 1
  • 1
  • 1
  • 2
-1
votes
1 answer

Render List Of List in HTL Slightly

I have a table and need to render its rows and columns. I am able to see the data properly on CRXDE Lite but I am unable to render it on HTL. Here are the java classes: public class Table { @ChildResource private List
superninja
  • 3,114
  • 7
  • 30
  • 63
-1
votes
1 answer

Getting values of other components in aem

I have created 2 components (component A, component B) and 2 pages(page A,page B) in AEM 6.4. I have added component A to page A and component B to page B. My requirement is to display the value authored in page A to page B. How can I achieve…
1 2 3
24
25