[TYPO3-english] Rendering sys_category tree in FE

Torsten Schrade schradt at uni-mainz.de
Thu Jan 2 07:37:28 CET 2014


Hi Jan,

happy new year to you. I had a similar task some time ago. I've put my 
solution together as a little example extension. Check out this link:

https://github.com/digicademy/categories_example

Have fun and best regards,
Torsten

On 2013-12-31 17:43:10 +0000, Jan Kornblum said:

> 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