2 Replies Latest reply on Jun 8, 2010 6:27 AM by trong.tran

    New Portail, skin-portlet problem

      Hi,

       

      I created a new portail, I  want to edit a page to include a portlet through the option of "Edit  page", the portlet is added but the functions js and css classes are not  imported.

      The file  "gatein-resources.xml" of the portlet looks like this:

      <portlet-skin>
              <application-name>name-war</ application-name>
              <portlet-name>name-portlet</ portlet-name>
              <skin-name>NewSkin</ skin-name>
              <css-path>/skin/portal/WebUI/component/portlet-name/DefaultStylesheet.css</  css-path>
      </ Portlet-skin>

       

      The file "/skin/portal/WebUI/component/portlet-name/DefaultStylesheet.css"


      In the configuration file  "portal.xml" I add the element:
      <skin>NewSkin</ skin> to add the new skin portail.

      Can someone help me.

      Darlys

        • 1. Re: New Portail, skin-portlet problem

          Add in the file "configuration.xml" on your site the following dependence
          for the portlet you want to integrate:

           

           

          exemple:

           

           

              <external-component-plugins>
                  .......
                     <field name="dependencies">
                                  <collection type="java.util.ArrayList">
                                         <value>
                                              <string>eXoResources</string>
                                         </value>
                                         <value>
                                              <string>portal</string>
                                         </value>
                                         <value>
                                              <string>dashboard</string>
                                         </value>
                                        <value>
                                              <string>name-application-portlet</string>

                                         </value>

                                   </collections>

                       </field>

              </external-component-plugins>

          </configutarion>

           

          Then add in the web.xml file of your portal as follows:

           

          <listener>

               <listener-class>org.exoplatform.container.web.PortalContainerConfigOwner</listener-class>

          </listener>

           

          Thanks

          • 2. Re: New Portail, skin-portlet problem
            trong.tran

            If i understand well what you are trying to do is creating a new skin and use it in your own portal and portlets. So first please make sure you did have a look on the reference http://docs.jboss.com/gatein/portal/3.0.0-FINAL/reference-guide/en-US/html/chap-Reference_Guide-Configuration.html#sect-Reference_Guide-Skin_Configuration