TC
Twill CMSfoleystorm

featured

Good evening. I would like some help. I've upgraded to version 3 of Twill, and the "featured" functionality has stopped working. How can I configure it in this new version?
F
foleystorm332d ago
I used to use twill-navigation, but now I'm using the appServiceProvider to declare the routes.
I
ifox332d ago
hi @foleystorm you mean buckets, right?
F
foleystorm332d ago
Yes Hi,Ifox
I
ifox332d ago
did you try adding a NavigationLink that points to a route, like it was defined in the twill-navigation before? NavigationLink::make()->forRoute('admin.featured.bucket-key')
F
foleystorm332d ago
I tried that: TwillNavigation::addLink( NavigationLink::make() ->forRoute('admin.featured.videos') ->setChildren([ NavigationLink::make() ->forRoute('admin.featured.videos') ->title('Vídeos'), NavigationLink::make() ->forRoute('admin.featured.posts') ->title('Notícias'), ]) ->doNotAddSelfAsFirstChild() ->title('Destaques') ); but it didn't work.
I
ifox332d ago
whats the error?
F
foleystorm332d ago
No description
I
ifox332d ago
oh sorry, route names are prefixed by twill now, not admin
F
foleystorm332d ago
Twill.php: 'enabled' => [ 'buckets' => true, ], 'buckets' => [ 'videos' => [ 'name' => 'Home', 'buckets' => [ 'videos_feature' => [ 'name' => 'Em destaque', 'bucketables' => [ [ 'module' => 'videos', 'name' => 'videos', 'repository' => 'App\Repositories\VideoRepository', 'scopes' => ['published' => true], ], ], 'max_items' => 3, ], ], ], 'posts' => [ 'name' => 'Home', 'buckets' => [ 'posts_feature' => [ 'name' => 'Em destaque', 'bucketables' => [ [ 'module' => 'posts', 'name' => 'posts', 'repository' => 'App\Twill\Capsules\Posts\Repositories\PostRepository', 'scopes' => ['published' => true, 'orderByPublishedDate' => true], ], ], 'max_items' => 3, ], ], ], ],
I
ifox332d ago
so forRoute('twill.featured.posts')
F
foleystorm332d ago
It worked!!! Thank you so much, Ifox!!! I would like to congratulate you for always helping people.
Want results from more Discord servers?
Add your server
More Posts
PhpUnit Test for Twill Blocks/Modules?Can we write PhpUnit test for Twill Blocks and Modules?BlockComponent blocks are not available in BlockEditorI created blocks using `php artisan twill:make:componentBlock name` as per documentation, but none oSlows down the page after saving the @formConnectedFields fieldGood afternoon I have several roles to which I want to attach the ability to select certain actionsChecked checkboxes by defaultGood afternoon (morning)! I use the Multiple Checkboxes field How can I make certain fields checkedDefine Settings-Views inside a package>capsuleIs there a way to configure a settings related view inside a package capsule? I couldn't find somethDatePicker not updating or incorrectly updating fieldHaving a weird issue with the DatePicker field which seems to have popped up in the last few weeks ofileparams in ModelIs there any documentation on fileparams. For instance how to add file types parameter to itThird Level CategoriesHow do we set our model to cater a third level category or parent->child->child? Currently it only cSelect FieldHi, is there a way to search an item in a select block? Just like autocompleteHow to create multiple navigations with multiple levels based on the navigation GuideFollowing the Guide at https://twillcms.com/guides/page-builder-with-blade/adding-navigation.html itadding a custom link in the dashboardIs there any way to add a link to a custom page in the dashboard? like adding the link in dashbord.m->getRelated for menu didnt work.I follow this manual https://twillcms.com/guides/page-builder-with-blade/adding-navigation.html I doTwill + Spatie permissionsHow would someone go about implementing spatie permissions in Twill. The spatie permissions are pretv3 package resources / blade templatesI created a fresh v3 package but inside the documentation I can’t find a description on how to add bv3 Package creation - version mismatchHey, I started installing twill 3 n a fresh Jetstream based laravel App. I could also create my firHi, do you know where I can add another link?Aligned with All Items, Published, Draft and Trashed. I just want to add new linkTwill advanced permissionsI've followed the documentation with regard to adding the enabled and permission key to config/twillUpdating Translations from the Command LineHi all, as usual I assume I'm misunderstanding something basic about how Laravel works, but I have bPreview ModulesHey how do you go about previewing modules? There is not a lot of documentation available. How do yoLegacy Settings Sections return values doesn't workHi, After save Settings to database, values doesn't bind in inputs. How fixed this @ifox.dev ?