# V2_Tag_Filter

    {% set tagFilter = module('V2_Tag_Filter', null, {
      bid: null,
      cid: null,
      tag: TAG,
      field: null,
    }) %}

    {% if tagFilter.choiceTags or tagFilter.selectedTags %}
      <div>
        {{ include('/admin/module/setting.twig', { moduleInfo: tagFilter.moduleInfo }) }}
        {% if tagFilter.selectedTags %}
        <h3>選択されているタグ</h3>
        <ul class="acms-list-group" aria-label="タグ候補">
          {% for tag in tagFilter.selectedTags %}
            <li class="acms-list-group-item">
              <a href="{{ tag.url }}">#{{ tag.name }}</a>
            </li>
          {% endfor %}
        </ul>
        {% endif %}

        {% if tagFilter.choiceTags %}
        <h3>タグを絞り込む</h3>
        <ul class="acms-list-group" aria-label="タグ候補">
          {% for tag in tagFilter.choiceTags %}
            <li class="acms-list-group-item">
              <a href="{{ tag.url }}">#{{ tag.name }}</a>
            </li>
          {% endfor %}
        </ul>
        {% endif %}
      </div>
    {% endif %}