Custom Fields
Support MB Views Mb settings not rendered in views

  • Creator
  • #18966
    Resolved Yoann Aubry


    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)
  • Author
  • #18980
    Long Nguyen


    Thank you for contacting us.

    I’m going to check it out and let you know later.

    Long Nguyen


    A new update has been released, please update MB AIO to the new version 1.11.3 or MB Views extension v1.1.1 to check it out.

    Let me know how it goes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
grid gear info copy caret-up caret-down trash