[TYPO3-german] TS split mit count_menuItems
Sebastian Schmal
sebastian.schmal at gmx.de
Sat Sep 14 10:10:09 CEST 2013
Glaube das ich es habe:
if {
value.data = register:count_HMENU_MENUOBJ
negate = 1
isLessThan = 3
}
das ts sollte der richtige weg sein
------------------------------------------
TYPO3 - TIPS - ANLEITUNGEN - NEWS
unter: http://blog.ingeniumdesign.de/
TYPO3 Webdesign Agentur Wiesbaden - Frankfurt
unter: http://www.ingeniumdesign.de/
Facebook Fan
http://www.facebook.com/ingeniumdesign/
------------------------------------------
Am 13.09.2013 20:23, schrieb Sebastian Schmal:
> Hallo Liste,
>
> ich weiss nciht ganz ob das so richtig ist:
>
> ich möchte gerne 3-4 Items im ersten DIV und den kompletten Rest der
> Items in dem zweiten DIV
>
> so ganz komme ich hier nicht klar.
> Kann mir wer da helfen?
>
>
> # Menü der Unterseiten (mit Inhaltsangabe)
> # Bild aus den Seiteneigenschaften
> tt_content.menu.20.8 >
> tt_content.menu.20.8 = COA
> tt_content.menu.20.8 {
> wrap = <div id="teaser-topics-wrap-js" class="teaser-topics-wrap
> items-{register:count_MENUOBJ}" style="height: 305px;
> overflow:hidden;">|</div><div id="refs-more"><a class="refs-more-button"
> href="#">weitere Referenzen anzeigen</a></div>
> wrap.insertData = 1
>
>
> 10 = HMENU
> 10 {
>
> special = directory
> special.value.field = pages
>
> 1 = TMENU
> 1 {
>
> wrap >
> wrap = <div class="teaser-topics-first-wrap-outer">|</div>
>
> expAll = 1
> noBlur = 1
> NO >
> NO {
>
> before >
> beforeWrap >
> after >
> linkWrap >
> ATagBeforeWrap >
> ATagParams >
> doNotLinkIt = 1
> doNotShowLink = 0
>
> wrapItemAndSub >
> ATagTitle >
> stdWrap >
> stdWrap.cObject >
> stdWrap.cObject = COA
> stdWrap.cObject {
>
> if.value.data = register:count_HMENU_MENUOBJ
> if.negate = 1
> if.isLessThan.prioriCalc = 1
> if.isLessThan.cObject = TEXT
> if.isLessThan.cObject.insertData = 1
> if.isLessThan.cObject.value = ({register:count_menuItems}+2)/2
> wrap = <div class="teaser-topics-wrap"
> id="item-{register:count_MENUOBJ}">|</div>
> wrap.insertData = 1
>
>
> IMAGE
> 10 = IMAGE
> 10 {
> wrap = <div class="teaser-illu">|</div>
> file {
> width = 325c
> height =
> maxW = 325c
> maxH =
> import {
> cObject = TEXT
> cObject {
> cObject = TEXT
> cObject {
> value =
> fileadmin/user_upload/BeispielBilder/sliderneu03.jpg
> override {
> required = 1
> data = levelmedia:-1, slide
> wrap = uploads/media/|
> listNum = 0
> }
> }
> override {
> required = 1
> field = media
> wrap = uploads/media/|
> listNum = 0
> }
> }
> }
> }
> altText.field = title
> titleText.field = title
> imageLinkWrap = 1
> imageLinkWrap {
> enable = 1
> typolink {
> target = _self
> parameter.field = uid
> ATagParams = class="more"
> title.cObject=TEXT
> title.cObject.field = nav_title // subtitle // title
> }
> }
> }
>
> #WRAP Start
> 15 = TEXT
> 15 {
> wrap = <div class="teaser-header-text-wrap">
> }
>
> #TEXT
> 20 = COA
> 20 {
> wrap = <div class="teaser-text">|</div>
> 10 = TEXT
> 10 {
> field = abstract
> crop = 90 | ... | 1
> wrap = <h2 class="teaser-text-inner">|</h2>
> }
> #HEADLINE
> 20 = TEXT
> 20 {
> wrap = <p class="more">|</p>
> field = title
> ATagTitle.field = nav_title // subtitle // title
> typolink.parameter.field = uid
> typolink.title.cObject=TEXT
> typolink.title.cObject.field = nav_title // subtitle //
> title
> }
> }
> #WRAP Start END
> 25 = TEXT
> 25 {
> wrap = </div>
> }
> }
>
> }
> }
>
>
> }
> #end lvl1
>
> 20 < .10
> 20.1.wrap = <div class="teaser-topics-second-wrap-outer">|</div>
> 20.1.NO.stdWrap.cObject {
> if.value.data = register:count_HMENU_MENUOBJ
> if.negate >
> }
>
> }
>
>
>
> vielen Dank Euch alle!
More information about the TYPO3-german
mailing list