ifox
08/26/2022, 4:04 PMifox
08/26/2022, 4:04 PMifox
08/26/2022, 4:12 PMSami
08/27/2022, 1:37 PMHarings Rob
08/27/2022, 3:26 PM24kappa
08/30/2022, 8:04 AMMEDIA_LIBRARY_IMAGE_SERVICE=A17\Twill\Services\MediaLibrary\Glide
MEDIA_LIBRARY_ENDPOINT_TYPE=local
Everything seems to work fine but when i open the console browser I've noticed that images have a 404
in their header response even they are showed fine in the page. Does anybody had this strange behaviour ?23r01nf1n17y
08/30/2022, 10:44 AMBA7YA
08/30/2022, 12:00 PM23r01nf1n17y
08/30/2022, 12:18 PMsammyOG
08/30/2022, 5:41 PMifox
08/30/2022, 5:42 PMsammyOG
08/30/2022, 7:41 PMkalle
08/30/2022, 7:57 PMkalle
08/30/2022, 9:06 PM/
. You'll need to rename it to something else. Ill need to dig deeper to find out what is the problem.sammyOG
08/30/2022, 9:15 PMkalle
08/30/2022, 9:16 PMtwill.auth_login_redirect_path
to your custom endpoint.kalle
08/30/2022, 9:17 PMHomepage
as a dashboard alternative.
Or you can overwrite twill/views/partials/navigation/_title.blade.php
with your local view and change route dashboard to your custom which will act same as the default Dashboard.Sami
08/31/2022, 7:29 AMgetIndexTableColumns()
function), how to set a column to contain link to form?
My code:
php
protected function getIndexTableColumns(): TableColumns
{
return new TableColumns([
PublishStatus::make(),
Text::make()
->field('title')
->title('Title')
]);
}
Results inHarings Rob
08/31/2022, 7:30 AMphp
$columns->add(
Text::make()
->field($this->titleColumnKey)
->sortable()
->linkCell(function (TwillModelContract $model) {
if ($this->getIndexOption('edit', $model)) {
return $this->getModuleRoute($model->id, 'edit');
}
})
);
Harings Rob
08/31/2022, 7:31 AMSami
08/31/2022, 7:34 AM$titleColumnKey
is set to 'name'. For some reason the 'name' column automatically has the edit link 🤷🏻♂️Harings Rob
08/31/2022, 7:35 AMGvido Blue Fox
08/31/2022, 8:22 AMGvido Blue Fox
08/31/2022, 8:22 AMifox
08/31/2022, 10:56 AMSami
08/31/2022, 2:20 PMHarings Rob
08/31/2022, 2:29 PM