6 Replies Latest reply on Dec 15, 2010 6:07 AM by Thomas Chacko

    Make available css to all portlets

    Thomas Chacko Newbie

      hi.

         I want to make my css available to all portlets. I have configured my gatein-resources.xml. It is as follows :

       

      <?xml version="1.0" encoding="UTF-8"?>
      <gatein-resources
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_0 http://www.gatein.org/xml/ns/gatein_resources_1_0"
          xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_0">

       

          <portal-skin>
              <skin-name>myPortalStyle</skin-name>
              <css-path>/themes/Stylesheet.css</css-path>
          </portal-skin>

      </gatein-resources>

       

       

      I have added ResourceRequestFilter in my web.xml. It is as follows :

       

         <filter>
             <filter-name>ResourceRequestFilter</filter-name>
             <filter-class>org.exoplatform.portal.application.ResourceRequestFilter</filter-class>
          </filter>
         
           
          <filter-mapping>
              <filter-name>ResourceRequestFilter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>

       

       

      I have my Stylesheet.css in themes directory. It is as follows :

       

      @import url(abc/mystyle.css);

       

      Directory abc is located inside themes.

       

      anybody please help me with my issue..