• monty@lemmy.one
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Im trying to figure out how to get this to work, but can’t find the right syntax. Anyone have any luck?

    • Alex L@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Assuming you tag the top of an index as [[index]]:

      1. Current page in indexes:

        {{query (and [[index]] <%current page%> (not (page <%current page%>)))}}


      1. Indexes present in the current page:

        {{query (and [[index]] (page <%current page%>))}}


      1. Notes about the current page:

        {{query (and [[Note]] <%current page%>)}}


      1. Current page as “author” of something:

        {{query (property author <%current page%>)}}

      • monty@lemmy.one
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Still having some trouble. Maybe it would help if I described my use case. I have a page for each employee where I’ll take notes in my 1 on 1 meetings with them. In those meetings I’d like to be able to see any open TODO or WAITING items I have with them. When I saw this post I thought I could create a page called “Current Page Open”. When I open the employee page in the main area and the “Current Page Open” on the right, the right would show me the list of TODO and WAITING that reference that employee. These tasks are typically entered in the Journal with a #employee in the block, and not directly in the employee page.

        • Alex L@programming.devOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Does this work in the right sidebar for you? For me it does:

          {{query (and <%current page%> (todo todo doing waiting))}}

          P.S. delete the word “doing” if you don’t want to see the DOING tasks.