6 Replies Latest reply on Dec 5, 2012 9:42 AM by rosettakrb

    Each page needs to have its own JS & CSS includes; how to implement in CQ?

    rosettakrb

      Hello,

       

      I have a particular challenge I am trying to solve; the client has the requirement to build pages on the fly. 

      • Each page can have it's own look and feel and so will have page-specific JS or CSS. 
      • They want to enter HTML.

       

      I built a component with a dialog that has 2 text areas: one for everything in the <head> section and another for everything in the <body> section, but that doesn't output a clean html page.  I tried to add a design dialog for the <head> stuff, but the currentStyle.get won't return anything.

       

      What's the best way to implement a solution to this requirement?

       

      Thanks,

       

       

      KR.