Hi, Right now there is no way to customize how the metadata values are rendered via the UI or an user option.
You would need to manually customize the way they are presented by changing the return value of the function def get_metadata_string(document) The function is located here: https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/metadata/api.py#L103 And here is where the function gets associated with the Document as a valid column: https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/metadata/__init__.py#L84 You can also make your own widget function and associated it, replacing the stock one. If you want to add HTML markup be sure to pass the resulting string via Django's mark_safe ( https://docs.djangoproject.com/en/1.6/ref/utils/#django.utils.safestring.mark_safe) otherwise Django will escape the HTML. Here is the Tag widget as an example: from django.utils.safestring import mark_safe def single_tag_widget(tag): tags_template = [] tags_template.append('<ul class="tags">') tags_template.append(get_single_tag_template(tag)) tags_template.append('</ul>') return mark_safe(''.join(tags_template)) Full tag widget code: https://gitlab.com/mayan-edms/mayan-edms/blob/master/mayan/apps/tags/widgets.py#L24 Hope this helps until/if we implement metadata widget customization. --Roberto On Tuesday, August 25, 2015 at 2:17:15 PM UTC-4, Bino G wrote: > > Hello, > > The default display of the metadata information of the documents in mayan > in the document list/recent document list are separated by commas in one > line. Is it possible to customize the display so that the Metadata > information is listed per new line. I would also like to include html tags > e.g. bold fonts so that it will look much more organized. > > A pointer to a direction would be a great help. Thank you ! > > Bino > -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
