Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-06-15 09:47:48

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

Hi folks,

finally got around to update the plugin, so:

1. header fields now properly wrapped in a TR tag
2. a colclass attribute set to any value will put in col1…colN class names to all cell elements
3. a rowclass attribute set to any value will put in odd/even class names to all line elements

This was a quick update, so re-download and let me know if you come across any problems.


Who’s gonna textdrive you home tonight?

Offline

#32 2005-06-15 13:00:14

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: [archived] fha_reform - Simple table/list maker

hoi,

Im trying the new plugin:

In my css i typed :

<code>
kolom {

cellpadding : 20 ;
}

</code>

in my page i do :

<code>
<txp:fha_reform model=“table” delimiter=”. “ headers=“yes” class=“cdList” collclass=“kolom”>
</code>

But nothing happens.
Do i something wrong or is something else happing.

Roelof

Last edited by roelof (2005-06-15 13:00:36)

Offline

#33 2005-06-15 13:10:03

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

Hi Roelof,

you don’t understand: the collclass (and rowclass) parameter takes a “yes” value and the resulting class name will automatically become col1, col2, col3 etc. for each of the columns.


Who’s gonna textdrive you home tonight?

Offline

#34 2005-06-15 13:24:04

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: [archived] fha_reform - Simple table/list maker

oke,

If i understand it right now i must change collclass in yes.
Then i have to put col1, col2 and col3 in the css with a cellpadding of 10.

Roelof

Offline

#35 2005-06-15 21:32:39

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

Yes, but if want a cellpadding of 10 on all columns, you may just as well do it on all ‘td’, because that will work the same.


Who’s gonna textdrive you home tonight?

Offline

#36 2005-06-15 21:35:31

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

> sekhu wrote:

> The table output works fine, but I want to use dl instead for tracklistings but not having much luck. Anyone know why it’s doing some funny spacing?

http://sekhu.net/txpattern/music/the-optimist

Hi Sekhu,

but that’s just what it is supposed to look like. A DD is a block-level element so it renders below a DT. You would have to make the DT float left or something. I’m not sure what you’re really trying to achieve – to have a DL which looks like a table? I must admit I don’t understand the point in putting in a DL, when the content obviously is what tables were made for.


Who’s gonna textdrive you home tonight?

Offline

#37 2005-06-17 20:58:48

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] fha_reform - Simple table/list maker

Yaaa. Haven’t tried it yet, but thanks for the update!

Offline

#38 2006-02-09 19:06:26

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,214
Website GitHub

Re: [archived] fha_reform - Simple table/list maker

Hi mamash,
I’ve used fha_reform successfully many a time in the past. Now using textpattern 4.03 and fha_reform 0.3 it seems fha_reform is not catching the line endings. If I use your sample from the help:

<code>
<txp:fha_reform model=“table” delimiter=”. “ headers=“yes” class=“cd_listing”>
No.. Title. Duration
1. Track01. 5:23
2. Track02. 8:01
3. Track03. 4:57
</txp:fha_reform>
</code>

I get one long row rather than several rows:

<code>
<table class=“cd_listing”>
<thead><tr><th class=“text”>
No.</th><th class=“text”>Title</th><th class=“text”>Duration
1</th><th class=“text”>Track01</th><th class=“text”>5:23
2</th><th class=“text”>Track02</th><th class=“text”>8:01
3</th><th class=“text”>Track03</th><th class=“time”>4:57
</th></tr></thead>
</table>
</code>

Any ideas what the reason could be? and of course what the solution might be?

FYI:If I use the textile way with | then the line-endings work but I can’t do things like column heads etc.

many thanks!

jakob

Last edited by jakob (2006-02-09 19:07:16)


TXP Builders – finely-crafted code, design and txp

Offline

#39 2006-03-08 19:53:06

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] fha_reform - Simple table/list maker

Filip, Do you have any plans on updating this to work with the latest releases? Please say yes so I don’t have to hardcode pricing tables (ick!)

Thanks!

Offline

#40 2006-03-08 21:13:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,214
Website GitHub

Re: [archived] fha_reform - Simple table/list maker

Soulship, I found that it will work but you have to write <br /> at the end of the line. I also found that you can do quite a lot more with textile than I was aware of — this Textile Reference was a big help and has more detailed information about textile than the textism site.


TXP Builders – finely-crafted code, design and txp

Offline

#41 2006-03-09 10:52:50

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

Hey folks, I think I will update it soon, but meanwhile, just go into the plugin source and remove the <br /> tag in there. Looks like 4.0.3 changed some of how the content is passed over to plugins and I admit I haven’t been watching TXP updates recently.


Who’s gonna textdrive you home tonight?

Offline

#42 2006-03-09 16:17:04

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] fha_reform - Simple table/list maker

Thanks Filip I forgot to post that after disecting the plugin. It’s all working now. But if you’re working on it anyway a scope=“col” or scope=“row” attribute would be really nice :)

Offline

#43 2006-07-31 17:28:04

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [archived] fha_reform - Simple table/list maker

Really nice plug-in Filip.

I’m fairly new to TXP and just had a couple of questions –
I stripped out the <code><br /></code> and the tables are working fine, except that the top line is not formatting as a header.

Secondly, how can I insert txp tags so the tables are generated automatically?

Thanks in advance for your time and help.

Offline

#44 2006-09-26 08:06:48

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [archived] fha_reform - Simple table/list maker

Hello Filip,

I’ve tried to put a <code><txp:body /></code> tag in your plugin but it’s ignored, should it work or am I doing something wrong here?
Be nice if it worked then low tech customers wouldn’t need to see the scary plugin tag and attributes.
Thanks very much, Lee

<code><txp:fha_reform model=“table” delimiter=”. “ headers=“yes” class=“cd_listing”>
Date. Cost
<txp:body />
</txp:fha_reform></code>

Last edited by lee (2006-09-26 08:07:36)

Offline

#45 2006-09-26 08:23:10

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 128
Website

Re: [archived] fha_reform - Simple table/list maker

Won’t handle any TXP tags (doesn’t do any parsing and doesn’t pass through to parsing functions either). I admit I have not had any time to look at this plugin for a long time and the perspective is not good either.


Who’s gonna textdrive you home tonight?

Offline

Board footer

Powered by FluxBB