cancel
Showing results for 
Search instead for 
Did you mean: 

Display only a specific space and its childs

efestione
Champ in-the-making
Champ in-the-making
Hi,
thank you for this useful component.
Is it possible to display only a specific space and all its child?
1 REPLY 1

sathish
Champ in-the-making
Champ in-the-making
Hi,

    I was able to get it working by making the following changes in “item.get.js”
    <Alfrescoinstalation>\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\store\item.get.js
    

var pathSegments = url.match.split("/");
// modifications by Tejas begins
var user_home= userhome.properties.name;
if(url.templateArgs.id == 'children')
     url.templateArgs.id = 'Company Home/'+user_home;
// modifications by Tejas ends
    var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/"));

     You could change the “url.templateArgs.id” to appropriate spaces. The above example leads to the user home space.
     Hope this was usefull.

Sathish
Senior Consultant
Tejas Technologies