Allow taxonomy field to just list one or more specific taxonomies if the taxonomies field is filled in the blueprint

This commit is contained in:
Flavio Copes
2017-05-17 14:02:00 +02:00
parent 0085d67715
commit bf0900fb52
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
1. [](#improved)
* Remove save button and save location notification on Config Info tab [#1116](https://github.com/getgrav/grav-plugin-admin/pull/1116)
* Allow taxonomy field to just list one or more specific taxonomies if the `taxonomies` field is filled in the blueprint
# v1.5.0-rc.1
## 05/16/2017

View File

@@ -1,4 +1,4 @@
{% set taxonomies = (taxonomies is null ? admin.data('config/site').taxonomies : taxonomies) %}
{% set taxonomies = (taxonomies is null ? (field.taxonomies ? field.taxonomies : admin.data('config/site').taxonomies) : taxonomies) %}
{% set parentname = field.name %}
{% for name in taxonomies %}