Skip to content

Conversation

@lurong-hkg
Copy link
Contributor

@lurong-hkg lurong-hkg commented Feb 23, 2018

#1571
Scope:
This PR aims to allow users publish markdown notes to configured wordpress sites. Snippets are not supported (we should probably allow publishing them to gist)

Feature:

  • Publish Markdown document to Wordpress blog
  • 2 Authentication methods are supported JWT token or WP-API basic auth
  • Update published Blog
  • Open published Blog

Requirements

  • Wordpress rest api doc
  • Authentication in wordpress

Screenshots:

  • Configuration
    image

  • Context Menu (Unpublished Markdown)
    image

  • Context Menu (Published Markdown)
    image

  • Publish Confirmation
    image

  • Publish failure comfirmation
    image

  • Published Blog Sample
    image

@RomanKlopsch
Copy link
Contributor

good job!

@lurong-hkg lurong-hkg force-pushed the feature/publish-to-wordpress branch from 928c855 to 58f9972 Compare February 23, 2018 18:31
@Rokt33r Rokt33r self-requested a review February 24, 2018 01:46
@Rokt33r Rokt33r added the awaiting review ❇️ Pull request is awaiting a review. label Feb 24, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Feb 24, 2018

We probably want similar things for Ghost and any other blogging platform. Let us think this for several days.

@Rokt33r
Copy link
Member

Rokt33r commented Feb 25, 2018

We're gonna accpet this and ship to the next version. 🎉 🎉 🎉
Thanks for your contribution!!

@lurong-hkg lurong-hkg force-pushed the feature/publish-to-wordpress branch from 6eeaa55 to a1b99dd Compare February 25, 2018 14:31
@lurong-hkg lurong-hkg force-pushed the feature/publish-to-wordpress branch from a1b99dd to aef603e Compare February 25, 2018 14:51
@lurong-hkg
Copy link
Contributor Author

@Rokt33r will it be in 0.11 or 0.12?

@Rokt33r
Copy link
Member

Rokt33r commented Feb 27, 2018

@lurong-hkg It will be in v0.11. 👍

Copy link
Member

@Rokt33r Rokt33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@Rokt33r Rokt33r merged commit 1dcf11e into BoostIO:master Mar 5, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

@lurong-hkg Could you add some documentation about authentication? Or some kind of tooltip in Blog tab should be nice.

If you can afford to do, let me know and create another PR! 😄

@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

And we should figure out how we can send images in note.

@Rokt33r Rokt33r added next release (v0.11.0) and removed awaiting review ❇️ Pull request is awaiting a review. labels Mar 5, 2018
@lurong-hkg
Copy link
Contributor Author

lurong-hkg commented Mar 5, 2018 via email

@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

I mean local images. 😄 Storage of boostnote can persist images locally! So, we need to check the url of images and upload it to wordpress if it start with file://....

@lurong-hkg
Copy link
Contributor Author

lurong-hkg commented Mar 5, 2018 via email

@phantomlution
Copy link

@lurong-hkg this feature is quite useful. But I got one issue. The tag I made at Boostnote is never synced to Wordpress. Can you fix that?

image

@phantomlution
Copy link

#2325
I implement this feature today. 😄。Waiting for merge

@infophile
Copy link

infophile commented Jun 11, 2020

Thank you for this great feature!

However I don't succeed to make the JWT authentification works.
I do the configuration in wp-config.php and I have the namespace and endpoints I guess.
But how can I get the token to fill in Boostnote next ?
What am I suppose to do with this function ?

`( function() {

var app = angular.module( 'jwtAuth', [] );

app.controller( 'MainController', function( $scope, $http ) {

var apiHost = 'http://yourdomain.com/wp-json';

$http.post( apiHost + '/jwt-auth/v1/token', {
    username: 'admin',
    password: 'password'
  } )

  .then( function( response ) {
    console.log( response.data )
  } )

  .catch( function( error ) {
    console.error( 'Error', error.data[0] );
  } );

} );

} )();
`

@Flexo013
Copy link
Contributor

@infophile Boost Note.next does not have this feature yet. For now it is only part of Boostnote Legacy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants