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 share-config-custom.xml
<config evaluator="string-compare" condition="DocumentLibrary">
<metadata-templates>
<template id="customTemplate">
<line index="10" id="author">{author}</line>
</template>
</metadata-templates>
</config>
But share doesn't respect this and default meta-data is rendered. However, if I were to edit the main config file: share-documentlibrary-config.xml; 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?
Also, here are some more n00b questions
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.
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.
3) Is it possible to have different meta-data displayed for spaces and content? If possible, any guidance will be greatly appreciated.
Thanks a lot for your time