Re: Using Container outside a containerList ??
Philippe Vollenweider <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hi, First you should declare your default values. Then if your containerList is empty, you display an "addContainer" button and you use default values. Else you get the first container, you display an "updateButton" and you overwrite the default values with the new ones. Philippe. At 02.12.2004 10:55, you wrote: >Thanks Philippe, > >I've study a bit the siteSettings code, but what is the procedure to >handle just the first container ? >Thanks a lot > >Guillaume > > > >Philippe Vollenweider wrote: >>Hello, >> >>A contaner has to be declared in a container list. >>The work around is to to use only the first container (like in the >>siteSettings containerList) >> >>Philippe >> >> >>At 02.12.2004 10:34, you wrote: >>>Hello everybody, >>> >>>Is it possible to declare and use a container outside a container list ? >>>It can be interesting because only one edition pop-up will open for the >>>content of the container (it's better than 3 pop-up for instance, one >>>for each field...) >>>I've tried taglib with something like that: >>> >>><content:declareContainer name='mainContentContainer' title='Conteneur >>>principal'> >>> <content:declareField name='title' >>> title='Title' type='SmallText'/> >>></content:declareContainer> >>> >>><content:container id='mainContentContainer'> >>> <jahiaHtml:actionMenu >>> name="mainContentContainer" namePostFix="" >>> >>>resourceBundle="jahiatemplates.Corporate_portal_templates"> >>> <content:textField name='title' >>> display="false" valueId="title" >>> defaultValue="" >>> diffActive="true"/> >>> </jahiaHtml:actionMenu> >>> </content:container> >>> >>>but it doesn't work...(Error: >>> >>>Attribute name invalid according to the specified TLD.. >>>) >>> >>>Any idea? Is it possible with jahia API instead of taglib? >>> >>>Best regards, >>> >>>Guillaume. >>> >>>-- >>>---------- >>>[] >>> >>> >>>Guillaume Kuhmel >>>Ingénieur Concepteur Développeur >>><mailto:[email protected]>[email protected] >>>Tél. : +33 (0)6.88.33.36.16 >>> >>><http://www.sqli.fr>http://www.sqli.com >>>Groupe SQLI >>>75 rue Marcelin Berthelot >>>13848 Aix en Provence Cedex 3 >> >>-------=[ pvollenweider at jahia dot com ]=--------- >>Jahia : A collaborative source CMS and Portal Server >><http://www.jahia.org>www.jahia.org Community and product web site >><http://www.jahia.com>www.jahia.com Commercial services company >> >> >> >> >>[] > >-- > >---------- >[] > > >Guillaume Kuhmel >Ingénieur Concepteur Développeur ><mailto:[email protected]>[email protected] >Tél. : +33 (0)6.88.33.36.16 > ><http://www.sqli.fr>http://www.sqli.com >Groupe SQLI >75 rue Marcelin Berthelot >13848 Aix en Provence Cedex 3 > -------=[ 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
33c8f5.gif
(image/gif, 4.7 KB) - not displayed
33c904.gif
(image/gif, 4.7 KB) - not displayed