# Frontmatter confusion - For plugins only and yet plugins require the data

**URL:** <https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796>\
**Category:** Help\
**Created:** [March 17, 2021, 1:37am UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796 "2021-03-17T01:37:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [March 17, 2021, 1:37am UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/1 "2021-03-17T01:37:20Z")

</div>

I’m so confused.  
When the frontmatter feature first came out we got instructions about how to include aliases and tags. So I added that info to my notes (and it took a good long while).

Then in most of the frontmatter posts, it makes it quite clear that we should not include data in there, that it is exclusively for plugins. So I removed it from all my notes (and it took a good long while).

Now I want to use the DataView plugin, and it gets a lot of its information from the frontmatter. It doesn’t _create_ the frontmatter; it reads it and works with it.

But no one is going to _create_ that frontmatter for me, so I have to do it. But I’m not supposed to.

Help!

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 19, 2021, 3:04am UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/2 "2021-03-19T03:04:37Z")

</div>

Hi Lise,

Let me clarify. There are a few confusing points at play.

1. Some users had the expectation that the YAML metadata is also parsed by our link engine in search for linked or unlinked mentions. This does not happen. So if you put text there, obsidian ignores it for the purpose of linking and even search.

2. The medata HAS to be in a very specific format and if you make a mistake, it won’t work at all.

3. Since YAML is rigid, we had the idea of having the user input their data not manually (which is prone to error) but with a GUI. Neither us nor the plugin authors got to the point of writing GUIs to let user input their metadata

That being said if know what you doing and undestand the limitations/complications, go ahead:

Some relevant links

> **[YAML front matter - Obsidian Help](https://help.obsidian.md/Advanced+topics/YAML+front+matter)**
>
> Not Found File Advanced topics/YAML front matter.md does not exist.

> [@Wikilinks in YAML front matter](https://forum.obsidian.md/t/allow-links-in-yaml-front-matter-notion-like-databases-from-metadata-links-as-first-class-citizens/10052):
>
> Mod-Edit: I renamed this thread to focus on wikilinks in YAML frontmatter. The other part of the title “Notion-like databases from metadata” is already possible with Dataview, Database Folder, and all related plugins. First, I’d like to thank all contributors to Obsidian for making the absolute best knowledge management application! Over the years many applications never quite delivered what I was looking for and ideas of a better system started accumulating in my mind. The most notable idea…

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [March 19, 2021, 9:44pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/3 "2021-03-19T21:44:13Z")

</div>

@WhiteNoise, thanks for the clarification.

About tags in frontmatter. I could swear that Obsidian was reading them properly _as tags_ when entered as `tags: ["#tag1", "#tag2"]` but I just checked and they do not appear in the tag pane; nor do tags entered as `tags: [#tag1, #tag2]’ (the difference being that the latter actually auto complete).

But I guess that was your point: that anything entered in the frontmatter (except for alias) isn’t recognized by Obsidian _per se_ (for now at least), and even if it is, we should not count on it.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 19, 2021, 10:28pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/4 "2021-03-19T22:28:37Z")

</div>

> [@Lise](#):
>
> tags: [“#tag1”, “#tag2”]

This should appear in the tag pane. Autocomplete in YAML never worked.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [March 19, 2021, 10:30pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/5 "2021-03-19T22:30:55Z")

</div>

I get your frustration. Things have changed a lot with certain parts in Obsidian. I guess that’s the cost of joining earlier, however I hope you still find it worth it.

But I feel your pain, I’ve done so much manual work reformatting so many aspects of my system.

I decided to not go for tags in metadata personally, since I like the autosuggestion, but since I have notes that do have tags in metadata, those should be read in the tag pane, if it’s not showing there could be a bug perhaps.

Best of luck

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 19, 2021, 11:02pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/7 "2021-03-19T23:02:38Z")

</div>

Your first example is wrong, there is no quotatations for fmtag2.  
This makes the whole YAML block invalid.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 19, 2021, 11:05pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/9 "2021-03-19T23:05:29Z")

</div>

it’s either  
tag: [tag1,tag2]  
or  
tag: ["#tag1","#tag2"]

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [March 19, 2021, 11:08pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/10 "2021-03-19T23:08:01Z")

</div>

Perfect! So tags do still work in Frontmatter. Sorry about this then. I thought I tested them correctly (with all “#” like I’ve been using) and they weren’t showing up in tag pane or search. I must have done something wrong somewhere.

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [March 19, 2021, 11:30pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/11 "2021-03-19T23:30:22Z")

</div>

@santi Thanks. No, it was just me being an idiot. There is no bug.

I am still trying to figure out if I should put tags in frontmatter for future plugins, but I’m starting to think they are best used in the files themselves. I mean plug-ins will presumably always be able to find them there, so I could leave frontmatter for other stuff like date created. And I can always hide some tags I don’t want published or displayed in preview with `<!-- -->`. I think they are still seachable when there.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [March 20, 2021, 5:36pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/12 "2021-03-20T17:36:41Z")

</div>

yeah I would advice to just have your tags in the note as normal `#tag` at least that’s what I do.  
Good luck!

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 1, 2023, 1:41pm UTC](https://forum.obsidian.md/t/frontmatter-confusion-for-plugins-only-and-yet-plugins-require-the-data/14796/13 "2023-04-01T13:41:38Z")

</div>

Closed on April 1, 2023, 1:41pm UTC


