Rayderxx
05/19/2021, 6:40 PMDmi3yy
05/19/2021, 6:47 PMPlease set the Presenter path to your Presenter :presenterAdmin FQN
and found info go to read and learn )Rayderxx
05/19/2021, 6:48 PMRayderxx
05/19/2021, 6:50 PMRayderxx
05/19/2021, 6:51 PMprotected function formData($request)
{
return [
'categories' => Categories::published()->pluck('title', 'id')
];
}
Rayderxx
05/19/2021, 6:51 PMDmi3yy
05/19/2021, 6:52 PMbwaltz6
05/19/2021, 6:54 PMifox
05/19/2021, 7:05 PM$slugAttributes
will generate a slug in the module's slugs table for each key. most of the time, you'd use only one key, most likely title
or your other "title" field. if you use multiple keys, you need the corresponding column in your slug table. this can be used to allow the same slug to exist depending on a dependent field (usually a belongsTo relationship).ifox
05/19/2021, 7:06 PMprotected $permalinkBase = '';
in your PageController
bwaltz6
05/19/2021, 7:07 PMbwaltz6
05/19/2021, 7:07 PMbwaltz6
05/19/2021, 7:10 PMbwaltz6
05/19/2021, 7:11 PMifox
05/19/2021, 7:14 PMbwaltz6
05/19/2021, 7:15 PMbwaltz6
05/19/2021, 7:19 PMprotected $permalinkBase = '';
works great. I can submit a PR for the docs, if that would helpifox
05/19/2021, 7:21 PMifox
05/19/2021, 7:21 PMDmi3yy
05/19/2021, 8:11 PMifox
05/19/2021, 8:13 PM@extends('twill::layouts.form', [
'additionalFieldsets' => [
['fieldset' => 'attributes', 'label' => 'Attributes'],
]
])
@section('contentFields')
@formField('...', [...])
...
@stop
@section('fieldsets')
@formFieldset(['id' => 'attributes', 'title' => 'Attributes'])
@formField('...', [...])
...
@endformFieldset
@stop
ifox
05/19/2021, 8:13 PMifox
05/19/2021, 8:14 PMDmi3yy
05/19/2021, 8:19 PMDmi3yy
05/19/2021, 8:21 PMifox
05/19/2021, 8:22 PMifox
05/19/2021, 8:23 PMDmi3yy
05/19/2021, 8:23 PMRayderxx
05/20/2021, 7:23 AMDmi3yy
05/20/2021, 7:54 AM