cancel
Showing results for 
Search instead for 
Did you mean: 

Display node type on share web

nirajyadav
Champ in-the-making
Champ in-the-making
Hi Guys,



   How can i display node type (content type) of a node in properties on detail page on share ? I want to see type of node wc:content , wc:webroot.

Any clue ?

Thanks
Neeraj
3 REPLIES 3

art99trash
Star Contributor
Star Contributor
You could add a new field to each custom type (node-type) and use a constraint with just one value, the node type.
Or add a rule that would set the value of the node-type field whenever an object of that type is created.
Then display the new node-type field in the details page.

nirajyadav
Champ in-the-making
Champ in-the-making
In log i can see type field (type=ws:section). Cannot i print that value ?

2015-12-23 17:16:50,659  DEBUG [processor.node.NodeFormProcessor] [http-bio-8080-exec-1] Generated form: org.alfresco.repo.forms.Form@1e20e9b7 (item=[node]workspace/SpacesStore/a7cb9b8f-cda2-45f0-ab1d-ee469906f03e, type=ws:section,

art99trash
Star Contributor
Star Contributor
If you add a new property to your custom type, for example node-type, then you could use
nodeService setProperty (or setProperties) to update that field.
Then display the field in the "Show Details" page.