Replies: 1 comment 3 replies
-
It is not breaking to support these use cases (since they don't work at all right now), though my concern is that the more intuitive behavior for a list of links would be to map each of them to their metadata, instead of treating them like incoming/outgoing links. Maybe it is worth adding a generic |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes users would transliterate
FROM [[#]]
intodv.pages(dv.current().file.link)
, which doesn't work and would require a+ ""
to coerce into string. Perhapsdv.pages
could just accept the three kind of link-related fields from a page object (by doing a type check and then just translating the link to appropriate string?):.file.link
would behave as with DQL, i.e. use all files linking into the page as source. (this should be reasonable since.file.name
would already select the file itself and is unambiguous).file.inlinks
would behave just like the above..file.outlinks
would behave likeFROM outgoing()
and use all files linked from current page as source.Arguments could be made that these behaviors are non-obvious. I believe as the two latter fields are arrays, they wouldn't be expected to behave at all in
dv.pages
anyway, so there shouldn't be anything broken by this sort of change.Just a small thought.
Beta Was this translation helpful? Give feedback.
All reactions