- This topic has 2 replies, 2 voices, and was last updated 11 months, 4 weeks ago by .
-
Topic
-
Hi,
I had to display a setting value from a mb settings page in a mb view.
The code generated by mb views doesn’t render anything (for all type field i have tested).
Here the code generated by mb views :
{% for item in site.pencil.doc_reglementaire %} <a href="{{ item.url }}">{{ item.title }}</a> {% endfor %}
fortunately i have found a workaround with mb function :
{% set doc_reglementaire = mb.rwmb_meta( 'doc_reglementaire', {'object_type' : 'setting'}, 'pencil' ) %} {% for item in doc_reglementaire %} <a href="{{ item.url }}">{{ item.title }}</a> {% endfor %}
Is it a known issue ? Have i missed something ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.