Mb settings not rendered in views

Support MB Views Mb settings not rendered in viewsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18966
    Yoann AubryYoann Aubry
    Participant

    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 ?

    #18980
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for contacting us.

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

    #19092
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.