AnsweredAssumed Answered

Show cm:creator e cm:modifier in dataList

Question asked by mikele on Dec 11, 2018
Latest reply on Dec 18, 2018 by sanjaybandhniya

Hello,
I am a beginner of alfresco. I would need to display when creating a data list the user who creates it and the user who is editing.
I made the changes in the share-config-custom.xml file by adding these directives:

 

<config condition="btc:projectListItem" evaluator="model-type">
<forms>
<!-- Create item form -->
<form>
<field-visibility>
<show id="btc:projectName" />
<show id="btc:clientName" />
<show id="btc:contactPerson" />
<show id="cm:modifier" />

<show id="cm: creator" />
</field-visibility>

 

<config condition="btc:projectListItem" evaluator="node-type">
<forms>
<!-- Create item form -->
<form>
<field-visibility>
<show id="btc:projectName" />
<show id="btc:clientName" />
<show id="btc:contactPerson" />
<show for-mode="view" id="cm:creator" />
<show for-mode="view" id="cm:modifier" />
</field-visibility>

 

the creator and modifier fields are shown to me in read-only format and are empty

 

Someone could tell me if we can do this from the file share-config-custom?

 

 

has anyone ever used autocompler to populate the cm: creator field?

I've read the Rules autocomplete options | from the official guide Alfresco Documentation.

 

I would need to understand if I can use node.cm:creator within the xml file?

 

Someone could give me some indication?

 

Thank you very much

Outcomes