# Mapping colleciton\_path

**URL:** <https://forum.zotlit.com/t/mapping-colleciton-path/82>\
**Category:** Feature requests\
**Created:** [August 6, 2026, 10:18am UTC](https://forum.zotlit.com/t/mapping-colleciton-path/82 "2026-08-06T10:18:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [August 6, 2026, 10:18am UTC](https://forum.zotlit.com/t/mapping-colleciton-path/82/1 "2026-08-06T10:18:27Z")

</div>

### Use case or problem

I would like to map all folders in the collection\_path in Zotero. This is no longer possible in V2, as the plugin treats this as a two-dimensional array and does not allow it to be flattened.

Example:  
If a document is in these collections:

- Project1/Subproject1/Phase1
- Project2/Background/Topic1

Then I would like to have the properties be:

```auto
Collections:
- Project1
- Subproject1
- Phase1
- Project2
- Background
- Topic1

```

Instead, if I use `zt.collections | map: "path"` then it creates this:

```auto
  - - Project 1
     - Subproject1
     - Phase1
  - - Project2
     - Background
     - Topic1

```

The result is similar when using `zt.collections | collections_path | join: "\n- "`

### Proposed solution

Make it possible to flatten these arrays or to have a variable that includes a list of all folders of the different paths.

### Current workaround (optional)

I just use `zt.collections | map: "name"` which unfortunately gives me less properties.

### Related feature requests (optional)

_No response_

P.S. Is there a way to support this project, buy a coffee or donate? ZotLit hugely shapes my PhD and completely structures my work. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://forum-files.zotlit.com/original/1X/e4d94e69c54a677f10de236dd50dd33ee9459278.png) [@system](https://forum.zotlit.com/u/system)\
**Post date:** [August 21, 2026, 9:21am UTC](https://forum.zotlit.com/t/mapping-colleciton-path/82/2 "2026-08-21T09:21:08Z")

</div>

I found a workaround by joining the paths into a string and then splitting them up again. Not elegant, but it works.

`zt.collections | map: "path" | join: "," | split: ","`
