2 Replies Latest reply on Feb 1, 2010 1:54 PM by Michal Vanco

    Page configuration in pages.xml (2 columns container)

    Michal Vanco Newbie

      Hi,

       

      is it possible to configure page with portlets in 2 column container?

      I mean the configuration in: ../gatein.ear/02portal.war/WEB-INF/conf/portal/portal/myPortal/pages.xml.

       

      Here is sample:

       

      <page>
          <name>myPage</name>
          <title>myPageTitle</title>
            <access-permissions>Everyone</access-permissions>
            <edit-permission>*:/platform/administrators</edit-permission>
          <portlet-application>
            <portlet>
              <application-ref>myApp</application-ref>
              <portlet-ref>myPortlet1</portlet-ref>
            </portlet>
            <title>myPortlet1Tile</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>true</show-info-bar>
         </portlet-application>
          <portlet-application>

            <portlet>
              <application-ref>myApp</application-ref>
              <portlet-ref>myPortlet2</portlet-ref>
            </portlet>
            <title>myPortlet2Title</title>
            <access-permissions>Everyone</access-permissions>
            <show-info-bar>true</show-info-bar>
          </portlet-application>
        </page>

       

      I want to have myPortlet1 and myPortlet2 in 2 column container.

       

      Thanks in advance.

       

      Regards,

      Michal Vanco

        • 1. Re: Page configuration in pages.xml (2 columns container)
          Soren Schmidt Newbie

          Hi Michal,

          For doing that you use "containers". Here is an example, that you can adapt:

           

            <page>
                <page-id>portal::acme::overview</page-id>
              <owner-type>portal</owner-type>
              <owner-id>acme</owner-id>
              <name>overview</name>
              <title>Overview</title>
                <access-permissions>Everyone</access-permissions>
                <edit-permission>editor:/platform/web-contributors</edit-permission>
                <container id="ACMEBody" template="system:/groovy/portal/webui/container/UITableColumnContainer.gtmpl">
                      <container id="ACMELeft" template="system:/groovy/portal/webui/container/UIContainer.gtmpl" width="640px">
                            <application>
                              <instance-id>portal#acme:/presentation/SingleContentViewer/acme-introduce</instance-id>
                              <title>Homepage</title>
                            </application>
                            <application>
                              <instance-id>portal#acme:/presentation/ContentListViewerPortlet/acme-company-events</instance-id>
                              <title>Events</title>
                            </application>
                            <application>
                              <instance-id>portal#acme:/presentation/ContentListViewerPortlet/acme-company-news</instance-id>
                              <title>News</title>
                            </application>
                        </container>
                        <container id="ACMERight" template="system:/groovy/portal/webui/container/UIContainer.gtmpl" width="230px">
                            <application>
                              <instance-id>portal#acme:/presentation/ContentListViewerPortlet/acme-latest-documents</instance-id>
                              <title>Documents</title>
                            </application>
                            <application>
                              <instance-id>portal#acme:/presentation/ContentListViewerPortlet/acme-latest-news</instance-id>
                              <title>Latest news</title>
                            </application>
                        </container>
                </container>
            </page>

           

          cu

          Soren

          • 2. Re: Page configuration in pages.xml (2 columns container)
            Michal Vanco Newbie

            Great help!!! Works perfectly!

             

            Thank you very much Soren.

             

            Michal