Home
General
eXo Platform 3.0
[Resolved] Creatin...
Search:
eXo Platform 3.0 : Questions about the enterprise features and availability of eXo Platform 3.0.
Search this topic
Early Adopter
Join Date:06/17/2010
Posts:75
Last post: 02/07/2011, 06:44 PM
Last Login:07/04/2011, 05:13 PM
[Resolved] Creating new containers for page layout
Posted:Tue,Aug 31,2010, 11:27 PM

How do you go about creating new containers for page layout? Specifically I interested in the tabbed layout. There is a container for 2 and 3 tabs. But, how would I create containers with more tabs?

Last edited by romain.denarie on Tue,Sep 21,2010, 02:52 PM
Reason: Mark as resolved and change icon
Moderator
Join Date:02/02/2009
Posts:95
Last post: 02/03/2012, 04:57 PM
Last Login:02/04/2012, 02:40 PM
Re: Creating new containers for page layout
Posted:Tue,Sep 07,2010, 08:09 AM

Hi gkar47

Containers are configured in this file :
webapps/portal/WEB-INF/conf/uiconf/portal/webui/container/ContainerConfigOption.groovy

You can add yours on same model.

__________________
Regards, Romain
Early Adopter
Join Date:06/17/2010
Posts:75
Last post: 02/07/2011, 06:44 PM
Last Login:07/04/2011, 05:13 PM
Re: Creating new containers for page layout
Posted:Thu,Sep 09,2010, 12:10 AM

Thank you, I think I see how the containers are constructed in this file.

I assume that I override this file with an extension WAR and place my version in the same relative place in my WAR, correct?

For the following:

tabs.addSelectItemOption(new SelectItemOption("threeTabs",
"<container template=\"system:/groovy/portal/webui/container/UIContainer.gtmpl\">" +
"<container template=\"system:/groovy/portal/webui/container/UITabContainer.gtmpl\">" +
" <factory-id>TabContainer</factory-id>" +
" <container template=\"system:/groovy/portal/webui/container/UIContainer.gtmpl\"></container>" +
" <container template=\"system:/groovy/portal/webui/container/UIContainer.gtmpl\"></container>" +
" <container template=\"system:/groovy/portal/webui/container/UIContainer.gtmpl\"></container>" +
"</container>" +
"</container>",
"ThreeTabContainerLayout")) ;

What are the purpose of the values "threeTabs", and "ThreeTabContainerLayout"? Do one or the other of these map to a resource bundle somewhere for language translation? If so where, and which one?

 

Last edited by gkar47 on Thu,Sep 09,2010, 12:15 AM
Moderator
Join Date:02/02/2009
Posts:95
Last post: 02/03/2012, 04:57 PM
Last Login:02/04/2012, 02:40 PM
Re: Creating new containers for page layout
Posted:Thu,Sep 09,2010, 09:27 AM

I assume that I override this file with an extension WAR and place my version in the same relative place in my WAR, correct?

Correct.

What are the purpose of the values "threeTabs", and "ThreeTabContainerLayout"? Do one or the other of these map to a resource bundle somewhere for language translation? If so where, and which one?

 

threeTabs is a label, specified here : webapps/portal/WEB-INF/classes/locale/portal/webui.properties
ThreeTabContainerLayout is a css class defined here : eXoResources/skin/DefaultSkin/portal/webui/component/customization/UIContainerList/Stylesheet.css
 

__________________
Regards, Romain
Early Adopter
Join Date:06/17/2010
Posts:75
Last post: 02/07/2011, 06:44 PM
Last Login:07/04/2011, 05:13 PM
Re: Creating new containers for page layout
Posted:Fri,Sep 10,2010, 11:44 PM

Thank you.

Early Adopter
Join Date:06/17/2010
Posts:75
Last post: 02/07/2011, 06:44 PM
Last Login:07/04/2011, 05:13 PM
Re: [Resolved] Creating new containers for page layout
Posted:Fri,Sep 24,2010, 12:44 AM
I've got most of this working. But, in the Stylesheet it refers to an image in the background folder. So I created my new one and placed it there in my custom skin, but it is not displaying it on the container list. I have double checked all my names/connections and can't see why it is not finding it. I have even cheated temporarily and placed it in eXoResources directly. But, it is still not seeing the new container image.
Early Adopter
Join Date:06/17/2010
Posts:75
Last post: 02/07/2011, 06:44 PM
Last Login:07/04/2011, 05:13 PM
Re: [Resolved] Creating new containers for page layout
Posted:Mon,Sep 27,2010, 08:52 PM

I found what appears to be the problem with loading the image for my custom container. In my JAR file that starts my extension in the configuration.xml I was using

<object type="org.exoplatform.container.definition.PortalContainerDefinitionChange$AddDependenciesBefore"> instead of <object type="org.exoplatform.container.definition.PortalContainerDefinitionChange$AddDependencies">.

Once I corrected this the image started showing up correctly.

Rules
You can not create topics
You can not post replies
You can not post attachments
You can not edit your posts
Copyright © 2012. All rights reserved,eXo Platform SAS