cancel
Showing results for 
Search instead for 
Did you mean: 

child id

seifb
Champ in-the-making
Champ in-the-making
i use webscripts of alfresco to get the tree of RMSite but i have problem with the id of children

this is my webscripts Document :



<#list children as child>
   <#if child.baseType.id == "cmis:folder">
    
      <items>
         <link>
            "http://localhost:8080${url.serviceContext}${url.match}?id=${child.id?url}"
         </link>
         <name>
            ${child.name?xml}
         </name>
         <id>
            ${child.id}
         </id>
      </items>
    </#if>
  </#list>


in the id zone it return this : "id": "workspace://SpacesStore/1c737bc9-0e75-447f-9c1b-eea18e4e1803",

how i can take just the id of the children folder ( 1c737bc9-0e75-447f-9c1b-eea18e4e1803 )  ???
2 REPLIES 2

malliswar
Champ in-the-making
Champ in-the-making
hii

   there are some built-in String functions supported by ftl format files

refer to this link—-http://freemarker.org/docs/ref_builtins_string.html

and  i think you can have the child-id only by using some of string functions like— split,substring,

seifb
Champ in-the-making
Champ in-the-making
thank you it's work ^__^