Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] jcb_columnize_body

#16 2005-05-14 02:37:38

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [archived] jcb_columnize_body

This looks pretty cool.

Just a note, when you output the plugin code, you might want to think of removing the <?php ?> part of the .txt file, since RC3 doesn’t use that anymore.


bludrop studios .::. Creative Expression

Offline

#17 2005-05-14 06:52:59

jimb
Archived Plugin Author
From: Chicago, IL, USA
Registered: 2004-07-22
Posts: 27
Website

Re: [archived] jcb_columnize_body

blumie607-

Thanks for the heads up on the plugin format. I just updated the download text file.

Offline

#18 2005-05-14 08:03:34

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

I love this jimb ! What a great idea that will give us a lot of flexibility, I had noticed this in CSS3 but we still have to wait, javascript not being the best choice to implement this kind of stuff (what if it’s not on… it won’t degrade gracefully). So the whole txp server-side thing is really a stroke of genius !

THX !


.: Retired :.

Offline

#19 2005-05-16 07:40:26

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] jcb_columnize_body

I’m discovering lots of new uses for this plugin. Right now, I’m using a version with some modifications, which enables it to split other things than just paragraphs (including DIVs, ULs) and has a slightly different bahavior. Take a look here, here, here and here for a few examples.

jimb, are you interested in incorporating these modifications into your plugin?

Last edited by Etz Haim (2005-05-16 09:30:41)

Offline

#20 2005-05-16 08:43:48

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

That’s really clever and would be very nice to have this !

Cool :-))


.: Retired :.

Offline

#21 2005-05-17 03:21:12

jimb
Archived Plugin Author
From: Chicago, IL, USA
Registered: 2004-07-22
Posts: 27
Website

Re: [archived] jcb_columnize_body

Etz-

Of course. If you want to email me your mods I can add them to the next version, or just make yours the ‘official’ one for the time being until I do more work myself. Or if you have another idea I’d be happy to hear it.

Offline

#22 2005-05-17 03:32:31

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] jcb_columnize_body

I’ve sent you the full plugin code. What I’ve added so far

  • The splitontag attribute that defaults to “p”; can be set to “ul”, “div” or any other matched tag.
  • The minsplit attribute that defaults to columns + 1. This means, for example, that it won’t split anything into 2 columns unless there are three elements to split minimum. It won’t wrap the result in a <div class="column1">...</div> either.

Please test it a little before you release it.

Last edited by Etz Haim (2005-10-09 20:36:25)

Offline

#23 2005-05-17 10:54:49

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

Re: [archived] jcb_columnize_body

Etz,

Those additions are looking really nice!

Offline

#24 2005-05-27 07:18:54

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

Whaow this plugin will really be great if we can split div’s, ul’s… :-))

When will this be avalaible ???


.: Retired :.

Offline

#25 2005-05-27 07:54:18

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] jcb_columnize_body

I’ve already mailed jimb with my modifications and I’m waiting for him to release it. If for some reason he can’t, and there’s consent, I will release it myself.

Offline

#26 2005-05-27 09:16:16

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

OK, thanks for the input :-)

Great !


.: Retired :.

Offline

#27 2005-05-29 05:15:26

jimb
Archived Plugin Author
From: Chicago, IL, USA
Registered: 2004-07-22
Posts: 27
Website

Re: [archived] jcb_columnize_body

Sorry, I really apologize for the delay. It’s the end of the semester at school, and on top of that I’ve had client work piling up. (I’m not complaining though.)

Etz- please feel free to release the plugin if you would like to. I incorporated your changes, and started to add some mroe sophistocated columnizing code, but work on that has been stalled due to being so busy. In another weekish I hope to finish it up and make it available.

Thanks for the interest everyone, and sorry about the delay. Feel free to hassle me via email if it happens again.

Offline

#28 2005-06-01 12:39:56

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

I noticed this plugin was not added to textpattern.org, so if you don’t have time to do it, I will…
It’d be to bad to miss this one !


.: Retired :.

Offline

#29 2005-06-01 13:22:16

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: [archived] jcb_columnize_body

Jim, this is a very, very nice plugin.

There is a wonderful script, written by John Weir of smokinggun.com, that produces a multi-column layout, allowing horizontal scrolling of those columns. The script is released under GPL and is extensively used on the International Herald Tribune site.

Here’s the link to the script and example.

I am wondering if some of the wizards out there might be able to make this into a TP Plugin or further enhance your plugin into a multi-column, scrollable version, something that works like the axamples above.

Last edited by marco (2005-06-04 02:56:15)

Offline

#30 2005-06-03 07:02:00

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [archived] jcb_columnize_body

There is a glitch in the help, just thought I would report this :
<blockquote>The divs output by this plugin are assigned the class “columnized” by default. If you would like to be able to define styles for the divs individually, set the attribute classes=“uniform”. This will cause them to be be assigned a class of “column1”, “column2”, etc.</blockquote>

…would rather be “The divs output by this plugin are assigned the class “column1, column2” by default. If you would like to be able to define a single style for the divs, set the attribute classes=“uniform”. This will cause them to be be assigned a class of “columnized”.

I also guess it could be nice to add examples in the help, as well as a sample CSS

While I am there, here’s my css, those columns are inside a parent div with a width of 470px (of course, adapt this to your need… just make just your calculations fit ;-) :

<code>.column1 {float: left; width: 225px; padding: 5px;}</code>
<code>.column2 {margin-left: 250px; width: 225px; padding: 5px;}</code>

<p>I had to use the margin-left and float:left instead of the simpler float:right I would normally have used for column2 because otherwise it does not work (since you have to place column2 before column1 if you do that, and the plugin will increment the colum number, not decrement…). Hope it helps beginners here :)</p>

<em>Edit : one question, would it be hard to be able to modify the plugin so that we can define a spliting point in the text ? or have a length before spliting option ?</em>

Last edited by davidm (2005-06-03 09:40:33)


.: Retired :.

Offline

  1. Index
  2. » Archives
  3. » [archived] jcb_columnize_body

Board footer

Powered by FluxBB