Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-06 19:42:17

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

A simple plugin that brings Textile capabilities to article titles. In particular, I’ve been missing all the nice glyphs Textile can produce from basic characters, most notably quote characters and dashes which is exactly what you cannot get with <txp:upm_textile><txp:title/></txp:upm_textile> because of the way <txp:title/> works. The plugin goes sligthly beyond that and can go even further eventually.

The plugin provides a <txp:hhh_textile_title/> tag that can employ Textile in processing of article titles. The extent of Textpattern capabilities is controlled by attributes. The tag is meant as a replacement for <txp:title/>.

For more information, check its page on Textpattern Resources or download hhh_textile_title-0.3.txt and try it out.

Changelog:
  • 2011/05/01 Version 0.3
    • Compatible with Textile 2.2 (Textpattern 4.4.0).
    • Extended functionality, supports @code@ and == no Textile ==.
  • 2009/09/06 Version 0.2
    • Initial release for Textpattern 4.0.8.

Last edited by hoho (2011-05-01 22:27:53)

Offline

#2 2009-09-06 20:31:02

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

Just a heads up, but upm_textile already does this (<txp:upm_textile/><txp:title/></txp:upm_textile>).

Offline

#3 2009-09-06 21:10:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

Fulminant introduction, Jan. Thanks for giving back

I didn’t understand what you said about the phrase_mods attribute. Could you please explain it again?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2009-09-06 21:11:30

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

No, that does not do the trick. Single and double quotes are escaped by txp:title for obvious reasons so they don’t get converted by Textile. I also want a finer control over Textile capabilities than provided by upm_textile – I want the nice glyphs as character entites everywhere including HTML heads and attributes of HTML elements.

Good point, nevertheless. I should highlight the difference in docs. Thanks.

Last edited by hoho (2009-09-06 21:28:11)

Offline

#5 2009-09-06 21:21:48

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

uli wrote:

Fulminant introduction, Jan. Thanks for giving back

Sorry, I do not understand. You mean I was rude? I hope I was not but if you percieve it that way, I’ll do my best to fix it.

The phrase_mods enables inline markup, eg. *strong* and _emphasis_. It’s Textile terminology, sort of. :)

Offline

#6 2009-09-06 21:40:42

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

hoho wrote:

You mean I was rude?

No, not at all! :)
I meant we have the very rare case that an alpha level member with only seven posts can deliver a patch and a plugin to the community. Congratulations!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2009-09-06 21:50:20

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

Ufff. :)

And thanks. :) But I see nothing exceptional given my training and namely the quality design of Textpattern. One can really enjoy hacking around in TXP which is not so in so many other pieces of software.

Offline

#8 2011-02-08 16:54:02

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

Is this plugin not compatible with the latest version of Textile?

When I enter this:

"Title" with *phrase modifiers* and _more_

I get this:

&#8220;Title&#8221; with textileopentag0000000000 phrase modifiers textileclosetag0000000000 and textileopentag0000000001 more textileclosetag0000000001

This behavior must have started recently, very probably after I upgraded the site to TXP 4.3.0, and the client whose site is affected just notified me.

Offline

#9 2011-02-08 18:51:38

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

Hi John,

this should definitely not be happening. What version of textile are you using — out-of-the-box 4.3?

I’ve never tried this plug-in but will look into it.


Steve

Offline

#10 2011-02-08 18:58:02

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

John

I have a partial answer for you from just looking at the code for the plugin. It is not exactly using textile the way textile is meant to be used — via the TextileThis() or TextileRestricted() calls, instead it makes calls to other functions that perhaps should not be called directly. Consequently, this plugin is not compatible with textile v2.2 (as you’ve found out.)

I’ll see what can be done to fix it for now. Upm_textile might be a better solution though.

Last edited by net-carver (2011-02-08 20:32:22)


Steve

Offline

#11 2011-02-08 19:46:35

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

John

Try this replacement — no guarantees.


Steve

Offline

#12 2011-05-01 22:22:17

hoho
Plugin Author
Registered: 2009-04-05
Posts: 11

Re: hhh_textile_title - Textile-Enabled Replacement for <txp:title/>

johnstephens, thanks for pointing the problem out.

net-carver, thank you for stepping in. Unfortunatelly, I do not know of a better way to get the functionality than to access internals of the Textile class.

I have improved the plugin and updated the page on Textpattern Resources. The plugin is hhh_textile_title-0.3.txt now.

Offline

Board footer

Powered by FluxBB