[TYPO3-ttnews] new feature: Optionsplit for tt_news

Sylvia Boback boback at web.de
Tue Apr 29 11:41:44 CEST 2008


Hello,

> *OPTIONSPLIT* FOR TT_NEWS
YEAH !!! Finally ;) Thanks a lot!!!!!

Unfortunately I have a problem using the optionsplit concerning the 
alternating Layout.

> plugin.tt_news {
>  altLayoutsOptionSplit = 0||1|*|2||3||4|*|5||5||5
> }
>
> assumed the list limit is set to 11 the template parts will be choosen in
> the following order:
> 1:   part 0 (###NEWS###)
> 2:   part 1 (###NEWS_1###)
> 3:   part 2 (###NEWS_2###)
> 4:   part 3 (###NEWS_3###)
> 5:   part 4 (###NEWS_4###)
> 6:   part 2 (###NEWS_2###)
> 7:   part 3 (###NEWS_3###)
> 8:   part 4 (###NEWS_4###)
> 9:   part 5 (###NEWS_5###)
> 10:  part 5 (###NEWS_5###)
> 11.  part 5 (###NEWS_5###)
>
> btw: it's also possible not to use all optionsplit sections.
> something like:
>  altLayoutsOptionSplit = 3||5||2||1||4||1||5||5
> will simply output the template parts in the listed order.
> (if limit is greater than the amount of split items to last value will be
> repeated)

Do I also need to specify the alternatingLayouts property?

What I want to do:
I would like to use another template for the last item in my latest list.
According to your documentation above:

plugin.tt_news {
  altLayoutsOptionSplit = 0 |*| 0 |*| 1
}

would do just fine. Unfortunately it doesn't.
If I use this expression all templates are the same.
In case the expression is : 0|*|0|*|1  without spaces the NEWS_1 template is 
used
In case the expression is : 0 |*| 0 |*| 1 with spaces the NEWS template is 
used

I have four items in my news-latest-view.
So:  0||0||0||1 works fine
But when the number of items will change... it won't work anymore...the way 
I want it to.

plugin.tt_news {
  altLayoutsOptionSplit = 0||1|*|1||0||0|*|0||0||1
}
will display four items as the order shows : ( news news_1 news_1 news)

So: Why does the option split does not work in my case? Have I read an 
important information over? Have I missed something?

Best regards,
  S. Boback




More information about the TYPO3-project-tt-news mailing list