Hello,
Did you try to use the getFieldID(String fieldName, int pageID) methode in class org.jahia.services.fields.JahiaFieldBaseService?
Then you could load the field.
Philippe.
At 23.09.2004 16:48, you wrote:
Hi,
I would like to get the content of a field using a specific JahiaPage object. Each page "top link" has a two fields : - one image - one big text (named "main_0")
I wish to get the text of the big text field and the URL and title of the image in my Home Page.
Here is the code of the HomePage template : <% PageBean topLinkBean = (PageBean) pageContext.findAttribute("topLink"); JahiaPage topLink = topLinkBean.getJahiaPage(); %> <h3><a href="<%= topLink.getUrl(jData.params())%>" <%=topLink.getTitle()%> </a></h3>
How can I do that ?
-------=[ 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
