<config evaluator="aspect-name" condition="aspct1:expAspct1">
<property-sheet>
<show-property name="aspct1:numexpediente"/>
<show-property name="aspct1rovincia"/>
<show-property name="aspct1:anio"/>
<show-property name="aspct1:tipodocu"/>
</property-sheet>
<navigation>
<!– navigation del crear Documentos aspct1–>
<override from-view-id="/jsp/content/add-content-dialog.jsp" to-view-id="/jsp/extension/documentos/aspct1/crear_documento/addAspct1ContentDialog.jsp" />
<override from-outcome="addContent" to-view-id="/jsp/extension/documentos/aspct1/crear_documento/addAspct1ContentDialog.jsp" />
</navigation>
</config>
<config evaluator="aspect-name" condition="aspct1:expAspct1">
<navigation>
<override from-outcome="addContent" to-view-id="/jsp/extension/documentos/aspct1/crear_documento/addAspct1ContentDialog.jsp" />
</navigation>
</config>
La otra regla que has añadido no entiendo para qué está…pero en principio con esto se le dice que si el nodo tiene el aspecto tuyo y se lanza un addContent, debería ir a tu jsp…<r:permissionEvaluator value="#{NavigationBean.currentNode}" allow="CreateChildren" id="eval2">
<a:actionLink value="#{msg.add_content}" image="/images/icons/add.gif" padding="2" action="addContent" actionListener="#{AddContentDialog.start}" style="white-space:nowrap" id="link3" rendered="MiEvaluador.NoTieneAspecto"/>
<a:actionLink value="#{msg.add_content}" image="/images/icons/add.gif" padding="2" action="addContentPersonal" actionListener="#{MiAddContentDialog.start}" style="white-space:nowrap" id="linkPersonal" rendered="MiEvaluador.TieneAspecto"/>
</r:permissionEvaluator>
Cosas malas de esto: Tocas el jsp que viene por defecto en Alfresco, por lo que habría que ir con ojo en cambios de veriones futuras.Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.