🔵 🔵 🔵


Primary

၊၊||၊|။

dv.pages() ⚬|Documentation|1st|20251021151225-00-⌔

Codeblock Reference - Dataview#dvpagessource

dv.pages(source)

Take a single string argument, source, which is the same form as a query language source. Return a data array of page objects, which are plain objects with all of the page fields as values.

dv.pages() => all pages in your vault
dv.pages("#books") => all pages with tag 'books'
dv.pages('"folder"') => all pages from folder "folder"
dv.pages("#yes or -#no") => all pages with tag #yes, or which DON'T have tag #no
dv.pages('"folder" or #tag') => all pages with tag #tag, or from folder "folder"

Note that folders need to be double-quoted inside the string (i.e., dv.pages("folder") does not work, but dv.pages('"folder"') does) - this is to exactly match how sources are written in the query language.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •