contributte / menu-control

🍔 Menu and breadcrumb components for Nette framework (@nette)
MIT License
29 stars 20 forks source link

Option to add another custom template #62

Closed mokrys closed 1 year ago

mokrys commented 1 year ago

Hi, I couldn't find the option to add a custom template. I get an exception "Call to undefined method [Contributte\MenuControl\UI\MenuComponent::renderFooter".

Is possible add to config something like:

menu: templates: menu: %appDir%/Components/Menu/menu.latte footer: %appDir%/Components/Menu/footer.latte sitemapFront: %appDir%/Components/Menu/sitemapFront.latte sitemapXml: %appDir%/Components/Menu/sitemapXml.latte

This config could generate methods like renderMenu(), renderFooter()....

foxycode commented 1 year ago

Unfortunately, I don't know how could config generate methods. Also I believe this function would have only little audience.

Menu supports basic templates: https://github.com/contributte/menu-control/tree/master/.docs#templates

Of course, you can always send PR.