RE: Integrate new box type into Jahia

"Christopher Kelley" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Organization New Hampshire Sierra Club
Message-ID <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAYeYYOP+7EUSt4LlzSRfFBsKAAAAQAAAAx2pLOXeOekmP6gQ4AxPg5wEAAAAA@nhsierraclub.org>
This does not seem to apply to 3.1.  Any difference?




-----Original Message-----
From: Philippe Vollenweider [mailto:[email protected]] 
Sent: Thursday, January 27, 2005 5:06 AM
To: [email protected]
Subject: Re: Integrate new box type into Jahia

Hello,

First, the declaration of the box is made into the file
include\box_declarations.inc So if you add a new sub container list (= a new
type).
Then you have to modify following files:

in box.jsp:
     <bean:define id="yourNewType" 
value='<%=ResourceBundleMarker.drawMarker(resBundleID,"yourNewType","")%>'/>
     ...
     <c:when test="${boxTypeValue == yourNewType">
          <%@ include file="box_yourNewType.inc"%>
     </c:when>

in include\declarations.inc you hace to add your type into boxTypes[]

in the Corporate_portal_templates.properties (in
WEB-INF/classes/jahiatemplates) you will have to add a resource for your
type
     yourNewType = Your new type


Then you will have to create the file include/box_yourNewType.inc to 
display your content.

Cheers,

Philippe

At 26.01.2005 23:10, you wrote:
>Hi,
>
>Does someone know (or have some documentation about) how to integrate a 
>new box type into Jahia ?
>
>Thanks
>
>--
>Allen E. Whittom, analyste en informatique
>Bibliothèque de l'Université Laval, Québec², Canada G1K 7P4
>www.bibl.ulaval.ca

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.