<?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 Setting vars for a user's home folder in share-custom-config in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254255#M207385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to change the Repository link in the header of Share to point to a users home folder. For example, instead of linking to "/share/page/repository", it'd link to "/share/page/repository#filter=path|/User%2520Homes/g/gi/gillespie/patrick.j.gillespie". I should note I'm using a home folder provider, which is why the user home isn't directly under "User Homes".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can modify the link via the share-config-custom.xml file, by modifying this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;item type="link" id="repository"&amp;gt;/repository&amp;lt;/item&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I'm unaware of how to get the path of a user's home folder from here. I noticed there are several values such as {userid} and {pageid} that are referenced, but I'm not sure where or how to create such a value. Does anyone know how I would do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 19:26:33 GMT</pubDate>
    <dc:creator>patorjk</dc:creator>
    <dc:date>2012-04-04T19:26:33Z</dc:date>
    <item>
      <title>Setting vars for a user's home folder in share-custom-config</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254255#M207385</link>
      <description>I'm trying to change the Repository link in the header of Share to point to a users home folder. For example, instead of linking to "/share/page/repository", it'd link to "/share/page/repository#filter=path|/User%2520Homes/g/gi/gillespie/patrick.j.gillespie". I should note I'm using a home folder pr</description>
      <pubDate>Wed, 04 Apr 2012 19:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254255#M207385</guid>
      <dc:creator>patorjk</dc:creator>
      <dc:date>2012-04-04T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting vars for a user's home folder in share-custom-config</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254256#M207386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi patrojk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do something similar on my instance, where I've got a header link to the logged in user's home folder, here's my markup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;item type="link" id="my-workspace" label="header.my-workspace.title" description="header.my-workspace.description" icon="replication-jobs.png"&amp;gt;/repository#filter=path|/User%2520Homes/{userid}&amp;lt;/item&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got my own label and descriptions in place, and I use the replication-jobs.png for the icon (it's just one folder in front of the other but I think it works). Then the path itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 13:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254256#M207386</guid>
      <dc:creator>bengrah</dc:creator>
      <dc:date>2012-04-06T13:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting vars for a user's home folder in share-custom-config</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254257#M207387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. Unfortunately, my case is a bit of an outlier, since I'm using a custom home folder provider which causes there to be a structure under the "User Homes" directory based on the user's last name and username. For example, this could be a possible home folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/User%2520Homes/g/gi/gillespie/patrick.j.gillespie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to get around this problem by creating a web script to get the home folder path (based on a username) and then dynamically updating the link on the client side (by adding some code to the "alfresco-template.ftl" file), but I'm not sure if this is the best solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 16:06:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254257#M207387</guid>
      <dc:creator>patorjk</dc:creator>
      <dc:date>2012-04-06T16:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting vars for a user's home folder in share-custom-config</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254258#M207388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi patrojk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds like a good enough solution. Another method you could possibly use is try and emulate how Alfresco currently creates the link, by creating your own template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you take a look in webapps/share/js/alfresco.js, and do a find on "userprofilepage" you'll see some references on how the userprofilepage link is created. I don't know enough of where to go about creating your own, but perhaps it's a starting point. As ideally what you could do is create a template which renders your user home link in the style that you have customised so far (/g/gi/gillespie/partrick.j.gillespie)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 08:11:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-vars-for-a-user-s-home-folder-in-share-custom-config/m-p/254258#M207388</guid>
      <dc:creator>bengrah</dc:creator>
      <dc:date>2012-04-09T08:11:20Z</dc:date>
    </item>
  </channel>
</rss>

