2007-05-01 06:53:06

jm
Plugin Author
omega
Real name: Jon-Michael Deldin
From: Missoula, MT
Website

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

etz_striptags will strip tags for you. Perhaps the following will work:

<txp:upm_textile>
     <txp:etz_striptags>
          <txp:title />
     </txp:etz_striptags>
</txp:upm_textile>

I’ve never needed to nest plugins before, but if it doesn’t work, you could store the stripped output as a PHP variable, then Textile that.

Offline

 

2007-05-11 04:14:41

Mary
Sock Enthusiast
omega
From: Canada

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

v.0.3

Last edited by Mary (2013-01-24 17:22:48)


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

 

2008-06-10 07:12:03

tc03
Member
epsilon

Re: [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

 

2008-06-11 00:31:16

Mary
Sock Enthusiast
omega
From: Canada

Re: [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.


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

 

2008-11-13 19:45:37

Addison
Member
beta
Real name: Addison Hall
From: Flowood, Mississippi
Website

Re: [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

 

2008-11-13 19:57:48

Mary
Sock Enthusiast
omega
From: Canada

Re: [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.


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

 

2008-11-13 21:22:05

Addison
Member
beta
Real name: Addison Hall
From: Flowood, Mississippi
Website

Re: [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

 

2008-11-13 21:44:10

Mary
Sock Enthusiast
omega
From: Canada

Re: [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)


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

 

2008-11-13 21:49:01

Addison
Member
beta
Real name: Addison Hall
From: Flowood, Mississippi
Website

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

Damn right — perfect.

Thanks,
Addison

Offline

 

2009-04-02 23:01:13

minusf
Member
epsilon

Re: [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

 

Powered by FluxBB