0 Replies Latest reply on Jul 7, 2006 4:45 AM by louise_za

    Header content injection

    louise_za

      Hi!

      I am trying to inject header content using the declarative css style injection method:

      <portlet>
       <portlet-name>APortlet</portlet-name>
       <portlet-class>com.gew.portlet.APortlet</portlet-class>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <header-content>
       <link rel="stylesheet" type="text/css" href="/css/style.css" title="" media="screen" />
       </header-content>
       <portlet-info>
       <title>APortlet</title>
       </portlet-info>
       </portlet>


      This is not working. I think my path to the stylesheet is wrong, but I'm not sure what it should be relative to. Should it be relative to the portlet.xml file, the portlet itself, the index file of the layout or to the portlet jsp?