Hello @Daniel_Gordon ,
I just read your reply on https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/don-t-understand-cssclassn... question on what is the use of getcssclassname but i have requirement where i only need Styles added via Style System nothing else..like page component or content component names. Is there any way?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
you can use API to access the style system
but the https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...() will return the classes which is either included by default or using cq:htmlTag
cq:htmlTag node : This node can be added under a component and can have the following properties:
Hi,
you can use API to access the style system
but the https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...() will return the classes which is either included by default or using cq:htmlTag
cq:htmlTag node : This node can be added under a component and can have the following properties:
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
also, just to add an idea and not doing framework layer customization(if it is not need global level for many instances)
why not to use componentContext or includoption to disable the tag (div/span etc...) decoration only in publish/disabled mode and read the styles using contentpolicystyle and generate desired div/span container with style class (only in publish/disable mode) inside component only (as top container).
other way around to look at it.
thanks!!
Correct answer in comments