활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi,
I'm working on sightly based component development. where i want to set the data attributes with short URL
I tried using JS which works only anchor tags but not for data attributes.
var resourceType = resource.getResourceType();
resolved = resolved + ".html";
}
Any alternate for data attributes?
해결되었습니다! 솔루션으로 이동.
you can use data-sly-attribute
https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/master/SPECIFICATION.md#223-attribute
조회 수
답글
좋아요 수
you can use data-sly-attribute
https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/master/SPECIFICATION.md#223-attribute
Thanks, will try this
조회 수
답글
좋아요 수
Hi
I tried data-attributes in anchor tag as below
href="${resolve.resolvedLink}"
data-sly-attribute.data-values="${resolve.resolvedLink}"
in href : i could short url as /home.html
where as in data-values : /content/.../en/home.html
I need to update anything in configuration ??
조회 수
답글
좋아요 수