[Typo3-dev] The quest of optionSplit : a first approach

JoH info at cybercraft.de
Wed Nov 16 13:30:23 CET 2005


> Every month in the typo3.english list, someone asks for the famous
> question "How to use optionSplit when it's not a menu ?".
> The answer is quite simple : "no way for the moment".

Well - nice patch since it will be working in other places as well, but "no
way" is not true.
You can of course use optionSplit outside of menus just by using
stdWrap.split.

So you can do something like this:

tt_content.stdWrap.outerWrap = |###SPLITTER###

temp.mySplittedContent = COA
temp.mySplittedContent {
    10 < styles.content.get
    stdWrap.split {
        token = ###SPLITTER###
        cObjNum = 1 || 2 || 3
        1.current = 1
        1.wrap = <div class="mycontent1">|</div>
        2.current = 1
        2.wrap = <div class="mycontent2">|</div>
        3.current = 1
        }
    }
}

The rest will be done with appropriate CSS and without any patch.
Just one example how to use it. You can imagine there are much more
possibilities of using the same concept in other places as well.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau






More information about the TYPO3-dev mailing list