Skip to content

How to Conditionally Render Child Django CMS Plugins

Wesley B edited this page Aug 27, 2024 · 1 revision

Example Code

    {% for plugin_instance in instance.child_plugin_instances %}
      {% if plugin_instance.plugin_type == 'LinkPlugin' %}
        <a href="{{ link }}" <!-- ... -->>
          <!-- ... -->
        </a>
      {% endif %}
    {% endfor %}