You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
current page dynamic variable template should detect current page while scrolling in journals #7196
I have a template that uses the <% current page %> dynamic variable. If I go to the journal and scroll down to a date in the past and then instantiate this template, it will replace the dynamic variable with the current date, not with the date that I am actually looking at.
changed the title [-][but report] current page dynamic variable broken in journals[/-][+]current page dynamic variable template should work from journals view[/+]on Feb 6, 2023
changed the title [-]current page dynamic variable template should work from journals view[/-][+]current page dynamic variable template should detect current page while scrolling in journals[/+]on Feb 6, 2023
@danilofaria Hi. The behavior you're seeking would need to detect current page while scrolling. I would also like this but it's not implemented yet. Current page behavior is based on navigating to a page. Contributions are welcome for this
@danilofaria while this issue is still open, you can use 🏛 Full House Templates plugin to access appropriate page name from template in the Journals page:
Activity
cnrpman commentedon Jan 12, 2023
Maybe related
#6528
[-][but report] current page dynamic variable broken in journals[/-][+]current page dynamic variable template should work from journals view[/+][-]current page dynamic variable template should work from journals view[/-][+]current page dynamic variable template should detect current page while scrolling in journals[/+]logseq-cldwalker commentedon Feb 6, 2023
@danilofaria Hi. The behavior you're seeking would need to detect current page while scrolling. I would also like this but it's not implemented yet. Current page behavior is based on navigating to a page. Contributions are welcome for this
danilofaria commentedon Feb 10, 2023
@logseq-cldwalker do you have code pointers in case I or someone else would be interested in working on this?
logseq-cldwalker commentedon Feb 15, 2023
@danilofaria Sure. https://github.com/search?q=repo%3Alogseq%2Flogseq+on-scroll&type=code for the relevant listener. Use dev tools to find the html tag and then component to add the scroll listener. current page lives here
stdword commentedon May 13, 2023
@danilofaria while this issue is still open, you can use 🏛 Full House Templates plugin to access appropriate page name from template in the Journals page:
