Hi All,
I have the birthday query in the journal page (config.edn).
But recently the :group-by-page?
function is not working anymore.
This is the code
{:title
[:h4 "🎂 " [:code "Birthdays"]]
:inputs [:today]
:query [:find (pull ?b [*])
:in $ ?today
:where
[?b :block/properties ?prop]
[(get ?prop :birthday) ?birth]
[?j :block/journal-day ?birthint]
[?j :block/original-name ?jname]
[(contains? ?birth ?jname)]
[(str ?birthint) ?birthstr]
[(subs ?birthstr 4) ?birthmd]
[(str ?today) ?td]
[(subs ?td 4) ?todaymd]
[(= ?birthmd ?todaymd)]
]
:breadcrumb-show? false
:group-by-page? true
:result-transform :sort-content
:collapsed? false
}
Anyone knows why?
How to fix it?
Thanks
thanks. @mentaloid @Siferiax
even removing :result-transform
I still do not see the page name
{:title
[:h4 "🎂 " [:code "Birthdays"]]
:inputs [:today]
:query [:find (pull ?b [*])
:in $ ?today
:where
[?b :block/properties ?prop]
[(get ?prop :birthday) ?birth]
[?j :block/journal-day ?birthint]
[?j :block/original-name ?jname]
[(contains? ?birth ?jname)]
[(str ?birthint) ?birthstr]
[(subs ?birthstr 4) ?birthmd]
[(str ?today) ?td]
[(subs ?td 4) ?todaymd]
[(= ?birthmd ?todaymd)]
]
:breadcrumb-show? false
:group-by-page? true
:collapsed? false
}
The page names are “test” and “test 2”
It works to me:
Federico_Frosini:
recently
What did you do recently? Plugins? Themes?
No new plugins I use only 2 plugins and I have no special themes and I have the same issue on mobile.
For other query the group by page seems to work just fine ?!??
@mentaloid I added
[?b :block/page ?p]
and now it is working fine…strange