Allow handling multiple pages in the pages field

This commit is contained in:
Flavio Copes
2016-03-20 15:33:36 +01:00
parent 174228a354
commit a545d04a9c

View File

@@ -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 %}