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...
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 ...
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...
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...
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...
2
Solved
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...
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 ...
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...
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
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...
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:
&...
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...
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...
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...
1
© 2022 - 2024 — McMap. All rights reserved.