Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-03 00:42:12

mescobosa
New Member
Registered: 2005-08-20
Posts: 9

How to extract the body of an article in post-textile rendered HTML?

I found the txp_twitter extension by Fran Garcia and I figured out how to edit it to spit my article body into twitter (I write short posts) but my article body is marked up using textile and I can’t figure out how to show the rendered HTML version to Twitter.

Offline

#2 2009-04-03 01:23:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How to extract the body of an article in post-textile rendered HTML?

Check out upm_textile


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-04-03 19:10:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to extract the body of an article in post-textile rendered HTML?

mescobosa wrote:

I figured out how to edit it to spit my article body into twitter

If your edit was changing custom_1 into Body, try Body_html instead.

Offline

#4 2009-04-03 19:33:34

mescobosa
New Member
Registered: 2005-08-20
Posts: 9

Re: How to extract the body of an article in post-textile rendered HTML?

Well, Body_html is better in that it allows me to dump the rendered HTML Body into twitter. But Twitter displays it as <p><a href=”{url}”>Link Copy</a></p>” instead of as “Link Copy” (linked to the {URL}).

Offline

#5 2009-04-03 21:12:16

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: How to extract the body of an article in post-textile rendered HTML?

@mescobosa What about using rss_auto_excerpt with striptags=“1” ? Is that combination possible with txp_twitter?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#6 2009-04-03 21:54:23

mescobosa
New Member
Registered: 2005-08-20
Posts: 9

Re: How to extract the body of an article in post-textile rendered HTML?

I am not sure… good thought! Is it possible to reference the output of an extension in the edited code of another extension?

Offline

Board footer

Powered by FluxBB