obsidian-google-calendar icon indicating copy to clipboard operation
obsidian-google-calendar copied to clipboard

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

Open mentosweet opened this issue 1 year ago • 3 comments

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

mentosweet avatar Oct 18 '23 02:10 mentosweet

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 ^^.

YukiGasai avatar Oct 18 '23 13:10 YukiGasai

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

mentosweet avatar Oct 18 '23 14:10 mentosweet

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.

YukiGasai avatar Oct 18 '23 14:10 YukiGasai