b13 / menus

TYPO3 Extension for creating fast menus in a fast fashion
GNU General Public License v2.0
54 stars 22 forks source link

Pre-resolve menu item urls #45

Closed christophlehmann closed 3 years ago

christophlehmann commented 3 years ago

Currently menu items does not contain the their url.

When i use the f:link.page or f:link.typolink ViewHelper a lot of code is executed to resolve an url for a menu item by {item.uid} which also means extra SQL queries for every menu item. So my idea is to resolve the urls before they go to cache.

What do you think?

With that one can simple write <a href={item.url}>{item.nav_title}</a>

bmack commented 3 years ago

Hi @christophlehmann ,

the main problem with this approach are the followings:

Maybe a second cache entry (with the generated links) would solve this...

christophlehmann commented 3 years ago

Hi @bmack Thanks for your clarification. If it's not something which can be solved in this ext we can close it ;-)