Hi, i'm new at twill and i'm trying to do grouping by title in the primary navigation which is not module, but i'm getting an error.Any help would be appreciated.
Route [twill.navigation.index] not defined. (View: C:\xampp\htdocs\twill-skeleton\vendor\area17\twill\views\partials\navigation_overlay_navigation.blade.php) (View: C:\xampp\htdocs\twill-skeleton\vendor\area17\twill\views\partials\navigation_overlay_navigation.blade.php) (View: C:\xampp\htdocs\twill-skeleton\vendor\area17\twill\views\partials\navigation_overlay_navigation.blade.php)
This is my code, i have tried it both ways with 'twill.navigation.index' and 'admin.navigation.index'
AppServiceProvider
TwillNavigation::addLink(
NavigationLink::make()
->title('Navigation')
->forRoute('twill.navigation.index')
->doNotAddSelfAsFirstChild()
->setChildren([
NavigationLink::make()->forModule('menuLinks')->title('Top'),
NavigationLink::make()->forModule('footerMenuLinks')->title('Bottom'),
]),
);
twill.php
Route::group(['prefix' => 'navigation'], function () {
TwillRoutes::module('menuLinks');
TwillRoutes::module('footerMenuLinks');
});
i have also added in twill.php config, this code i don't know if it is needed
'navigation' => [
'route' => 'twill.navigation.index',
'primary_navigation' => [
'menuLinks' => [
'title' => 'Top',
'module' => true,
],
'footerMenuLinks' => [
'title' => 'Bottom',
'module' => true,
],
],
],