typo3 - Fluid, Pagebrowse with VHS-Viewhelper -
i use vhs viewhelper "v:page.menu.browse". can click through pages on same level. works fine. however, not working, navigation elements appear if more 1 page available. i've tried f:count query whether more 1 page available. unfortunately, shows me items still on. has ideas?
<v:page.menu.browse> <f:if condition="<f:count>{menu.prev}</f:count> > 1"> <f:then> <li><a href="{menu.prev.link}"><span class="icondetail-icon_prev"></span></a>1</li> </f:then> <f:else> <f:if condition="<f:count>{menu.prev}</f:count> > 1"> <f:then> <li><a href="{menu.last.link}"><span class="icondetail-icon_prev"></span></a>2</li> </f:then> <f:else> </f:else> </f:if> </f:else> </f:if> <li><a href="javascript:history.back();"><span class="icondetail-icon_uebersicht"></span></a></li> <li><span class="icondetail-icon_mail"></span></li> <f:if condition="<f:count>{menu.next}</f:count> > 1"> <f:then> <li><a href="{menu.next.link}"><span class="icondetail-icon_next"></span></a>3</li> </f:then> <f:else> <f:if condition="<f:count>{menu.next}</f:count> > 1"> <f:then> <li><a href="{menu.first.link}"><span class="icondetail-icon_next"></span></a>4</li> </f:then> <f:else> </f:else> </f:if> </f:else> </f:if> </v:page.menu.browse>
you can't use tag notation within attributes, have here:
<f:if condition="<f:count>{menu.prev}</f:count> > 1">
instead should use inline notation:
<f:if condition="{menu.prev -> f:count()} > 1">
or
<f:if condition="{f:count(subject: menu.prev)} > 1">
Comments
Post a Comment