More flexibility in page layout (e.g. linked references on top)

This is perhaps my biggest painpoint with Logseq as of now.

I’ll start by explaining what I mean by “flexibility in page layout”. So a logseq page can have these components (as shown in the following screenshot):

  • Title
  • Page properties (e.g. alias)
  • Page content
  • Linked references
  • Hierarchy
  • Unlinked references

These components follow a fixed order in the layout:

Top
Title
Page properties
Linked references
Hierarchy
Unlinked references
Bottom

Some components may not be present, but the rest still follow this order.

Sometimes, I really hope I can:

  • Put Linked references on top of the page.
    Because I left some TODOs in daily journals, expicitly tagged with this page’s title.
  • Put Hierarchy on top of the page
    I use hierarchy to organize big topics like “C++”, and hierarchy serves as an “index” for this topic. Just like you would expect the table of content to be in the very first few pages of a book.
  • More, I don’t remember at the moment

Overall, these needs all come down to flexibility in page layout, i.e. to allow users put different components in the order they like.

There will probably be some restrictions, like title and page properties need to be on top, which is fine. But I feel people would have different preferences for how to organize the rest of the components, and there really isn’t a unified answer. If we were to add this feature, users should be allowed to configure the layout on a per page basis.

I remember this topic (specifically, put linked references on top) have been brought up several times on Discord. But I searched Discuss/GitHub, and didn’t find any feature request for it. I would really hope this could be added to Logseq one day, which shall hugely improve usability and empower more ways of using the software.

I can’t agree more. I also have some pages with a similar structure. Currently, I had to manually list all sub-pages at the top of my note.

IMHO it would be great if logseq provides a few macros like #list_hierarchy, providing such flexibility in the layout

1 Like

Use macro {{namespace C++}}

2 Likes

It would also be nice to have references, page properties etc in a second column if there is enough horizontal space (think about Wikipedia right sidebar that appears at top on mobile).

1 Like

I’d also really like this…

How precisely should I use this macro? Insert in some config file? Or on the page? And what should I insert?

Sorry for stupid question (I’m a Logseq newbie). I would really appreciate Your help :slight_smile:
Andy

What macro are you referring to?

I replied to the post by stdword above:
Use macro {{namespace C++}}`
I thought that may be a suggestion to solve the problem described in this thread.

Andy

You can put generated hierarchy to any place on the page by just typing {{namespace C++}} to a block. C++ is just an example - a root page name from first post. You may want to use your name instead.

1 Like

many thanks, I did it and that works :slight_smile:

Is this documented somewhere? I would like to check if there are other keywords

Me too) If you find a link share it with us please!

What do you think of the following idea?

General settings for all pages

Linked references:   Top/Bottom/None
Unlinked references: Top/Bottom/None
Namespace:           Top/Bottom/None
Page graph:          Top/Bottom/None

Commands for more flexibility when choosing “None” for some of the above settings

For current page:

{{linked-references}}
{{unlinked-references}}
{{namespace list}}
{{namespace breadcrumb}}
{{page-graph}}

For an another [[page]]:

{{linked-references page}}
{{unlinked-references page}}
{{namespace list page}}
{{namespace breadcrumb page}}
{{page-graph page}}
1 Like

I like the idea of special commands, but I wonder where do you want to put the general settings?

Three dots menu on top-right > Settings > Editor ?

This works, Thank you very much.