03-28-2012 10:58 AM
/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components
root@SMALF001:/opt/alfresco-4.0.d/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components# ls -ld head header people-finder
drwxr-xr-x 2 root root 4096 9 fév 09:58 head
drwxr-xr-x 2 root root 4096 28 mar 14:50 header
drwxr-xr-x 2 root root 4096 28 mar 11:40 people-finder
…
Mais je n'arrive pas à trouver dans quel fichier placer ma condition <#if user.isAdmin> … </#if>
03-29-2012 05:45 PM
<header>
<app-items>
<!– defaults: icon="{id}.png" label="header.{id}.label" description="header.{id}.description" –>
<item type="link" id="my-dashboard">{userdashboardpage}</item>
<item type="js" id="sites">Alfresco.module.Sites</item>
<item type="link" id="people">/people-finder</item>
<item type="link" id="people" permission="admin">/people-finder</item>
03-30-2012 11:22 AM
<header>
<app-items>
<item type="link" id="people" permission="admin">/people-finder</item>
</item>
</app-items>
</header>
Entre des balises telles que:<config evaluator="string-compare" condition="????">
…
</config>
Mais si c'est celà, je n'arrive pas à trouver le mot-clé pour condition="…"03-30-2012 07:22 PM
04-02-2012 06:53 AM
04-03-2012 09:01 AM
Bonjour,Bonjour,
Une balise <config> seule suffit.
Cordialement,
Charles Le Seac'h
<config>
<header>
<app-items>
<item type="link" id="people" permission="admin">/people-finder</item>
</app-items>
</header>
</config>
<config>
<header>
<item type="link" id="people" permission="admin">/people-finder</item>
</header>
</config>
An error has occured in the Share component: /service/components/head/resources.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 03030002 Failed to process template org/alfresco/components/head/resources.get.html.ftl
Server: Alfresco Spring WebScripts - v1.0.0 (Release 958) schema 1 000
Time: 3 avr. 2012 14:07:24
Click here to view full technical information on the error.
share-config.xml
<! – <item type="link" id="people">/people-finder</item>
–>
Mais là ausi le header du tableau plante de la même manière que ci-dessus…
root@SMALF001:/opt/alfresco-4.0.d# cat /opt/alfresco-4.0.d/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
<alfresco-config>
<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<!–
Whether the link to the Repository Library appears in the header component or not.
–>
<visible>true</visible>
</config>
<config>
<header>
<app-items>
<item type="link" id="people" permission="admin">/people-finder</item>
</app-items>
</header>
</config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
<connector-id>http</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
<endpoint>
<id>activiti-admin</id>
<name>Activiti Admin UI - user access</name>
<description>Access to Activiti Admin UI, that requires user authentication</description>
<connector-id>activiti-admin-connector</connector-id>
<endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
<identity>user</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
root@SMALF001:/opt/alfresco-4.0.d#
04-03-2012 09:03 AM
En fonction de la version utilisée, je suggère également la lecture des posts sur le sujet "share extensibility" sur le blog de David Draper, un de nos développeurs :Merci pour tous ces liens, je pense qu'il devient urgent que je m'y colle pour un peu mieux comprendre le produit…
http://blogs.alfresco.com/wp/ddraper/
Voir par exemples les articles suivants :
http://blogs.alfresco.com/wp/ddraper/2011/11/01/advanced-share-customization-part-1/
http://blogs.alfresco.com/wp/ddraper/2011/11/03/advanced-share-customization-part-2/
http://blogs.alfresco.com/wp/ddraper/2012/01/04/extensibilty-updates-roundup/
http://blogs.alfresco.com/wp/ddraper/2012/03/05/share-configuration-extensibility/
Ces fonctionnalités permettent de grandement simplifier la surcharge de composants Share.
J'imagine qu'ils s'appliquent à votre besoin.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.