|
Hi David, your code contains some cosmetic errors that prevent it from working properly (note, please, the proper usage of 'valueId' and 'id' attributes). The code should be as follows: <content:declareField name="menuTopLink1" type="Page" value="<jahia_linkonly>"/> <content:pageField name="menuTopLink1" id="menuTopLink1" valueId="menuTopLink1Value"/> <logic:notEmpty name="menuTopLink1Value"> <a href=''><bean:write name="menuTopLink1Value" property="title" /></a> </logic:notEmpty> <jahiaHtml:actionMenu name="menuTopLink1" namePostFix="" useFieldSet="false" resourceBundle="jahiatemplates.Corporate_portal_templates_v2"/> Kind regards Sergiy Shyrkov David Kovář schrieb: 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="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
