title: Alfresco Share Customization: Display author name instead of modified by
body: <p>I wanted to customize the metadata displayed for documents to show the name of the author instead of the 'modified by' information. Here is what I put into <code>share-config-custom.xml</code></p>
  
  <pre><code>&lt;config evaluator="string-compare" condition="DocumentLibrary"&gt;
      &lt;metadata-templates&gt;
          &lt;template id="customTemplate"&gt;
              &lt;line index="10" id="author"&gt;{author}&lt;/line&gt;
          &lt;/template&gt;
      &lt;/metadata-templates&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>But share doesn't respect this and default meta-data is rendered. However, if I were to edit the main config file: <code>share-documentlibrary-config.xml</code>; then the author's name is displayed. Obviously, I don't want to be editing the core files; so I would really appreciate any feedback on what the mistake in my code is?</p>
  
  <p>Also, here are some more n00b questions </p>
  
  <p>1) If I were to add some text to indicate the field, say: Author: ${author}, then it is displayed in the reverse order as- 'XYZName Author: ' Suggestions on why this is happening.</p>
  
  <p>2) say I wanted this line to be not displayed at all if the author name is blank; how would I go about doing it? From MikeH's blog post, I realize I might need to write a custom evaluator to make this happen; but my knowledge ends there; is there a working sequence of steps that I can first try and build upon.</p>
  
  <p>3) Is it possible to have different meta-data displayed for spaces and content? If possible, any guidance will be greatly appreciated.</p>
  
  <p>Thanks a lot for your time</p>