-
-
Notifications
You must be signed in to change notification settings - Fork 0
02. Setup and Usage
Within Umbraco, you need to create a new document type for your blog posts. This document type should have the following properties as a minimum:
- Title (string)
- BlogContent (MarkdownEditor)
Make a note of the alias of the document type and also the alias of the properties. e.g.
obsidian,title,blogContent.

Within Umbraco, you will need to create a new API user.

- Go to Users > Create API user
- Give the user a name and email address
- Give the user a User Group - Once saved, go to the user and create Client Credentials. These are what are used when Obsidian connects to Umbraco. - You shouldnt use this account to log in to the backoffice, this is for API use only.

Note
Remeber to give your blog document type permission to either post on the root node or the parent node you are using.
- Website Url - this is the base URL of your umbraco site e.g https://owain.codes
- Client ID - this is setup within Umbraco when you create the API user
- Client Secret - this is setup within Umbraco when you create the API user
- Pick Content Parent Node - this is the parent node in Umbraco where your blog posts will be created under. Click Fetch Nodes and you will see your content tree from Umbraco. Select the parent node.
Blog parent node UUIDis for reference only and is auto populated from this picker - DocType Alias - this is the alias of the document type you created in Umbraco for your blog posts. e.g.
obsidian - Title Alias - this is the alias of the title property you created in Umbraco for your blog posts. e.g.
title - Blog Content Editor Alias - this is the alias of the blog content property you created in Umbraco for your blog posts. e.g.
blogContent
Once everything is setup, you should now be able to push your content to Umbraco. It's important to make sure that you have clicked on the page you want to push. It's not enough to just open the note on to the screen. Place your cursor on the note, otherwise you will get a message saying No active Markdown view found
You can either click on the plugin icon on the left hand side menu or you can use the command palate. The command you need for the command palate is umbPublisher: Push to Umbraco command or just start typing Umbrac and the command will appear in the palette. Remember - you need to have the cursor on the note.