[TYPO3-german] TS split mit count_menuItems

chris Wolff chris at connye.com
Sun Sep 15 01:34:55 CEST 2013


Hi Sebastian,
warum nimmst du nicht zwei menüs hintereinander?
mit den eigenschaften
.maxItems
.begin

kannst du das HMENU so steuern das das erste menü nur die ersten 3 ausgibt.
und das zweite menü erst danach beginnt.

gruss chris

Am 14. September 2013 11:21 schrieb Sebastian Schmal <sebastian.schmal at gmx.de>:
> geht leider auch nicht.
>
>
>
> ------------------------------------------
>
> 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 14.09.2013 10:10, schrieb Sebastian Schmal:
>
>> 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!
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



-- 
christian wolff - webdeveloper, tech-loving geek and typo3 enthusiast
telefon: +49 30 347 244 88
mobil:  +49 179 49 44 758
email: chris at connye.com
adresse: friedelstraße 31 - 12047 berlin

xing-profil: http://www.xing.com/profile/Christian_Wolff43
google+: https://plus.google.com/u/0/115669673917212236875/posts?hl=de
facebook: https://www.facebook.com/1stMachine
flattr: https://flattr.com/profile/1stmachine


More information about the TYPO3-german mailing list