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: 5,192
Website GitHub

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: 5,192
Website GitHub

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

#13 2009-12-08 18:23:24

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

Re: [textile] Definition lists in Textile

lythande – Excellent. Definition lists can really come in handy. Maybe this mod could be posted on the textpattern.org site? (Textpattern Resources) ? It’d be nice to have the modified classTextile.php in a handy, public place.

Offline

#14 2009-12-08 21:10:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: [textile] Definition lists in Textile

Yes, thanks Lythande. Definition lists are on the list of things to add to TXP, so your mod will come in very handy. Much appreciated.

Perhaps the “handy, public place” could become Textpattern itself fairly soon, especially since textpattern.org is going to become plugins-only sometime in the future:-)

Last edited by Bloke (2009-12-08 21:11:28)


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#15 2009-12-09 04:43:17

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

Re: [textile] Definition lists in Textile

much thanks!

but my code for dl-list is from branchiopoda and i havent see the new thoughts for making another code for dl on this thread

sorry, I havent much learn to work with php (only to read this a little bit) and can only switch the html-code in this file (for abbr instead acronym) and have crab the code for dl-list from branchiopoda-code and insert it to the actual file for 4.2.0 ;)
Edit: I forgot that ive add "linktext'quote'":url -> <a href="url">linktext"quote"</a> :)

but maybe its now a little bit easier for them, they make the code for dl-list better?

Now you can downloading the php-file as a txt-file from my website directly: classTextile.php.txt

Edit: look here in the new topic for get the newiest Extensions for classTextile.php

best regards
Lythande

Last edited by lythande (2011-06-26 10:11:23)

Offline

Board footer

Powered by FluxBB