Re: referring to a field declared on another page
Jurjan-Paul Medema <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Organization | KiNcite |
| Message-ID | <[email protected]> |
Thanks Olivier and Serge for your responses!
I guess I should have expected the symmetry with
jData.containers().getAbsoluteContainerList(String containerName,
int pageID);
which I have been using for a while... ;-)
Yours,
Jurjan-Paul
Serge Huber wrote:
>
> You can also use :
>
> JahiaField field = jData.fields.getAbsoluteField(String fieldName, int
> pageID);
>
> Regards,
> Serge...
>
> At 14:47 09.06.2004, you wrote:
>
>> Hello,
>>
>> I've used that piece of code for my purpose
>>
>> ContentField longTitle =
>> ContentField.getField(JahiaFieldBaseService.getInstance().getFieldID("title",
>> contentPage.getID()));%>
>> <%=longTitle.getValue(jData.params())%>
>>
>> Where contentPage is the contentPage associated to the JahiaPage
>> containing the field "title".
>>
>> Regards
>>
>> -----Original Message-----
>> From: Jurjan-Paul Medema [mailto:[email protected]]
>> Sent: 09 June 2004 14:41
>> To: [email protected]
>> Subject: referring to a field declared on another page
>>
>>
>> Hello list,
>>
>> Well, I suppose (or seem to remember) this must have been covered before
>> on this list, but have so far failed to find the specific thread in the
>> archive(s).
>>
>> How does one refer to a field that is defined and maintained on another
>> page (not in a container)?
>> The JahiaPage and ContentPage classes don't seem to offer a way of
>> accessing fields declared on them... What am I missing?
>>
>> Thanks a lot,
>> Jurjan-Paul
>>
>> --
>> ----- ---- --- -- - - - - - - - -
>> J.P. Medema
>> E: [email protected]
>> ----- ---- --- -- - - - - - - - -
>
>
> - -- --- -----=[ serge.huber 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
>
>
>
--
----- ---- --- -- - - - - - - - -
J.P. Medema
E: [email protected]
----- ---- --- -- - - - - - - - -