Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template error when using watched and personalRating in movie notes #109

Open
2 tasks done
btbristow opened this issue Oct 30, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@btbristow
Copy link

  • The Plugin is up to date
  • Obsidian is up to date

Describe the bug
When I try to insert {{watched}} or {{personalRating}} in a movie note, I get:
{{ INVALID TEMPLATE TAG - object undefined }}

I can see these are being added to my metadata with values of "false" and "0" respectively, but I don't know how to add them to the body of a movie note.

Can you give me an example of how to use these variables in the note body and the YAML? If this is a bug, it is only a documentation bug, as I don't think docs are written yet. Thanks!

Occurs on

Windows
iOS

@btbristow btbristow added the bug Something isn't working label Oct 30, 2023
@ltctceplrm
Copy link
Contributor

Hi there, I don't know if you still have this issue almost a year later but I wanted to let you know that if you use templater this bug doesn't happen, instead of {{watched}} or {{personalRating}} you'd use <% tp.frontmatter.watched %> or <% tp.frontmatter.personalRating %>

I tried find why this bug happens but I believe it's a problem with obsidian templates and not this plugin.

@mProjectsCode
Copy link
Owner

mProjectsCode commented Aug 21, 2024

I guess this is due to those properties being handled differently from the rest. (They are not plain props on the models)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants