sightly Questions

1

How to check the empty list on Sightly? I wanted to prevent render the item-list DIV if there was no item on itemImgaeList. But it returns me one (1) always if there were no items while trying with...
Clientele asked 6/9, 2020 at 7:56

4

I am trying to implement something which I hope is relatively straight forward... I have one component (lets call it the wrapper component) which contains another component (lets call it the inner ...
Palatal asked 20/8, 2014 at 12:34

2

Solved

What is the difference between: data-sly-use, data-sly-resource, data-sly-include, and data-sly-template? I am reading the doc on Sightly AEM and I am super confused. As far as I can see: data-s...
Darmit asked 28/10, 2015 at 4:29

2

I have a basic java use class object that extends WCMUSE and a simple hashmap method - in the sightly code - I have something like ${item} ${item.key} ${item.value} does not work - how do I ret...
Health asked 30/9, 2014 at 15:10

1

Solved

I am new to sightly. Can someone please help me understand the difference between using <sly data-sly-test ="${condition}" data-sly-unwrap> and <div data-sly-test="${condition}" dat...
Rabinowitz asked 26/11, 2017 at 3:15

2

Solved

A JSP file, like a HTML file can be requested directly in url. However, a JSP file gets compiled during runtime and HTML file doesn't (Although they are both requested the same way). Even a JSP fil...
Different asked 21/3, 2016 at 9:56

2

Solved

I have the following code: <sly data-sly-use.link="${'core.impl.view.tools.LinkUtils' @ path=properties.targetURL}"></sly> I want to concatenate properties.linkType to proper...
Mesenchyme asked 8/5, 2017 at 6:45

2

Solved

In JSTL you can set variables in on component that are available to all other components after it in the same request. In AEM using sightly is there an equivalent way to pass data between component...
Haldis asked 21/8, 2014 at 16:8

5

How can I remove the decoration tags only in preview/publish mode in AEM sightly? I have seen the question and answer: AEM/CQ: Conditional CSS class on decoration tag This removes the decoration ...
Gassaway asked 2/2, 2015 at 16:54

2

Solved

In the Sightly templating language, for Adobe AEM6 (CQ), how do I add an attribute to an element only if a condition is true, without duplicating lots of code/logic? e.g. <ul data-sly-list="${...
April asked 3/7, 2014 at 9:54

1

Solved

I have a component using the Rich Text Edit widget (xtype="richtext") in my project that's used across the entire site as the default text component. The users would like to be able to in...
Argos asked 16/9, 2016 at 15:38

2

Solved

I had used <c:forEach> in jstl. Now i want to use sightly. My usecase is to print numbers from 1 to 10 then how can i iterate in sightly as for loop in java
Joke asked 20/5, 2016 at 13:17

3

Solved

I would like to use data-sly-resource to include a resource, but only if it exists, e.g. <div class="pull-right" data-sly-resource="/content/blog/stats"></div> If the resource does...
Excommunicatory asked 2/11, 2015 at 20:5

3

Solved

I'm using Sightly and while investigating a bug in my application I noticed a behaviour I didn't expect. Some of the links would render with ampersands in the query string escaped twice. Example: &...
House asked 11/3, 2016 at 11:15

1

Solved

Using data-sly-list I can iterate over a list object in Sightly, but how can I check if a list is empty? data-sly-list simply renders nothing on empty list objects and I need to display an alternat...
Pattypatulous asked 8/1, 2015 at 8:43

1

Solved

I was looking over the expression options used in sightly. I tried the below line of code, but it seems just render the text over the page, can someone provide use of options with some good example...
Limy asked 20/12, 2014 at 18:55

1

Solved

I'm trying to implement recursive algorithm solving Tower of Hanoi problem in Sightly. I know this approach may not have many obvious practical applications, I treat it as a puzzle. I end up with s...
Puttergill asked 18/12, 2014 at 10:44
1

© 2022 - 2024 — McMap. All rights reserved.