RE: referring to a field declared on another page

"PELTIER Olivier" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <6085BD800C1D704C953466C4B31DAD2BF82885@EPLUXSEX01.ep.parl.union.eu>
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]
----- ---- --- -- - - - - - - - -
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.