tags in Book template get overwritten by plugin
wealthychef1 opened this issue · 2 comments
wealthychef1 commented
- The Plugin is up to date
- Obsidian is up to date
Describe the bug
I am using a template for MediaDB Books queries.
When I search a book, the tag gets omitted.
---
aliases:
tags:
- books/notes/mine
cssclasses:
- centerImg
desire:
recommender:
plot: test plot
something:
- else
---
# Book Template
## Document Info
- created:: <% "[[" + tp.date.now("YYYY-MM-DD") + "]]" %>
- modified:: <% "`=this.file.mtime`" %>
- These are my freehand notes.
- For auto-generated annotations, see <% "[[Knowledge/Books, Programs and People/ibook/" + tp.file.title + "]]" %>
## Overview
## My Book Notes
To Reproduce
- copy my template or put tags in any template you are using with MediaDB
- execute a search
- the tag will be replaced with "MediaDB/book" or whatever.
Expected behavior
I'm hoping that "mediaDB/book" gets appended to my tags in my template.
Screenshots
This movie demonstrates the behavior with my template.
Occurs on
- Windows
- macOS
- Linux
- Android
- iOS
Plugin version
0.6.0
Additional context
ltctceplrm commented
The best solution for this is to disable the default tags for books in MediaDB and only use your own template for the tags
I do this for the properties that I want more control over and it works great. So in your case if you want to keep both tags you disable it in mediadb and change your template to include this
tags:
- books/notes/mine
- MediaDB/book
wealthychef1 commented
OK that will work! Thanks