Awesome Open Source
Awesome Open Source

Twig Portal plugin for Craft CMS

Adds a portal tag to Twig, to render DOM anywhere in the document.


Twig Portal is available in the Plugin Store. You can also install the plugin manually from the command line with the following commands.

composer require carlcs/craft-twigportal
php craft plugin/install twig-portal



    {% block content %}
    {% endblock %}

    {{ portalTarget('modals') }}


{% extends '_layout' %}

{% block content %}
    {{ include('_component') }}
{% endblock %}


{% portal 'modals' %}
    <p>This will be rendered where the modals portal target function is located.</p>
{% endportal %}



Alternatives To Craft Twigportal
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (285,994
Plugin (113,841
Content Management System (13,991
Dom (10,541
Twig (3,363
Craftcms (2,660
Craft Plugin (412