Skip to content

current page dynamic variable template should detect current page while scrolling in journals #7196

Open

Description

@danilofaria

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.

Activity

  1. moved this to 🗄 Backlog in :Logseq/Issue-Trackeron Jan 1, 2023
  2. cnrpman commented on Jan 12, 2023

    @cnrpman
    Collaborator

    Maybe related
    #6528

  3. 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
  4. added
    :type/enhancement
    on Feb 6, 2023
  5. 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
  6. logseq-cldwalker commented on Feb 6, 2023

    @logseq-cldwalker
    Collaborator

    @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

  7. danilofaria commented on Feb 10, 2023

    @danilofaria
    Author

    @logseq-cldwalker do you have code pointers in case I or someone else would be interested in working on this?

  8. logseq-cldwalker commented on Feb 15, 2023

    @logseq-cldwalker
    Collaborator

    @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

  9. stdword commented on May 13, 2023

    @stdword
    Contributor

    @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:

  10. added
    duplicate
    and removed
    duplicate
    on May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    :type/enhancementjournalstemplate

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions