3 Replies Latest reply on Mar 8, 2012 10:50 PM by Minh Hoang TO

    Nested Container in Portal.xml

    Fred Curry Newbie

      I want to change the default layout of my portal to contain the "One Row, Two Columns" container. I have found in the documentation that a <container> node can be added to the Portal.xml file, however, there are no details around the attributes of the node.

       

      For the above example, what attributes would I enter in the container node:

      <container id="???" template="???" attribute="???"> </container>

       

      I ultimately want to create my own container to define my own layout, but I need a decent starting point.

       

      Fred

        • 1. Re: Nested Container in Portal.xml
          Shannon Sumner Newbie

          I know this is an old post - but this is exactly what I want to do.  Did you have any luck setting this up?

           

          Thanks,

           

          Shannon

          • 2. Re: Nested Container in Portal.xml
            Jorge Ferreyra Newbie

            Hi

            This is a two-column distribution, which must be placed inside <portal-layout> tag of portal.xml

             

            <!-- container of two columns --> 
            <container id="MainContainer" template="system:/groovy/portal/webui/container/UITableAutofitColumnContainer.gtmpl"> 
                <access-permissions>Everyone</access-permissions> 
            
                <!-- left column --> 
                <container id="LeftContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl" width="650px"> 
                    <access-permissions>Everyone</access-permissions> 
            
            
                </container> 
            
                <!-- right column --> 
                <container id="RightContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl"> 
                    <access-permissions>Everyone</access-permissions> 
            
                </container> 
            
            </container>
            

             

            In this case, I'm using 3 attributes:

             

            - template: it defines the container type (mandatory).

            - id: an identificator for container (optional, defined by developer)

            - width: the width of container (optional)

             

            Regards

             

            Jorge

            • 3. Re: Nested Container in Portal.xml
              Minh Hoang TO Novice

              You could find configuration for some nested container in  web/portal/src/main/webapp/WEB-INF/conf/uiconf/portal/webui/container/ContainerConfigOption.groovy