user
03/18/2022, 4:32 AMHarings Rob
03/18/2022, 7:36 AMKormi
03/18/2022, 9:54 AMkalle
03/18/2022, 10:01 AMKormi
03/18/2022, 10:05 AMKormi
03/18/2022, 10:06 AMKormi
03/18/2022, 10:07 AMKormi
03/18/2022, 10:08 AMkalle
03/18/2022, 10:08 AMKormi
03/18/2022, 10:10 AMKormi
03/18/2022, 10:12 AMkalle
03/18/2022, 10:13 AMKormi
03/18/2022, 10:15 AMKormi
03/18/2022, 10:15 AMKormi
03/18/2022, 12:12 PMRoute::module('callToActions');
Route::module('technologies');
Route::module('categoryTechnologies');
Route::module('markets');
Route::module('successStories');
Route::module('solutions');
Route::module('categorySolutions');
I would like to have Category inside technologies & solutions
So i edit my admin.php routes like this
Route::module('callToActions');
// Route::module('technologies');
Route::module('markets');
Route::module('successStories');
// Route::module('solutions');
Route::group(['prefix' => 'technologies'], function () {
Route::module('technologies');
Route::module('categoryTechnologies');
Route::module('callToActions');
Route::module('markets');
Route::module('successStories');
Route::module('solutions');
});
Route::group(['prefix' => 'solutions'], function () {
Route::module('solutions');
Route::module('categorySolutions');
Route::module('callToActions');
Route::module('markets');
Route::module('successStories');
Route::module('technologies');
Route::module('categoryTechnologies');
});Kormi
03/18/2022, 12:12 PMreturn [
'solutions' => [
'title' => 'Solutions',
'route' => 'admin.solutions.solutions.index',
'primary_navigation' => [
'solutions' => [
'title' => 'Pages',
'module' => true,
],
'categorySolutions' => [
'title' => 'Categories',
'module' => true,
],
'callToActions' => [
'title' => 'CallToActions',
'module' => true,
],
],
],
'technologies' => [
'title' => 'Technologies',
'route' => 'admin.technologies.technologies.index',
'primary_navigation' => [
'technologies' => [
'title' => 'Pages',
'module' => true,
],
'categoryTechnologies' => [
'title' => 'Categories',
'module' => true,
],
'callToActions' => [
'title' => 'CallToActions',
'module' => true,
],
],
],
'markets' => [
'title' => 'Markets',
'module' => true,
],
'successStories' => [
'title' => 'Success Stories',
'module' => true,
],
'callToActions' => [
'title' => 'CallToActions',
'module' => true,
],
];
All works fine I see tables...
but when I try to edit a any post model this error appear
> Symfony\Component\Routing\Exception\RouteNotFoundException
> Route [admin.solutions.browser] not defined. (View: /srv/www/mysite.com/current/vendor/area17/twill/views/partials/form/_browser.blade.php)
> or
> Symfony\Component\Routing\Exception\RouteNotFoundException
> Route [admin.technologies.browser] not defined. (View: /srv/www/mysite.com/current/vendor/area17/twill/views/partials/form/_browser.blade.php)
What is the problem?
Is there a way to do what I'm doing in a better way?Harings Rob
03/18/2022, 12:14 PMkalle
03/18/2022, 12:21 PMKormi
03/18/2022, 12:58 PMKormi
03/18/2022, 12:58 PM@formField('browser', [
'sortable' => false,
'translated' => true,
'moduleName' => 'technologies',
'name' => 'technologies_related',
'label' => __('Technologies'),
'max' => -1,
])Harings Rob
03/18/2022, 1:00 PMHarings Rob
03/18/2022, 1:01 PMmodules key instead of moduleNameKormi
03/18/2022, 1:01 PMHarings Rob
03/18/2022, 1:02 PMKormi
03/18/2022, 1:02 PMKormi
03/18/2022, 1:02 PMKormi
03/18/2022, 1:05 PMBA7YA
03/18/2022, 5:40 PManmsid
03/20/2022, 1:57 PM@extends('twill::layouts.form',[
'reviewProcess' => [
['label' => 'Approve Answer', 'value' => 1, ]
],
])
However, when I hit update or publish it seems there's no change in the payloads sent to the backend from the review status.
I'm using Twill version 2.7
Note: I'm aware that there's a workaround for approval process by using custom action button in publisherRowsiemand002
03/20/2022, 5:21 PMadmin_middleware_group setting to a custom admin group which is a copy of web but with the new middleware added.
Any thoughts or is it okay?