utilitees

- Addons for ExpressionEngine 1.7.x

Splitter

Version Released Type License
1.2.1 2009-03-25 Plugins Freeware (?)
⇒ Splitter for EE 2

Splitter Documentation
Docs

Download  Splitter
Download

Permalink Splitter
Permalink

Splitter Version RSS
Version RSS

This plugin may be used to split any kind of listings into several blocks with evenly distributed items. This can be manually created lists, lists produced by {exp:weblog:entries}- or {exp:weblog:categories}-tags or whatever.
There must however be some text in between the single items that can be used as a delimiter.

The number of items per block is determined automatically and blocks surrounded by <div></div> are created. You may specify a classname to be used in the <div>.

Example:

{exp:weblog:entries weblog="default"}
{title}
<br />
{/exp:weblog:entries} 

You have a list of weblog entries and want to create three evenly sized columns.

Wrap the {exp:splitter}-tags around the {exp:weblog:entries}-tags, specifiy the number of blocks you want, a text to be used as delimiter and the class you want to be applied to the <div>s.

{exp:splitter blocks="3" delimiter="<br />" class="myclass"}
    {exp
:weblog:entries weblog="default"}
    {title}
<br />
    
{/exp:weblog:entries}
{
/exp:splitter} 

will produce

<div class="myclass">
Title 1<br />
Title 2<br />
Title 3<br />
</
div>
<
div class="myclass">
Title 4<br />
Title 5<br />
Title 6<br />
</
div>
<
div class="myclass">
Title 7<br />
Title 8<br />
Title 9<br />
</
div

To make columns you’d probably set the class to float:left and might want to specify a width. Like:

<style>
.
myclass {
 float
:left;
 
width:33%;
}
</style

What does Freeware mean?
Freeware means you may use this addon free of
charge in as many installations as you like.


Comments

Much obliged concerning the incredible tips. I keep in touch with get things off my psyche. In spite of the fact that i,m let i know am too profound. I doubt that could be an in addition to for me sometime as I have a mess of thoughts waiting in my mind.


Rahul Gandhi:
2013-03-17 15:01

Nice One Blog.


pmp:
2013-02-22 14:52

I will install it! This will work!


tinnitus treatment:
2013-02-13 10:11

great addons this splitter


facebook timeline:
2012-03-29 15:57

It is a good code… It used divs so will look good in IE, too.


Oliver:
2009-08-21 15:58

Technically, yes.


Shelley:
2009-08-21 14:59

Can the splitter plugin be used to control content in a single entry? i.e. if i have lots of text in a field and i want the splitter to split this content into two columns. Can that be done somehow?


Ryan:
2008-12-11 22:51

I’m getting an extra list/div generated when I have an odd amount of items. Not sure if that has to do with a php floor/ceiling issue. I feel like this was discussed somewhere in the EE forums, but I can’t find the thread. Thanks for this.
—————-
Admin Edit: This issue was resolved by an update to version 1.1.1.