I have created a site in AEM as a Cloud Service and want to implement CSS and JS at global level. Means, we can change values in content fragment and then it will change for the whole site. Is there a way to do this?
And if not this then is there a way that we can handle global js and css from author's end?
Solved! Go to Solution.
Views
Replies
Total Likes
This sound very much like the theme capability.
If you try page properties of a wknd root website, you can see a Theme subsection as below
As the info icon says, you can choose a content fragment based Page theme.
As you are on CS, please use Wknd Commerce >0.0.8 Reference demo to build a website ( Follow [1] for detailed steps ) and it already has an implementation as exactly you mentioned.
Hi @nikita24tailor ,
Ideally business author should not change the script so there is no point to have this feature available to them.
For CSS, I am assuming the requirement is to have different styles for same component. We have OOTB feature called style system for that.
Style System allows a template author to define style classes so that a content author is able to select them when editing the component on a page. These styles can be alternative visual variations of a component, making the component more flexible.
We also have embed component to add inline css, js, html to the page that can be considered for small use cases.
Please refer below links-
Embed component-
Style system-
Hope it helps!
Thanks,
Ritesh Mittal
This sound very much like the theme capability.
If you try page properties of a wknd root website, you can see a Theme subsection as below
As the info icon says, you can choose a content fragment based Page theme.
As you are on CS, please use Wknd Commerce >0.0.8 Reference demo to build a website ( Follow [1] for detailed steps ) and it already has an implementation as exactly you mentioned.
Views
Likes
Replies
Views
Likes
Replies
Views
Like
Replies