css - Inserting a class name dynamically on a component's wrapping element -


i using cq:htmltag generate custom tag 1 of components.

for "class" property, know provide static class name part of css file, requirement have 'template name' class property value.

does cq provide way use dynamic values?

out of box think not. there few workarounds think of:

  • add tag child set class (probably not want)
  • use javascript add on load (if not late)
  • overlay parsys , implement logic there

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -