Dataviewjs and tag with a property-list


In my vault there are some md-files having the tag “month” with a property list: e. g. Month: march, october, december

I can select some pages via:

dv.pages('"aFolder"').filter(page => dv.func.contains(page.Month, "december"))

But if I want to select pages over more than one month (OR disjunction: get all pages that contain Month/march OR contain Month/april) it does not work.

Does anyone have an idea?

Yeah, I found a solution! Maybe it helps someone:

		( page ) => dv.func.contains(page.Month, "March") || dv.func.contains(page.Month, "April") || dv.func.contains(page.Month, "May") 
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.