mirror of
https://github.com/sophokles187/data-cards.git
synced 2026-07-22 12:30:26 +00:00
2.9 KiB
2.9 KiB
Getting Started with DataCards
Table of contents
Installation
Requirements
- Obsidian v0.15.0+
- Dataview Plugin
Installation Methods
Method 1: Community Plugins
Note
: DataCards is not yet available in the Community Plugins store. Please use BRAT or manual installation until then.
- Open Obsidian Settings
- Go to Community Plugins
- Click "Browse" and search for "Data Cards"
- Click "Install", then "Enable"
Method 2: BRAT Plugin
- Install the BRAT plugin through Community Plugins
- Open BRAT settings in Obsidian
- Click "Add Beta Plugin"
- Enter the DataCards repository URL:
https://github.com/Sophokles187/data-cards - Click "Add Plugin"
- Enable DataCards in Community Plugins settings
Method 3: Manual Installation
- Download the latest release from the releases page
- Download these files:
main.jsmanifest.jsonstyle.css
- Navigate to your Obsidian vault's
.obsidian/plugins/directory - Create a new folder named
data-cards - Copy the downloaded files into the
data-cardsfolder - Enable the plugin in Obsidian's Community Plugins settings
Basic Usage
Create a datacards code block with a Dataview query:
TABLE author, rating, genre FROM #books
SORT rating DESC
This will automatically render the results as cards using the default settings.
Your First DataCards Block
- Make sure both Dataview and DataCards plugins are enabled
- Create a new note or open an existing one
- Start a new code block with three backticks followed by
datacards - Write a Dataview query
- End the code block with three backticks
- Preview your note to see the cards
That's it! Your Dataview results will now display as beautiful cards.
Customizing Cards
You can customize your cards by adding settings after your query:
TABLE author, rating, genre, cover FROM #books
SORT rating DESC
// Settings
preset: portrait
imageProperty: cover
Settings are added after your query, following a line with // Settings. Each setting is specified as key: value on a new line.
Settings Reference
For a complete list of all available settings and their options, refer to the Settings Reference page.
This reference includes:
- All available settings with descriptions
- Default values
- Available options for each setting
- Example usages
You can access this reference at any time to find the exact setting you need.