Using Aliases with Dataviewjs

I’d like to output aliases instead of filenames with the following Dataviewjs list.

$=dv.list(dv.pages('').where(f=>f.active == "yes").sort(f=>f.file.name).file.link)

I’ve made this work with Dataview, but can’t seem to work out the syntax for Dataviewjs.

LIST WITHOUT ID link(file.link, default(file.aliases[0], file.name))
WHERE active = "yes"
SORT file.name

Any suggestions?

2 Likes

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