'Add to Database' question

This post was last updated for 396 days ago, and the information may already be changed

So far I'm enjoying SiYuan the most out of available PKM tools. Great job!

Recently, I noticed there is a functionality on a block "Add to database". When I click it, it adds the block to a selected database, but all the columns are empty. I am wondering what are the use cases for this feature? I was wondering if I can add to a database that will automatically fill in data in table with information from the sub-blocks from the added block.

Thank you in advance for the response!

With regards,

Eric

    Solution
    • WanChen

      You may need template columns

      recording.gifimage.png

    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 ...
    • revachol via Linux

      Thank you! That works.

    • MiscReply
    • revachol via Linux

      If I set ".action{ .title}" as the template value, the column will be populated with the value of another column named "title" if it exists. It doesn't retrieve the value of the document title though which is what I would like to achieve. E.g., in the example below I would like for the text "Programming" to appear in the column "Template" because "Programming" is the document the "Example database entry" was inserted from. That doesn't work, however. Thanks for your help so far, though. screenshot.png

      screenshot.png

      1 Reply
    • WanChen

      There should be no space between “.action” and “{ .title}”.

      1 Reply
    • Eric via Ubuntu
      Author

      Those are great answers, thanks. I was looking for this.

      Just one more thing remains though...

      Can I display block's attributes inside of it?

    • Visit all replies