Fetching Custom Module Data from One Page to Another
{% set my_page = page_by_id(pageID) %}
{% for item1 in my_page.widget_containers %}
{% for item2 in item1.widgets %}
{% if item2.body.widget_name == "Custom Module Name" %}
{% for item in item2.body.items %}
{{ item.content }}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
Comments
Post a Comment