<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Convert link text on actionlink in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214035#M167165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Background:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have done some customisation for a customer that involved generating a unique id that we append at the end of "cm:name" for some our types. The requirement is that two nodes in the same folder should have the possibility to have the same name, since that is forbidden in Alfresco we implemented this solution and our goal is to hide the unique extension everywhere to the end user. We have managed to hide it in the navigation tree, by extending the NavigationPluginBean. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The real challenge seems to strip the id from the "browse spaces" view in browse.jsp. I have tried almost everything and are now seeking some advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;* Override the a:actionLink trying to manipulate the value parameter passed in. This failed since the value still contained #{r.name} (and not the value returned from Node.getName() which is the one I want to manipulate). &lt;BR /&gt;&lt;BR /&gt;* Override BrowseBean.getNodes(), trying to loop through all nodes manipulating the name property. However the lightweight Node class have no visible way to manipulate the name. I can only do getName &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;* Write a converter and nest it inside the actionLink-tag. This however fails since the actionLink implementation does not implement the ValueHolder interface. I even tried to implement this interface in my overridden version of the a:actionLink. I however never understod completely how to write the methods needed.&lt;BR /&gt;&lt;BR /&gt;* Nest a h&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utputText inside the a:actionLink feeding this one with my converter. The value attribute is however mandatory in a:actionLink and the corresponding &amp;lt;a href&amp;gt; is closed before the &amp;lt;/a:actionLink&amp;gt; (it is actually closed at the end of the opening actionlink-tag. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;* Tried to use the core jstl-taglib and the &amp;lt;c:set var="myNodeName" value=#{r.name}"/&amp;gt;, this seems like a bad ideas as my variable is stored in the pageContext and the jsf ones are stored in some other place (FacesContext?) Well it did not work anyway, my var was empty when I tried to use it.&lt;/UL&gt;&lt;SPAN&gt;I have not so many ideas left. Maybe writing a new tag? Overriding the RichList and at some point feed it with a overridden Node where I do the manipulation? Write a javascript onLoad method that manipulates the label of the href on the client side? Another option that I'm trying to avoid is of course to patch my Alfresco installation changing the visibility of the name field of the Node class…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 15:02:49 GMT</pubDate>
    <dc:creator>billerby</dc:creator>
    <dc:date>2010-06-22T15:02:49Z</dc:date>
    <item>
      <title>Convert link text on actionlink</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214035#M167165</link>
      <description>Background:We have done some customisation for a customer that involved generating a unique id that we append at the end of "cm:name" for some our types. The requirement is that two nodes in the same folder should have the possibility to have the same name, since that is forbidden in Alfresco we imp</description>
      <pubDate>Tue, 22 Jun 2010 15:02:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214035#M167165</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2010-06-22T15:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert link text on actionlink</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214036#M167166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are speaking of MapNode objects, it should be easy to set their name attribute by just saying&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;MapNode n = ….; &lt;BR /&gt;n.put("name", some_quirky_name);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I remember i had to overwite BrowseBeans queryBrowseNodes() method for a similar requirement (hiding some folders from users), but i had to change the methods visibilty to "protected" to allow overriding that method&amp;nbsp; :twisted: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 15:23:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214036#M167166</guid>
      <dc:creator>gyro_gearless</dc:creator>
      <dc:date>2010-06-22T15:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert link text on actionlink</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214037#M167167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gyro,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your quick reply, I will try this tomorrow.&amp;nbsp; I'm running a patched version of Alfresco, so I guess patching it again wont ruin my world &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 15:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/convert-link-text-on-actionlink/m-p/214037#M167167</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2010-06-22T15:58:10Z</dc:date>
    </item>
  </channel>
</rss>

