cancel
Showing results for 
Search instead for 
Did you mean: 

Custom metadata - node_summary_panel.ftl

indsev
Champ in-the-making
Champ in-the-making
Hi,

Does anybody know how should I change the template "node_summary_panel.ftl" to be able to  see some custom properties of the node I'm working with? For example, to see normal content properties (author, description, etc) I just have to write: "node.properties.description". But what happen if my node is from a custom model which has more properties? I mean, I have a custom model, let's call it "myModel", and it defines some properties, for example "total". How could I see this property when I click the " i " icon? What do I have to write in "node_summary_panel.ftl"?

Thank you very much, any help will be really really really useful.
1 REPLY 1

_sax
Champ in-the-making
Champ in-the-making
Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/client/node_summary_panel.ftl

does use your custom properties, if you insert them like this:

<#if node.properties["company:TheCustomProperty"]?exists>
                  <tr><td> The custom property:</td><td>${node.properties["company:TheCustomProperty"]?date}</td></tr>
               </#if>

In this example, TheCustomProperty field would contain a date (therefore the ?date appendix). If it is just text or an association, leave it out.