Skip to content
Discussion options

You must be logged in to vote

You can access current file metadata via dv.current(). You can access the file name via dv.current().file.name, and the current (immediate parent) folder via dv.current().file.folder. Your query could then look something like this, generically:

const pages = dv
	.pages(`'${dv.current().file.folder}'`)
	.filter(page => page.file.name !== dv.current().file.name);

dv.table(["file"], pages.map(page => [page.file.link]));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nkoder
Comment options

Answer selected by nkoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants