Display node type on share web
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2015 06:56 PM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 10:46 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2015 12:29 PM
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,
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,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2015 01:35 PM
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.
nodeService setProperty (or setProperties) to update that field.
Then display the field in the "Show Details" page.
