How to make link to new page without container
David Kovář <[email protected]> Thu, 7 Jun 2007 16:10:17 +0200
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <5405D4D7D56004418A2E380E38D9421D64F341@cmo2003.jihlava.oxygen.local> |
Hi, creating pageField in container is documented very well. But what can I do if I need to make exactly only one (in comparation with many links in container) link in my template. I tried it like this: <content:declareField name="menuTopLink1" type="Page" value="<jahia_linkonly>"></content:declareField> <content:pageField valueId="menuTopLink1" name="menuTopLink1"></content:pageField> <logic:notEmpty name="menuTopLink1"> <a href='<bean:write name="menuTopLink1" property="url" />'><bean:write name="menuTopLink1" property="title" /></a> </logic:notEmpty> But the menuTopLink1 is still null and <jahiaHtml:actionMenu name="menuTopLink1" namePostFix=".link.ostrava" useFieldSet="false" /> throuws error: ActionMenuTag, ERROR, org.jahia.taglibs.html.actions.ActionMenuTag: Couldn't find any object with name menuTopLink1 Can anybody tell me how to resolve this problem? Thanks in advance. David Kovar _______________________________________________ template_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
smime.p7s
(application/x-pkcs7-signature, 3 KB) - not displayed