cancel
Showing results for 
Search instead for 
Did you mean: 

dashlet to show all the spaces under the home space

mialfresco
Champ in-the-making
Champ in-the-making
Hi,
I'm developing a dashlet which shows all the sapces under the user's root home.
For that i have developed following dashlet.

<table>
   <#list userhome.children as child>
      <#if child.isContainer>
         <tr>
             <td><img src="/alfresco${child.icon32}"></td>
             <#assign ref=child.nodeRef>
             <#assign workspace=ref[0..ref?index_of("://")-1]>
             <#assign storenode=ref[ref?index_of("://")+3..]>
             <td><a href=" ">
        <b>${child.properties.name}</b></a> (${child.children?size})</td>
         </tr>
      </#if>
   </#list>
</table>

everithing fine now i want to give the link to the folders. i.e if the user clicks on the space it takes him into the space and dispaly the files/subspaces inside that folder. i know that it is simple to give an href tag. But don't know the value for href. can anyone help me out.
6 REPLIES 6

mialfresco
Champ in-the-making
Champ in-the-making
Hi Alfresco users,
Please respond to me.

mialfresco
Champ in-the-making
Champ in-the-making
if i use like below,

<a href="/alfresco/navigate/showSpaceDetails/${workspace}/${storenode}">

it is taking me into the "view details" page of the space, but i want to navigate into the space.
Please help me out it is bit urgent.

mikeh
Star Contributor
Star Contributor
You know, the wiki is a great resource with answers to a lot of these urgent queries.

If the wiki search isn't working for you, then use Google to search it instead with the "site:" qualifier.

Thanks,
Mike

mialfresco
Champ in-the-making
Champ in-the-making
Hi Mike,
Thanks for your reply.
I read that wiki(url addressability) and given the following URL as like below.
href="/alfresco/navigate/showDocDetails"
but still it is taking me to the "view details" page instead of inside the space.
I think i need to pass the nodeid dynamically? how to pass it dynamically?

mikeh
Star Contributor
Star Contributor
You're seeing the "Details" page because you're using the outcome "showSpaceDetails". As the wiki states, you need to use the "browse" outcome instead.

Mike

mialfresco
Champ in-the-making
Champ in-the-making
oh!! thanks mike now it is working like champ.