Comments: Splitter

Name:
Email:
Location:
URL:
Notify me of follow-up comments?
Jon Horton on 2012-04-16:

Currently, the blocks number specifies the total number of rows.  I need to define the total number of columns. 

Is this possible?

Oliver on 2012-02-06:

@Forrest:
What exactly is the problem you encounter in regards to 2.4?

Forrest Anderson on 2012-02-02:

Hi,

The sites I use this on are toast now that 2.4 is out. Do you plan on an update soon!?!

Thanks

Pascal on 2012-01-10:

Is this version still compatible with EE 2.3.1.?

Thanks.

martin on 2011-09-02:

Looks like in my message bellow the code did not paste propely; It is like this:

{exp:splitter blocks=“2” delimiter=”<br/>” class=“myclass”}
{exp:channel:entries channel=“patrimoniu”}


{title}
{caption}
”  title=”{title}”] {exp:imgsizer:size src=”{image_1}” width=“200”}  <br>


{/exp:channel:entries}
{exp:splitter}

martin on 2011-09-02:

I’m trying disperately to make the script work but I could not get this to split anything.
It’s just a simple page to see how it works but everything is shown in one column. Here is the code:

<head>
<style>
.myclass {
float:left;
width:33%;
}
</style>
</head>
<body>
{exp:splitter blocks=“3” delimiter=”<br/>” class=“myclass”}
{exp:channel:entries channel=“patrimoniu”}
{title}
{caption}
”  title=”{title}”] {exp:imgsizer:size src=”{image_1}” width=“200”}  <br>
{/exp:channel:entries}
{exp:splitter} 
</body>

I’ve tried without the lightbox but the same result. Can you tell me please what I’m doing wrong? To split entries into multi columns is very important for my project. I’m using EE 2.2

Jenny on 2011-06-26:

Thanks for creating this plug-in, Oliver ... it’s awesome.

Any chance you might be releasing an update to add Mark Stewart’s “first_class” and “last_class” parameters? This would allow me to use the plug-in without modifying my existing column CSS.

Thanks for the consideration,
Jenny

Evan on 2011-06-03:

Hi,

thank you for the plugin!

is this possible? or does it have to be an <img> tag?

{exp:splitter blocks=“3” delimiter=”<br />” class=“myclass”}
{exp:channel:entries channel=“photos” dynamic=“no”}
  {exp:ed_imageresizer image=”{photos}” maxWidth=“100” maxHeight=“75” cropratio=“4:3” alt=”{title}”}

{/exp:channel:entries}
{/exp:splitter}

Jerry on 2011-05-17:

Great plugin. I had to add something to keep me from changing the css which I thought would be helpful to add to this.

$element = $this->EE->TMPL->fetch_param(‘element’,‘div’);

then replace the div to $element in the code.

I used this for UL tags instead of DIVs. Could be used to create any tag needed.

Zack Morgan on 2011-03-01:

Great plugin, thanks!

Mike Heavers on 2011-02-24:

Thanks - didn’t realize that the delimeters needed to be present in the code - I thought they were inserted via the tag.

Elyse Viotto on 2011-02-23:

Hi,
I was testing the splitter plug-in: is there a way to add a {switch=”“} in the class parameter? Just tried it and it doesn’t parse correctly. Any suggestions?

AnthonyD on 2011-02-23:

You’ll also need to set up your CSS, likely with floats, to handle the breaking into columns. Your class of ‘blogroll’ should be set to float left or right and should have a width set so as to accommodate the fake ‘columns’ that are being created with the multiple divs. Know what I mean?

AnthonyD on 2011-02-23:

You need to add a break tag (since that’s what you want to split on) after the closing anchor tag. Thus you would need

< a href=”{link_url}” target=“_blank” >{title}< /a >< br / >

instead of what you have. (Spaces added so it would [hopefully] render.)

Mike Heavers on 2011-02-23:

I also could not get this to split anything. It returns all the entries in one div.

{exp:splitter blocks=“2” delimiter=”<br/>” class=“blogroll” parse=“inward”}
{exp:channel:entries channel=“links”}
{title}
{/exp:channel:entries}
{/exp:splitter}

Magnuts on 2011-01-26:

What if i would like to make an uneven list? Like so:

Column 1     Column 2
Item 1         Item 5
Item 2         Item 6
Item 3
Item 4

Steven M Hambleton on 2011-01-25:

Ignore that! I had the tags the wrong way round..

We added a new parameter too which allows an extra class on the last block. Useful for changing margins/paddings etc.

Let me know if you want me to send this to you.

Steven M Hambleton on 2011-01-25:

The blocks parameter doesn’t work in EE 2.1.3

Mark Stewart on 2010-12-18:

Just read the licence.. looks like I’m breaking the rules by redistributing this modified version. I’m taking it down for now until the owner tells me it’s ok.

Sorry.

Mark Stewart on 2010-12-18:

Hi Anthony,

Just for you I’ve updated to allow for a “first_class” param. Good idea.

However.. I can’t take credit for creating this originally. I’ve just bastardised it to suit my needs.. and now hopefully yours.

http://markstewart.co.nz/files/pi.splitter.php.zip