grav/system
Ole Vik 09e10d16ea [RFR] Iterable Taxonomy (#2690)
* Allow naive iterables in Taxonomy

Currently, Taxonomy only supports one-level arrays in a Page's Taxonomy, so this works:

```
---yaml
title: XMark Test
taxonomy:
  categories: academic
  tags: [xmark, link]
  author:
    - "Ole Vik"
    - "Ole Vik"
    - "Ole Vik"
---
```

But this does not:

```yaml
---
title: XMark Test
taxonomy:
  categories: academic
  tags: [xmark, link]
  author:
    - "Ole Vik"
    - "Ole Vik"
    - "Ole Vik"
    - name: "Ole Vik"
      email: "git@olevik.net"
      url: "https://olevik.me"
---
```

The change allows another level, to accommodate cases where the Taxonomy contains arrays of strings or hashes. This could potentially be expanded to recursively allow any amount of nesting of Taxonomies.

In both the naive and expanded case, are there implications for finding and filtering by Taxonomies? I've not checked if that recurses through values as I'm not currently at my desktop, but I imagine more changes would be necessary.

* Recursively iterate taxonomy fields

* Accommodate findTaxonomy() by reducing to dot-notation

* Remove superfluous conditional
2019-10-17 05:52:37 -06:00
..
assets Update Core to follow PSR-2 standard 2019-10-15 13:33:48 +03:00
blueprints Enabled preview for pages 2019-10-16 14:01:48 +03:00
config Added a new sanitize_svg security config option [default: true] 2019-09-03 12:07:47 -06:00
images/media Missing thumbnail throwing error when adding .json file via media 2017-09-25 13:21:15 -06:00
languages Update languages 2019-05-08 14:22:47 -06:00
pages Refactored onPageNotFound event to fire after onPageInitialized 2016-09-08 12:30:34 -06:00
src/Grav [RFR] Iterable Taxonomy (#2690) 2019-10-17 05:52:37 -06:00
templates Improved Flex to support custom site template paths 2019-10-10 16:16:54 +03:00
defines.php prepare for beta.10 release 2019-10-03 14:31:28 -06:00
install.php Update Core to follow PSR-2 standard 2019-10-15 13:33:48 +03:00
router.php Merge branch 'develop' into 1.7 2019-08-18 09:54:50 -06:00