How is primary key tied to document title?

Hi everyone. I'm currently transferring a lot of items from another tool to siyuan and there is one thing I don't understand regarding databases.

In a lot of cases my goal is to have documents as database entries that then have database properties.

When the document title changes, the primary key should change too,

Test 1 (works as intended)

Changing the page title

To reproduce, create a new page out of a primary key via "more" -> "New Doc"

Screenshot20260131at23.05.372x.png

Change title of the "Entry Three" in the document directly

Screenshot20260131at23.07.192x.png

this will trigger a change in the database primary key

Screenshot20260131at23.07.502x.png

Works like I expected.

Test 2 (behavior I don't understand)

Changing the primary key text in the database

Screenshot20260131at23.10.422x.png

When I change the primary key text in the database, it won't update the page title.

Screenshot20260131at23.11.072x.png

and the "reverse connection" (changing the document title) doesn't change the database entry title anymore.

Which makes it so that if I wanted to change it again, I always have to change it at two places.

My workaround is to never try to change the primary key directly. I'm not sure if this is an intended bahavior, so I'm posting it here as a question.

    Solution
    • 88250

      Similar to references/hyperlinks, the text of primary keys is also divided into static anchor text and dynamic anchor text. If you modify it manually, it will become static anchor text and will not change with the document title.

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...
    • 88250

      Similar to references/hyperlinks, the text of primary keys is also divided into static anchor text and dynamic anchor text. If you modify it manually, it will become static anchor text and will not change with the document title.

      1 Reply
    • itsamemarkus
      PRO Author

      thank you! Is there a way to get them "in sync" again?

      1 Reply
    • 88250 1

      Simply deleting the text from the database will restore the dynamic anchor text.