YukiGasai / obsidian-google-calendar

Add Google Calendar inside Obsidian
https://yukigasai.github.io/obsidian-google-calendar/
GNU General Public License v3.0
342 stars 24 forks source link

How to format frontmatter using the properties function to create gCal event? #214

Open mentosweet opened 9 months ago

mentosweet commented 9 months ago

Hi,

I am having some issues trying to create an event using frontmatter with the new properties function.

Is there a certain way to format it?

Thanks in advance! image

YukiGasai commented 9 months ago

Hi, the frontmatter of your note has to contain the details of the Google event. The options listed here are possible. The frontmatter will be converted to JSON and then send to Google. If you want to remap the keys to remove indentation you can use a mapping. Read more about this process here. If you have any feedback to improve the documentation please let me know ^^.

mentosweet commented 9 months ago

Hi! thanks again!

Perhaps i do not have enough knowledge of the properties function introduced to obsidian.

Cant seem to do the mapping as well using the properties

image

YukiGasai commented 9 months ago

Okay you understand the concept, but your implementation is a little off. The mapping is an object that contains the key value pairs. Using the properties to set this up seems to be very complicated. I would recommend to set up the mapping using frontmatter. You can switch to frontmatter inside the obsidian settings. image The properties view is just some extra HTML on top of the frontmatter to allow a nicer User Experience, but it has its problems with objects.