cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] How make the association navigable ?

gianmere
Champ in-the-making
Champ in-the-making
In Alfresco Share, I want to make the association between documents navigable.
I've used this code in share-config-custom.xml:

<config evaluator="node-type" condition="ws:article">
       <form>
          <appearance>
            <field id="ws:relatedArticles">
                        <control template="/org/alfresco/components/form/controls/association.ftl">
                              <control-param name="displayMode">items</control-param>
                              <control-param name="showTargetLink">true</control-param>
                              <control-param name="allowNavigationToContentChildren">true</control-param>
                        </control>
            </field>
         </appearance>
       </form>
</config>

This don't work.
What is it wrong ?
2 REPLIES 2

gianmere
Champ in-the-making
Champ in-the-making
I think that I was not very clear in explaining my problem, so I try again.
In Alfresco Share, I can link a document to another simply accessing the page to change the properties.
But when I view the properties page, I can only see the titles of linked documents.
I know that I can configure the "association.ftl" template (responsible for displaying linked documents) to show that linked documents as navigable link (as suggested here https://forums.alfresco.com/en/viewtopic.php?f=4&t=42934).

So I insert the following code in the file share-config-custom.xml (in the path <tomcat_home>/shared/classes/alfresco/web-extension):

<config evaluator="node-type" condition="ws:article">
<form>
<appearance>
<field id="ws:relatedArticles">
<control template="/org/alfresco/components/form/controls/association.ftl">
<control-param name="displayMode">items</control-param>
<control-param name="showTargetLink">true</control-param>
<control-param name="allowNavigationToContentChildren">true</control-param>
</control>
</field>
</appearance>
</form>
</config>

But this don't work.
I think the problem is 'condition="ws:article"' and/or 'id="ws:relatedArticles"'.
I've found the name of the types using Node Browser in the Admin Console.
What's wrong ?

gianmere
Champ in-the-making
Champ in-the-making
Solved !!!
I just forgot the tag <forms>:

<config evaluator="node-type" condition="ws:article">
<forms>
<form>
<appearance>
<field id="ws:relatedArticles">
<control template="/org/alfresco/components/form/controls/association.ftl">
<control-param name="displayMode">items</control-param>
<control-param name="showTargetLink">true</control-param>
<control-param name="allowNavigationToContentChildren">true</control-param>
</control>
</field>
</appearance>
</form>
</forms>
</config>
Getting started

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.