[TYPO3-english] Rendering sys_category tree in FE
Jan Kornblum
jan.kornblum at gmx.de
Tue Dec 31 18:43:10 CET 2013
Dear newsgroup,
i've got an extended sys_category model to categorize own "recipe"
records. Everything is fine and rendering the category tree in the
backend using makeCategorizable() to assign categories works. Now i
would like to render a category tree in the frontend (like a HMENU
does) to filter my "recipe" records. how to realize this the best way?
"categoryRepository->findAll()" returns a "flat" result where each
category has got a "parent" property but somthing like "subcategories"
is missing. Do i have to rebuild the category array myself to store
each categories subcategories to be able to loop over them in fluid? Or
are there any possibilities given by the core API or by fluid to render
a category tree like a HMENU in the frontend?
Kind regards and "einen guten Rutsch", Jan
More information about the TYPO3-english
mailing list