Skip to content

Button block ID references

A Button block ID reference is a feature in the Obsidian Buttons plugin that allows a button defined in a code block to be embedded or executed within other parts of a note by referencing a specific identifier.^[600-developer__tools__obsidian__obsidian-buttons-create.md]

Syntax

To create a reference, the ^button-<id> syntax is appended to the end of the button's code block.^[600-developer__tools__obsidian__obsidian-buttons-create.md] The <id> segment serves as the unique handle for that specific button instance.

Examples

  • Simple reference: A button named "Btn" can be identified by appending ^button-zcju to its block.^[600-developer__tools__obsidian__obsidian-buttons-create.md]
  • Complex configuration: References work with various button parameters. For instance, a button configured to open a GitHub repository using templater true and color blue can be assigned an ID such as ^button-forum-github.^[600-developer__tools__obsidian__obsidian-buttons-create.md]

Sources

  • 600-developer__tools__obsidian__obsidian-buttons-create.md