[TYPO3-german] FE Template with FLUIDTEMPLATE

Max-Milan Stoyanov max.stoyanov at mmslab.de
Wed Jul 11 14:53:00 CEST 2012


Hey folks,

I have some problems with my menu. I use the following typoscript for my 
site and in addition a FLUID template.

Does anybody knows why I don't recive any output of the variable menu in 
my FLUID template?

Greetings
Max

TS:
> # initialize page and fluid template
> page = PAGE
> page.10 = FLUIDTEMPLATE
> page.10 {
>   file = fileadmin/templates/standardTemplate.html
>   partialRootPath = fileadmin/templates/partials/
>   layoutRootPath = fileadmin/templates/layouts/
>   variables {
>     content < styles.content.get
>     content.select.where = colPos = 0
>     menu < temp.tmenu
>   }
> }
>
> ### START MENU ###
>
> temp.tmenu= HMENU
> temp.tmenu{
>     # erstes level
>   1 = TMENU
>   1.wrap = <ul class="menu-level1">|</ul>
>   1{
>         # no state: normale Formatierung
>     NO{
>       wrapItemAndSub = <li>|</li>
>     }
>          # act state: gültig von der rootseite bis zur aktuellen Seite
>     ACT=1
>     ACT{
>       wrapItemAndSub = <li class="menu-level1-active">|</li>
>     }
>          # cur state: gültig für die aktuelle Seite
>     CUR=1
>     CUR{
>       wrapItemAndSub = <li class="menu-level1-current-active">|</li>
>     }
>          # ifsub state: gültig für seiten die unterseiten haben
>     IFSUB=1
>     IFSUB{
>       wrapItemAndSub = <li class="menu-level1-with-subpage">|</li>
>     }
>   }
>     # zweites level
>   2 = TMENU
>   2.wrap = <ul class="menu-level2">|</ul>
>   2{
>     NO{
>       wrapItemAndSub = <li>|</li>
>     }
>     ACT=1
>     ACT{
>       wrapItemAndSub = <li class="menu-level2-active">|</li>
>     }
>     CUR=1
>     CUR{
>       wrapItemAndSub = <li class="menu-level2-current-active">|</li>
>     }
>     IFSUB=1
>     IFSUB{
>       wrapItemAndSub = <li class="menu-level2-with-subpage">|</li>
>     }
>   }
>     # drittes level
>   3 = TMENU
>   3.wrap = <ul class="menu-level3">|</ul>
>   3{
>     NO{
>       wrapItemAndSub = <li>|</li>
>     }
>     ACT=1
>     ACT{
>       wrapItemAndSub = <li class="menu-level3-active">|</li>
>     }
>     CUR=1
>     CUR{
>       wrapItemAndSub = <li class="menu-level3-current-active">|</li>
>     }
>     IFSUB=1
>     IFSUB{
>       wrapItemAndSub = <li class="menu-level3-with-subpage">|</li>
>     }
>   }
> }
>
> ### ENDE MENU ###
>
> # RealURL configuration
> config {
>   prefixLocalAnchors = all
>   simulateStaticDocuments = 0
>   baseURL = http://46.38.242.247/typo3
>   tx_realurl_enable = 1
> }

FLUID:
> <div id="menu">
>   <f:format.raw>{menu}</f:format.raw>
> </div>
> <hr />
> <div id="content">
>  <f:format.raw>{content}</f:format.raw>
> </div>


More information about the TYPO3-german mailing list