i am trying to create an header in my partials folder, but actually it doesn't showed up if i am trying to insert it into my template.
My setup.ts file looks as follow:
page = PAGE
page {
200 = FLUIDTEMPLATE
200 {
file = fileadmin/private/templates/home/template.html
partialRootPath = fileadmin/private/partials
layoutRootPath = fileadmin/private/layouts/home
....
In my Layout.html file i am try to include the Header partial with the section "test" as follows:
<div>
<f:render partial='Header' section='test' />
</div>
The Header partial file is written as below:
<f:section name="test">
<ul class="flexnav" data-breakpoint="800">
<f:cObject typoscriptObjectPath="lib.navbar" />
</ul>
The "lib.navbar" is declared in my object.ts file:
lib.navbar = HMENU
lib.navbar {
entryLevel = 1
1 = TMENU
1 {
wrap = <ul class="test1"> | </ul>
NO = 1
expAll = 1
NO {
wrapItemAndSub = <li> | </li>
stdWrap.htmlSpecialChars = 1
ATagTitle.field = title
}
ACT <.NO
ACT {
wrapItemAndSub = <li class="active"> | </li>
}
}
2 = TMENU
2 {
expAll = 1
wrap = <ul> | </ul>
NO {
wrapItemAndSub = <li> | </li>
}
}
My problem is now, that i cannot use the variable lib.navbar in my templates. It is always empty. Does anyone know what i am doing wrong here?
page.199 < lib.navbardoes it output the menu? - Riccardo De Contardi