[TYPO3-english] Get rid of page title in mega menu level 2

Wolfgang Maschke wm at wolfgang-m.de
Thu Sep 4 16:52:34 CEST 2014


Hi Loek,

thx a lot. That's it.

regards
wolfgang



Am 04.09.2014 um 16:21 schrieb Loek Hilgersom:

Hi Wolfgang,

There is no standard option for disabling the content of menu items, but you can overwrite it... with nothing, an empty cObject in this case.

So just add this:
   2.NO.stdWrap.cObject = TEXT

or this (the same, but more obvious):
   2.NO.stdWrap.cObject = TEXT
   2.NO.stdWrap.cObject.value =

Hth,
Loek


On 02-09-14 16:40, Wolfgang Maschke wrote:
> Hello,
> 
> I built a drop down megamenu in 6.2.x with fetching image file, image title and
> image description.
> Now I want to get rid of the standard page title in level 2 because it is a
> double of the image title.
> 
> #####################
> ##### MEGA MENU #####
> #####################
> 
> lib.navigation.main >
> lib.navigation.main = COA
> lib.navigation.main {
> 10 = HMENU
>   10 {
>     1 = TMENU
>       1 {
>           wrap = <ul class="nav navbar-nav navbar-main">|</ul>
>           expAll = 1
>           noBlur = 1
>           NO = 1
>           NO {
>               ATagTitle.field = abstract // description // title
>               ATagBeforeWrap = 1
>               linkWrap = |<mark class="bar"></mark>
>               wrap = <li>|</li>
>               wrap.override.cObject = COA
>               wrap.override.cObject {
>                   if {
>                       value = 4
>                       equals.field = doktype
>                       isTrue = 1
>                       isTrue.if {
>                           value.data = TSFE:page|uid
>                           equals.field = shortcut
>                       }
>                   }
>                   10 = TEXT
>                   10.value = <li class="active">|</li>
>               }
>           }
>           ACT < .NO
>           ACT {
>               wrap = <li class="active">|</li>
>           }
>           CUR < .ACT
>           IFSUB < .NO
>           IFSUB {
>               doNotLinkIt = 1
>               allWrap = <a href="#" class="dropdown-toggle"
> data-toggle="dropdown">|<b class="caret"></b></a>
>               wrapItemAndSub.insertData = 1
>               wrapItemAndSub = <li class="dropdown menuid-{field:uid}
> menupos-{register:count_MENUOBJ}">|</li>
>           }
>           ACTIFSUB < .IFSUB
>           ACTIFSUB {
>               wrapItemAndSub = <li class="active dropdown menuid-{field:uid}
> menupos-{register:count_MENUOBJ}">|</li>
>           }
>           CURIFSUB < .ACTIFSUB
>       }
>      2 < .1
>      2 {
>          expAll = 1
>          NO = 1
>          NO {
>              ATagTitle.field >
>              ATagBeforeWrap >
>              linkWrap >
>              wrapItemAndSub = <li class="dropdownmega">|</li>
>              stdWrap.innerWrap.cObject = FILES
>              stdWrap.innerWrap.cObject {
>                references {
>                  table = pages
>                  uid.field = uid
>                  fieldName = media
>                }
>                renderObj = COA
>                renderObj {
>                  10 = TEXT
>                  10 {
>                    # file: title ausgeben
>                    stdWrap.data = file:current:title
>                    stdWrap.wrap = <p class="bigtext"><strong>|</strong></p>
>                  }
>                  20 = IMAGE
>                  20 {
>                    # file: image ausgeben
>                    file.import.data = file:current:publicUrl
>                    file.width = 200
>                    wrap = <div class="ico">|</div>
>                  }
>                  30 = TEXT
>                  30 {
>                    # file: description ausgeben
>                    stdWrap.data = file:current:description
>                    stdWrap.wrap = <p>|</p>
>                  }
>                  40 = TEXT
>                  40 {
>                    value = » alle Infos & alle Produkte
>                    wrap = <p class="mehrlesen"><strong>|</strong></p>
>                  }
>                }
>              }
>          }
> 
>          ACT < .NO
>          ACT = 1
>          ACT.ATagParams.dataWrap = title="{field:title}" class="act
> left-nav-header-new" id="acts"
>          wrap =  <ul class="dropdown-menu">|</ul>
>          CUR < .ACT
>          IFSUB >
>          ACTIFSUB >
>          CURIFSUB >
>     }
>     3 >
>     4 >
> }
> }
> 
> Any ideas or hints for me?
> Wolfgang
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list