Markdown Monster
Set slug
Gravatar is a globally recognized avatar based on your email address. Set slug
  BrettM
  All
  May 31, 2021 @ 04:12pm

Howdy, I am trying to get markdown monster working with my blog that uses the Metaweblog API. I am just struggling to set the slug and seeing some inconsistencies; likely my n00bness to Markdown Monster.

I noticed images are posted to the NewMediaObject WeblogAPI and the name set to {post folder name}/imagefilename. I actually like this.

But when I look at the AddPost, I cannot seem to see wp_slug field. I have tried adding a custom field but no luck, below is the YAML

customFields:
  wp_slug:
    id: 
    key: wp_slug
    value: first-post

Question 1. Is there a way to set the slug or wp_slug?

Question 2. Would it be possible to use the folder name as the slug, similar to the way it is used in the images?

Gravatar is a globally recognized avatar based on your email address. re: Set slug
  Rick Strahl
  BrettM
  Jun 1, 2021 @ 10:45am

Using custom fields is the right way to set this on the Markdown Monster Side.

However, are you sure your MetaWebLogApi server can do something with that slug? It depends on the server side to support to actually use that functionality when the post is published.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Set slug
  BrettM
  BrettM
  Jun 1, 2021 @ 05:17pm

Server is my own code using a nuget Metaweblog library. Let me download the library code and look what is happening over the wire.

Cheers Rick. PS. love your work!

Gravatar is a globally recognized avatar based on your email address. re: Set slug
  Rick Strahl
  BrettM
  Jun 1, 2021 @ 06:20pm

If there's a problem with the field not going over the wire, let me know. It should though.

The MetaWebLog format for custom fields is awkward but it is fairly standard so it should work. I use custom fields for a few truly custom things I pick up on my weblog server (also custom) and never had a problem with this, so that's why I think it's probably the server end.

+++ Rick ---

© 1996-2024