how to post entry/extended body via API?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

how to post entry/extended body via API?

Post by ameo »

hi,
how can i tell s9y how to split the content i submit through scribfire or any other blogging tool?

i used to use

Code: Select all

<!--more-->
with almost all the blogging engines i've used, but that doesn't seems to work with s9y.

any idea?

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: how to post entry/extended body via API?

Post by garvinhicking »

Hi!

s9y supports an "split entry" plugin that allows to use such a syntax. However, when you add an entry through XMLRPC you must make sure to put this split syntax into the EXTENDED body, not the plaintext body.

s9y seperates between body and extended body, for XMLRPC this is usually the "mt_text_more" column that your client needs to support to fill the output.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

thanks i'll try that next time i post something
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

Post by Mekk »

Both BlogJet and Post2Blog more-or-less correctly post splitted entry.

I had the following problems related to extended entry with them (more frequently with post2blog):

- sometimes basic entry ended with <p>, and extended entry started with </p>, what obviously messed HTML

- sometimes when I load the post from the server for edition the split mark is missed (and must be re-added)
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Re: how to post entry/extended body via API?

Post by ameo »

garvinhicking wrote:Hi!

s9y supports an "split entry" plugin that allows to use such a syntax. However, when you add an entry through XMLRPC you must make sure to put this split syntax into the EXTENDED body, not the plaintext body.

s9y seperates between body and extended body, for XMLRPC this is usually the "mt_text_more" column that your client needs to support to fill the output.

HTH,
Garvin
sorry, i wanted to reply to this yesterday but totally forgot,
i couldn't find that "split entry" plugin the only thing i found related was the "split in pages"
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

Mekk wrote:Both BlogJet and Post2Blog more-or-less correctly post splitted entry.

I had the following problems related to extended entry with them (more frequently with post2blog):

- sometimes basic entry ended with <p>, and extended entry started with </p>, what obviously messed HTML

- sometimes when I load the post from the server for edition the split mark is missed (and must be re-added)
i use both actually, have you tried posting splitted entry successfully through post2blog?
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

Post by Mekk »

have you tried posting splitted entry successfully through post2blog
Yes, and it works (I insert this _MORE_TEXT_MARK_ or whatever it is called - I am now writing from another machine) and post (as draft).

The only problem is that - as I said - initial excerpt ends with <p>, and extended entry starts with </p>, what confuses browser when serendipity renders.
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

Cool, thanks
i'll give it on more shot.

one more issue i'm wondering about, hope you or garvin can tell me about.

when posting through blogging software, does s9y try to check all the links in the post for possible trackbacks/pingback URL?

and also when i post does the "post announcement" plugin works? or it needs entries to e posted only from admin area!

thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
when posting through blogging software, does s9y try to check all the links in the post for possible trackbacks/pingback URL?
Yes.
and also when i post does the "post announcement" plugin works? or it needs entries to e posted only from admin area!
This should work as well, but this pinging is much more prone to errors or network failures.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ameo
Regular
Posts: 143
Joined: Fri Sep 26, 2008 4:13 am

Post by ameo »

great, thanks gravin
Post Reply