1 Reply Latest reply on Jun 28, 2007 2:23 AM by Burkhard Vogt

    2.4.1: how to dynamically select css file for a page

    Burkhard Vogt Newbie

      Does anyone know, if it's pssobile to dynamically select a certain css file for a page?

      Thanks in advance for any hints.

      Burkhard

        • 1. Re: 2.4.1: how to dynamically select css file for a page
          Burkhard Vogt Newbie

          I have a solution, although it's somewhat like a hack...

          - the page has been defined a 'declaredProperty', e.g. 'layout'
          - the declaredProperty is retrieved within a portlet instance, which is placed on every page, and set into the APPLICATION_SCOPE's session
          - a custom ThemeTagHandler retrieves the layout value from the page-context's session and replaces the css file generated by theme.assembleResponse()

          Is there a smarter way of doing this in Portal 2.4?