Hi. I would like to use a metadata field for a document that can have multiple values that is also able to build up an index with those multiple values.
Example: Let’s assume that we have a [datasheet document A] that can be referenced with multiple inventory items of my stock. So we have a metadata field [item_no] for [A] that needs to hold multiple values. How can this be made possible with Mayan? It would be also fine if there was one metadata field to hold a comma separated string. My goal is to create an index with multiple pointers to that document like so:
-> Item_No
-> 12345 -> Document A
-> 12346 -> Document A
-> 23456 -> Document A
-> 98787 -> Document B
What I have already tried is to use comma separated metadata values as one sting and split it to multiple values for the index like so:
{% with document.metadata_value_of.ItemNo|split:"," as numbers %}
{% for number in numbers %}
{{ number }}<br>
{% endfor %}
{% endwith %}
But this leads into a multi-line index - which does not help.
Please advice me how to achive a documents that can be connected by multiple values of the same index.
Thanks, Torsten