Reputation: 73
I have a template that defines a subobject in which I define properties, including Summary Pagename={{FULLPAGENAME}}
, among others. When I then query
[[Summary Pagename::(page I'm looking for)]]
it shows me all the subobjects I expect to see, however, depending on the page I query, I sometimes get every subobject in duplicate.
In particular, if the pagename is of the form ..../Scoreboards
it displays in duplicate; however, usually the pagename will be of the form ..../Scoreboards/[something else]
and then everything works as intended.
It might be relevant that in some cases, ..../Scoreboards
will have subpages, but in others it doesn't, but regardless of whether it has subpages or not this duplication still happens.
Here's a direct link to a page showing this problem. It seems pretty weird to me, but anyone know what might be going on?
Upvotes: 2
Views: 267
Reputation: 4279
Somehow the subobject seems to reference back the page (so I think that's why changing the pagename seems to fix the issue), as if it's querying twice the same thing (I know, total weirdness I don't fully understand it either).
So browsing the properties there are no duplicates, so I changed the query using an inverse property instead to retrieve what you need. This would give you the results without duplicates:
[[-Has subobject::(page I'm looking for)]]
[[Summary MatchNo::001]]
[[SP GameNo::001]]
Upvotes: 1