Any way of finding the childName of a folder?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:09 PM
Hi there,
I have a folder in my Company Home directory and I want to know it's childName. I have the folder's 'real name' but need it's childName so I can construct a path string to use in other methods. Anyone know how I do this? I've read that it is impossible to get the path of a Node if you only have its uuid - will I encounter a similar problem when trying to get the childName from the Node?
Thanks,
Martin BG
I have a folder in my Company Home directory and I want to know it's childName. I have the folder's 'real name' but need it's childName so I can construct a path string to use in other methods. Anyone know how I do this? I've read that it is impossible to get the path of a Node if you only have its uuid - will I encounter a similar problem when trying to get the childName from the Node?
Thanks,
Martin BG
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2006 05:13 AM
Hi
If you have the node uuid and you know the store you can build the node ref and get the path to the node via the node service. Files and Folders keep the childName and the name in sync. From the node you can get the relationship to the parent in the node service which will give you allk the information about the relationship - not just the child name 🙂
Regards
Andy
If you have the node uuid and you know the store you can build the node ref and get the path to the node via the node service. Files and Folders keep the childName and the name in sync. From the node you can get the relationship to the parent in the node service which will give you allk the information about the relationship - not just the child name 🙂
Regards
Andy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 12:18 PM
Hi,
this is definitively - and unfortunately - not true. The childNames of the Company Home and the Guest Home for example are different ({http://www.alfresco.org/model/application/1.0}company_home and {http://www.alfresco.org/model/application/1.0}guest_home).
As far as I have seen, all the application folders are treated differently: the spaces are replaced by underscores (who the hell knows why??).
So, Martin, if you want to build the path you have always to consider this. But I guess, your content will only be placed in subfolders of the Company Home. So, this is the only folder that has to be treated differently.
Best regards
Christian
[…]Files and Folders keep the childName and the name in sync.[…]
this is definitively - and unfortunately - not true. The childNames of the Company Home and the Guest Home for example are different ({http://www.alfresco.org/model/application/1.0}company_home and {http://www.alfresco.org/model/application/1.0}guest_home).
As far as I have seen, all the application folders are treated differently: the spaces are replaced by underscores (who the hell knows why??).
So, Martin, if you want to build the path you have always to consider this. But I guess, your content will only be placed in subfolders of the Company Home. So, this is the only folder that has to be treated differently.
Best regards
Christian
