RE: Same field on different pages
"Thierry Krebs" <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I think you could use an absolute field to do this, something like that:
<content:declareField name="scrollText" title="Scrolling Text" type="BigText"/>
<content:bigTextField name="scrollText" pageLevel="1"/>
<% if (jData.gui().getLevel() == 1) { %>
<content:updateFieldURL fieldName="scrollText" id="updateFieldURL" display="false"/>
<logic:present name="updateFieldURL">
<a href="<bean:write name='updateFieldURL'/>">Edit Scrolling Text</a>
</logic:present>
<% } %>
Then go to the Home page (pageLevel = 1) and edit the field. The value you enter will be visible on all pages, but you can only edit the field from the homepage.
Thierry Krebs
-----Message d'origine-----
De : Laurent GARNIER [mailto:[email protected]]
Envoyé : mercredi 2 juin 2004 17:18
À : [email protected]
Objet : Same field on different pages
Hello,
I have a group of pages based on different termplates, but they all have the same header. In the header of these page, I have a scrolling text. I would like this scrolling text (which is a bigtext field) to be the same on all the pages. When I change the scrolling text on one page, I would like the modification to take effect on all pages.
Is there a way to do this?
Thank you.
Laurent