mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-03-24 21:40:06 +01:00
Allow handling multiple pages in the pages field
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
{% for page in pages.children %}
|
||||
{% if page.routable() or field.show_all %}
|
||||
<option {% if page.route == value %}selected="selected"{% endif %} value="{{ page.route }}">
|
||||
<option {% if page.route == value or (field.multiple and page.route in value) %}selected="selected"{% endif %} value="{{ page.route }}">
|
||||
{{indent}} {{ page.menu }}
|
||||
</option>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user