Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] fha_reform - Simple table/list maker
Yaaa. Haven’t tried it yet, but thanks for the update!
Offline
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
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
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
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
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
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
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
#46 2006-09-26 08:29:24
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] fha_reform - Simple table/list maker
Thanks, I understand. $60 make you feel like adding in parsing?
Offline
Re: [archived] fha_reform - Simple table/list maker
I don’t think I can squeeze this in this week, but will try to have a look next week.
Who’s gonna textdrive you home tonight?
Offline
#48 2006-09-26 08:44:05
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] fha_reform - Simple table/list maker
Cheers Mamash, let me know how you want paying when you’re ready.
Edit: Just 1 thing, can it be made to work with the latest rev.
Last edited by lee (2006-09-26 08:45:16)
Offline