문제

Is it possible to render a menu using Fluid, so that there is no html in TypoScript files? So far I have seen only getting the whole html menu via f:cObject.

도움이 되었습니까?

해결책

The problem is that the TypoScript cObjects normally return a rendered (as configured) representation (a string). In Fluid you iterate through objects or arrays. Therefore TypoScript und Fluid don't work together the way you'd like.

Have a look at the extension "vhs". It brings you the features you need, e.g. for a menu: https://fedext.net/viewhelpers/vhs/master/Page/MenuViewHelper.html

With vhs you no longer need to define menus in TypoScript.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top