4 Replies Latest reply on May 28, 2010 5:58 PM by mwringe

    How can i add a new portal to part of classic with descriptor

    jhakyblue

      hi everybody

       

      I'm starting to work with gatein portal, so I want to help me with that one... My problem is with descriptor, I want to add another portal, another pages  in portal.xml, page.xml and navigation.xml so when gatein ups i can see the classic portal and my portal but when i do that, nothing happens...Maybe my configuration is wrong, I just want to create myportal with its pages and nodes... i hope you can help me

      thanks

       

      portal.xml

      <portal-config
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_0 http://www.gatein.org/xml/ns/gatein_objects_1_0"
          xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_0">
        
      <portal-name>newportal</portal-name>
        <locale>en</locale>
        <access-permissions>Everyone</access-permissions>
      <edit-permission>*:/platform/administrators</edit-permission>
        <skin>mySkin</skin>
       <edit-permission>*:/platform/administrators</edit-permission>
        <skin>mySkin2</skin>
       
        <properties>
          <entry key="sessionAlive">onDemand</entry>
        </properties>
          
        <portal-layout>
         <portlet-application>
            <portlet>
              <application-ref>web</application-ref>
              <portlet-ref>BannerPortlet</portlet-ref>
              <preferences>
                <preference>
                  <name>template</name>
                  <value>par:/groovy/groovy/webui/component/UIBannerPortlet.gtmpl</value>
                  <read-only>false</read-only>
                </preference>
              </preferences>
            </portlet>
            <access-permissions>Everyone</access-permissions>
           <show-info-bar>false</show-info-bar>
         </portlet-application>
         <portlet-application>
            <portlet>
              <application-ref>web</application-ref>
              <portlet-ref>NavigationPortlet</portlet-ref>
            </portlet>
            <access-permissions>Everyone</access-permissions>
           <show-info-bar>false</show-info-bar>
         </portlet-application>
        
         <page-body> </page-body>
         
           <portlet-application>
             <portlet>
               <application-ref>web</application-ref>
               <portlet-ref>FooterPortlet</portlet-ref>
               <preferences>
                 <preference>
                   <name>template</name>
                   <value>par:/groovy/groovy/webui/component/UIFooterPortlet.gtmpl</value>
                   <read-only>false</read-only>
                 </preference>
               </preferences>
             </portlet>
             <access-permissions>Everyone</access-permissions>
             <show-info-bar>false</show-info-bar>
           </portlet-application>
        </portal-layout>
        
      </portal-config>
      

       

      navigation.xml

       

      <node-navigation
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_0 http://www.gatein.org/xml/ns/gatein_objects_1_0"
          xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_0">
        <priority>1</priority>
        <page-nodes>
         <node>
           <uri>home</uri>
           <name>home</name>
           <label>#{portal.newportal.home}</label>
           <page-reference>portal::newportal::homepage</page-reference>     
         </node>   
         <node>
           <uri>groupnavigation</uri>
           <name>groupnavigation</name>
           <label>#{portal.newportal.groupnavigation}</label>
            <visibility>SYSTEM</visibility>
           <page-reference>portal::newportal::groupnavigation</page-reference>
         </node>
         <node>
           <uri>portalnavigation</uri>
           <name>portalnavigation</name>
           <label>#{portal.newportal.portalnavigation}</label>
            <visibility>SYSTEM</visibility>
           <page-reference>portal::newportal::portalnavigation</page-reference>
         </node>
         <node>
           <uri>register</uri>
           <name>register</name>
           <label>#{portal.newportal.register}</label>
            <visibility>SYSTEM</visibility>
           <page-reference>portal::newportal::register</page-reference>     
         </node>
         
         </page-nodes>
      </node-navigation>

       

      page.xml

      <page-set
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_0 http://www.gatein.org/xml/ns/gatein_objects_1_0"
          xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_0">
        <page>
          <name>homepage</name>
          <title>Home Page</title>
         <access-permissions>Everyone</access-permissions>
         <edit-permission>*:/platform/administrators</edit-permission>
          <portlet-application>
            <portlet>
              <application-ref>web</application-ref>
              <portlet-ref>HomePagePortlet</portlet-ref>
              <preferences>
                <preference>
                  <name>template</name>
                  <value>system:/templates/groovy/webui/component/UIHomePagePortlet.gtmpl</value>
                  <read-only>false</read-only>
                </preference>
              </preferences>
            </portlet>
            <title>Home Page portlet</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>false</show-info-bar>
            <show-application-state>false</show-application-state>
            <show-application-mode>false</show-application-mode>
          </portlet-application>
        </page>
          
        <page>
          <name>groupnavigation</name>
          <title>Group Navigation</title>
         <access-permissions>*:/platform/users</access-permissions>
         <edit-permission>*:/platform/administrators</edit-permission>    
          <portlet-application>
            <portlet>
              <application-ref>exoadmin</application-ref>
              <portlet-ref>GroupNavigationPortlet</portlet-ref>
            </portlet>
            <title>Group Navigation</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>false</show-info-bar>
          </portlet-application>
        </page>
        
        <page>
          <name>portalnavigation</name>
          <title>Portal Navigation</title>
         <access-permissions>*:/platform/users</access-permissions>
         <edit-permission>*:/platform/administrators</edit-permission>    
          <portlet-application>
            <portlet>
              <application-ref>exoadmin</application-ref>
              <portlet-ref>PortalNavigationPortlet</portlet-ref>
            </portlet>
            <title>Portal Navigation</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>false</show-info-bar>
          </portlet-application>
        </page>
        
        <page>
          <name>register</name>
          <title>Register</title>
         <access-permissions>*:/platform/guests</access-permissions>
         <edit-permission>*:/platform/administrators</edit-permission>    
          <portlet-application>
            <portlet>
              <application-ref>exoadmin</application-ref>
              <portlet-ref>RegisterPortlet</portlet-ref>
            </portlet>
            <title>Register Account</title>
            <access-permissions>*:/platform/guests</access-permissions>
            <show-info-bar>false</show-info-bar>      
          </portlet-application>
        </page>
        <page>
          <name>sitemap</name>
          <title>Site Map</title>
         <access-permissions>Everyone</access-permissions>
         <edit-permission>*:/platform/administrators</edit-permission>
          <portlet-application>
            <portlet>
              <application-ref>web</application-ref>
              <portlet-ref>SiteMapPortlet</portlet-ref>
            </portlet>
            <title>SiteMap</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>false</show-info-bar>      
          </portlet-application>
        </page>
      </page-set>