From 0e8ee9973a550a3ab0a2069d9a12b683651b7d9b Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Tue, 17 Jan 2017 09:24:41 -0800 Subject: use `mp-syndicate-to` by default, add setting * adds setting to choose the property to use for the syndication targets * all existing users default to the old value `syndicate-to` * new users default to `mp-syndicate-to` closes #66 --- views/settings.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'views/settings.php') diff --git a/views/settings.php b/views/settings.php index 2662eb0..5895718 100644 --- a/views/settings.php +++ b/views/settings.php @@ -36,15 +36,23 @@

You can customize some of the properties that are sent in the Micropub request to work with your specific endpoint.

- +
- + + + + + @@ -91,5 +99,11 @@ $(function(){ }); }); + $("#save-syndicate-to-field").click(function(){ + $.post("/settings/save", { + syndicate_field: $("#syndicate-to-field-name").val() + }); + }); + }); -- cgit v1.2.3
Slug +
Choose the name of the field that the slug will be sent in. This should be set to mp-slug unless your endpoint is using a custom property or the deprecated slug property.
Syndication +
+
+
Choose the name of the field that the syndication values will be sent in. This should be set to mp-syndicate-to unless your endpoint is using the deprecated syndicate-to property.
Send HTML Content user->micropub_optin_html_content ? 'checked="checked"' : '' ?>>