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 -

django - CSRF verification failed. Request aborted. CSRF cookie not set -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -