Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-12-12 02:24:05

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

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

Stef is correct. :)

Offline

#26 2009-12-14 10:15:01

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

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

I concur :)

Offline

#27 2010-01-26 18:09:15

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

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

I’m trying to use the plug-in in an article list >

<txp:if_first_article><ul class="directory"></txp:if_first_article>
<li><a href="#<txp:title />" title="Naar artikel!"><txp:upm_textile lite="1"><txp:title /></txp:upm_textile></a> |</li>
<txp:if_last_article></ul></txp:if_last_article>

The output >

Or look on this page > www.joopvos.nl/acmplus/txp/

I think it’s possible, but is it? And what have I done wrong or don’t understand! Thanks for any help.

Offline

#28 2010-01-26 20:39:27

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

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

Hi Joop, looking at the plugin help:

lite=“value”
Minimal Textile: links, images, code, spans, footnotes, and entities translation.

I don’t think that includes the use of *...*, _..._ etcetera… If I were you I’d remove the attribute.

Offline

#29 2010-01-26 20:50:53

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

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

Well, if I do then I get this >

Source > <li><a href="#Open Ateliers _2010_" title="Naar artikel!"><p>Open Ateliers <em>2010</em></p></a> |</li>

Mmm … this Open Ateliers <em>2010</em> is OK, but I don’t want the <p><p> all over the place!

Last edited by RedFox (2010-01-26 20:51:29)

Offline

#30 2010-01-26 22:39:57

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

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

Ah yes, forgot about the <p>s… :( You can get rid of them with rah_replace. Something like:

<txp:rah_replace from="<p>,</p>" to=","><txp:upm_textile><txp:title /></txp:upm_textile></txp:rah_replace>

Offline

#31 2010-01-26 22:47:17

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

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

Woef* … :)

*Thank you in doggies!

Last edited by RedFox (2010-01-27 10:07:58)

Offline

#32 2010-01-27 11:50:31

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

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

I was hoping this would allow me to create hyperlinks in <txp:link_description />, but it doesn’t seem to work. It generates <p>s, just not links. The form is…

<txp:if_different><h3><txp:link_category title="1" /></h3></txp:if_different>
<h4><txp:link /></h4>
<txp:upm_textile><txp:link_description /></txp:upm_textile>

Is that a known limitation?

Offline

#33 2010-01-27 14:05:21

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

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

No, it’s because the link description has been santized. Make use of the escape attribute.

http://textbook.textpattern.net/wiki/index.php?title=link_description

Offline

#34 2010-02-24 21:05:30

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

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

Mary wrote:

No, it’s because the link description has been santized. Make use of the escape attribute.

Sorry for not replying earlier, but I got caught up with other things.
Changing the line to the following did the trick…

<txp:upm_textile><txp:link_description escape="" /></txp:upm_textile>

You’re a darling!  :-)

Offline

#35 2010-05-08 13:58:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

Hi.
If I try to use <txp:upm_textile lite="1"> ... </txp:upm_textile>, the plugin returns un-Textiled content. This is probably more an issue of classTextile.php than upm_textile, as I’ve enabled the lite attribute directly on classTextile.php and I get the same results: un-Textiled content.
On the other hand, the lite="1" attribute on upm_textile_restricted seems to work fine (at least, it textiles its contents). But, as per the help, it seems that upm_textile_restricted lite="1" will also render paragraphs, which is what I’m trying to avoid (without using a leading space, of course).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#36 2010-05-08 14:16:22

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

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

lite should just do stuff like links and bold, no block type tags. If it’s not working at all, you need to verify that what the tag is receiving is actually what it’s supposed to, and not escaped entities, for instance.

And yes, restricted and lite allows for p and bq block tags.

Offline

Board footer

Powered by FluxBB