Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-31 06:51:34

dazonic
Member
Registered: 2006-10-24
Posts: 43

[textile] Definition lists in Textile

Here it mentions something like:

dl. title:data goes here

Is there a reason why our PHP Textile doesn’t do definition lists? Will it ever?

Offline

#2 2007-07-31 14:11:42

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [textile] Definition lists in Textile

Because Textile is not a full replacement for HTML (that would have zero interest), and can be used alongside HTML.

However definitions list are useful and can be commonly used. I don’t know, you may want to ask the Textile 2 core maintainer (Zem).

Offline

#3 2007-08-01 02:27:17

dazonic
Member
Registered: 2006-10-24
Posts: 43

Re: [textile] Definition lists in Textile

Yeah, I love def. lists, use them all the time.

Offline

#4 2007-09-02 16:09:35

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: [textile] Definition lists in Textile

I agree textile definition lists would be very useful. Sure, I can write one with html, but I would love for my clients who are creating their own content to be able to use a definition list where appropriate.

Offline

#5 2007-10-08 09:38:30

branchiopoda
New Member
Registered: 2006-01-10
Posts: 2
Website

Re: [textile] Definition lists in Textile

I love definition lists too.

So, I added it to the Textile 2.

You can find it at my site .
The page is Japanese only but you may figure out with the codes there.

Last edited by branchiopoda (2007-10-08 09:39:45)

Offline

#6 2007-10-09 18:06:45

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: [textile] Definition lists in Textile

branchiopoda. Is your classTextile based off alex’s at thresholdstate.com or the other one by brad choate?


TXP Builders – finely-crafted code, design and txp

Offline

#7 2007-10-10 07:52:21

branchiopoda
New Member
Registered: 2006-01-10
Posts: 2
Website

Re: [textile] Definition lists in Textile

jakob, it’s based on alex’s at thresholdstate.com included in the Textpattern package.
And the part around definition list has been made with the idea from TextilePHP.

Last edited by branchiopoda (2007-10-10 07:52:53)

Offline

#8 2007-10-10 13:09:28

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: [textile] Definition lists in Textile

thanks for the info – so it’s alex’s with brad’s dl solution added. That means one could drop it in in place of the existing one and gain dl lists. Nice, especially for fans of dl-lists like myself :-)


TXP Builders – finely-crafted code, design and txp

Offline

#9 2008-01-17 13:01:42

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Re: [textile] Definition lists in Textile

I love definition lists too.
So, I added it to the Textile 2.
You can find it at my site .

branchiopoda,

thanks a lot for the definition list modification.

However, if you use txp tags inside, they are wrongly parsed:

dl. *Definition text*:Text1 <txp:perm_link linkid="20">Link</txp:perm_link> more text
Text2 <txp:perm_link linkid="21">Link2</txp:perm_link> Text
<dl>
    <dt><strong>Definition text</strong></dt>
    <dd>Text1 <txp:perm_link linkid="20">Link1</txp:perm_link> more text</dd>
    <dt>Text2 <txp</dt>
    <dd>perm_link linkid=“21”>Link2</txp:perm_link> more text</dd>
    </dl>

Any way to escape the colon inside txp tags?

Thanks!

Offline

#10 2008-05-04 22:33:46

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: [textile] Definition lists in Textile

Hey for those less Textile-savvy (me): Can I use “classTextile.php” file from branchiopedia’s site to replace the “classTextile.php” that came with Textpattern, and I’ll magically have Textile definition list capabilities?

Offline

#11 2008-05-05 00:22:33

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Definition lists in Textile

nabrown78 wrote:

Hey for those less Textile-savvy (me): Can I use “classTextile.php” file from branchiopedia’s site to replace the “classTextile.php” that came with Textpattern, and I’ll magically have Textile definition list capabilities?

License says yes. And yes if it uses same functions and classes that TXP calls, so if it is compatible, so probably yes if it’s just slightly modified Textile class. Best way is just test and if all seems fine, then it is fine and even better ;)

Offline

#12 2009-12-08 03:35:53

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: [textile] Definition lists in Textile

hi there,

if you wish a new code for Textpattern 4.2.0, ask me on my website for get the file.

This file is a classTextile.php-Update for 4.2.0-Textpattern-Version and include dl-list and abbr instead acronym.
Much thanks to branchiopoda and alex’s at thresholdstate.com.

best regards
Lythande

Offline

Board footer

Powered by FluxBB