XF 2.2 XON MultiPrefix

Robert9

Well-known member
I try to limit an input to one prefix with:

Code:
          <xf:if is="is_addon_active('SV/MultiPrefix')">
              <xf:formrow label="{{ phrase('prefix') }}" rowtype="input">
                  <xf:macro template="public:sv_multiprefix_prefix_macros" name="select"
                            arg-type="resource"
                            arg-selected="{{ [$resource.sv_prefix_ids] }}"
                            arg-prefixes="{$resourcePrefixes}"
                            arg-name="prefix_id"
                            arg-href="{{ link('resources/prefixes', '', {'force_limit_prefix': 1}) }}"
                            arg-listenTo="#js-categoryList" />
              </xf:formrow>
          <xf:else />

But it seems, that this doenst work. I still can add more than one prefix to my form.
Any idea how to limit the form to one prefix, please?
 
I tried these ones, but i can still add more than one prefix to the form.
Code:
                              arg-href="{{ link('forums/prefixes', '', {'force_limit_prefix': 1}) }}"
                              arg-multiple="{{ false }}"
                              arg-maxTokens="{{ 1 }}"
                              arg-forumPrefixesLimit="{{ 1 }}"
 
Last edited:
Top Bottom