Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-06-10 07:12:03

tc03
Member
Registered: 2007-11-06
Posts: 92

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Great plugin, but I have a question – i have used it in an article title to parse a textile footnote [1], but the footnote won;t correspond to the footnote at the bottom of the page. Any suggestions?

Offline

#14 2008-06-11 00:31:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

That would be due to how Textile works, and I’m afraid it cannot be changed. One work around would be to turn off Textile for the article in question (“Leave Text Alone), and wrap the plugin tag around the body tag as well.

Offline

#15 2008-11-13 19:45:37

Addison
Member
From: Flowood, Mississippi
Registered: 2004-08-30
Posts: 34
Website

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

I’m having an issue where upm_textile will not parse links within upm_img_caption. Here’s what I’m talking about (see the caption next to the photo with the Google Map link).

Is this perhaps a plugin + plugin issue? I tried inserting a link in the form and it worked just fine.

Thanks,
Addison

Offline

#16 2008-11-13 19:57:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

I am not entirely certain. Can you show me how you’re using it (form/page)? Use pastebin if it’s a lot of code.

Offline

#17 2008-11-13 21:22:05

Addison
Member
From: Flowood, Mississippi
Registered: 2004-08-30
Posts: 34
Website

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Sure. This is the form:

<div class="exhibit_img_wrap">
    <div class="photo">
      <a href="<txp:upm_img_full_url />" onclick="upm_pop_img(this.href, '<txp:upm_img_full_width />', '<txp:upm_img_full_height />', '<txp:upm_img_name />', this.title); return false;"><img src="<txp:upm_img_thumb_url />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" alt="<txp:upm_img_alt />" title="View larger" /></a>
      <p class="view_larger">Click to view larger</p>
    </div>
    <div class="photo_caption"><txp:upm_textile><txp:upm_img_caption /></txp:upm_textile></div>
</div>

that’s called from: <txp:upm_article_image form="exhibit_images" type="popup" />

As I said, it’s just the textile link that won’t parse. So "textpattern":http://www.textpattern.com does not parse as it should. Does that help?

Thanks.

Offline

#18 2008-11-13 21:44:10

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Aha. By default the tag output is escaped, changing the quotes into character entities, which of course Textile doesn’t monkey with. You need to change this <txp:upm_img_caption /> to this <txp:upm_img_caption escape="" />, and then you should be good to go. :)

(By the way, type="popup" can be dropped from your page, just b/c it’s redundant: once a form is used the tag outputs that form directly; type is only used for “automatic” output.)

Last edited by Mary (2008-11-13 21:47:15)

Offline

#19 2008-11-13 21:49:01

Addison
Member
From: Flowood, Mississippi
Registered: 2004-08-30
Posts: 34
Website

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Damn right — perfect.

Thanks,
Addison

Offline

#20 2009-04-02 23:01:13

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

in some other posts i am monkeying around with this plugin,
not just it is a great idea, but has it been considered for addition
to the txp core? i mean it is quite basic functionality come to think
of it, is there a reason why this couldn’t be a built-in txp tag?

perhaps something like <txp:textile> <txp:excerpt /></txp:textile>


we is experts™

Offline

#21 2009-04-02 23:48:58

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

As far as I know, it hasn’t publicly been considered (I don’t read minds nor am I privy to any possible private conversations, so who knows about otherwise). Off-hand I can’t think of any reason why the functionality of the tag couldn’t be in the core, but I’m just one person and not a core dev anymore so. The best way to try and get it into the core is submitting a patch to Robert and Ruud, see what they say (or if they happen to jump into this conversation). I could try and do that when I’ve got some free time.

Offline

#22 2009-12-11 16:42:59

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Hi Mary

I can’t seem to make upm_textile parse links in a custom field.

<txp:upm_textile><txp:custom_field name="contact" /></txp:upm_textile>

While other bits of Textile in the same field (headings and bold) are being correctly handled, "link":http://www.site.com is just being output as "link":http://www.site.com.

Any suggestions appreciated!

thanks
Stu

Offline

#23 2009-12-11 17:02:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,448
Website GitHub

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

pieman wrote:

I can’t seem to make upm_textile parse links in a custom field.

I don’t know the specifics of this plugin, but could it have something to do with the default escape attribute now being html in the custom_field tag? It might be escaping the quote characters which could cause upm_textile to not recognise them any more.

Does it work if you add escape=""?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#24 2009-12-11 17:39:11

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] upm_textile: Parse any text with Textile.

Sounds worth a shot… I just clocked off but I’ll give it a whirl on Monday. Ta

Offline

Board footer

Powered by FluxBB