Discussion:
[Mayan EDMS: 2236] How to set template for metadata lookup?
Lin Pro
2018-01-02 20:03:55 UTC
Permalink
Hi
Please find attached a screenshot with an attempt to do a lookup table for
metadata in Mayan EDMS.
The goal is to have a pull down menu of metadata values. The way it has
been achieved in the screenshot is that the values are entered with commas
separating them.
Is this the only way to do that?

The instruction for the box says:
"Enter a template to render.
Must result in a comma delimited string.
Use Django's default templating language
(https://docs.djangoproject.com/en/1.7/ref/templates/builtins/).
Available template context variables: {{ groups }} = "All the groups." {{
users }} = "All the users."

Please give an example of how to implement that?
The instruction sounds like out of context to me. What groups? what users?
I need metadata values here ...


regards
Lin
--
---
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matthias Löblich
2018-01-03 09:32:33 UTC
Permalink
Hi,
the way shown in the screen shot should work.

If you want to have the mayan Full User names in the lookup list just add
{{ users }} to your lookup definition e.g.:

Internet,Phone,{{ users }},...


Same for {{Groups}}

br
Matthias
Post by Lin Pro
Hi
Please find attached a screenshot with an attempt to do a lookup table for
metadata in Mayan EDMS.
The goal is to have a pull down menu of metadata values. The way it has
been achieved in the screenshot is that the values are entered with commas
separating them.
Is this the only way to do that?
"Enter a template to render.
Must result in a comma delimited string.
Use Django's default templating language (
https://docs.djangoproject.com/en/1.7/ref/templates/builtins/).
Available template context variables: {{ groups }} = "All the groups." {{
users }} = "All the users."
Please give an example of how to implement that?
The instruction sounds like out of context to me. What groups? what users?
I need metadata values here ...
regards
Lin
--
---
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...