dedli
07/05/2022, 7:30 PMdedli
07/05/2022, 7:31 PMifox
07/05/2022, 7:32 PMifox
07/05/2022, 7:32 PMdedli
07/05/2022, 7:34 PMifox
07/05/2022, 7:35 PMdedli
07/05/2022, 7:39 PMifox
07/05/2022, 8:21 PMdedli
07/06/2022, 8:13 AMdedli
07/06/2022, 8:19 AMifox
07/06/2022, 10:24 AMdedli
07/06/2022, 11:27 AMSami
07/06/2022, 11:41 AMtitleFormKey
and titleColumnKey
is changed, it says 'Missing title'ifox
07/06/2022, 11:42 AMSami
07/06/2022, 11:43 AMSami
07/06/2022, 11:46 AMSami
07/06/2022, 11:46 AMnumber
field should be the titleifox
07/06/2022, 12:07 PMifox
07/06/2022, 12:08 PMifox
07/06/2022, 12:08 PMSami
07/06/2022, 12:10 PMifox
07/06/2022, 12:11 PMifox
07/06/2022, 12:11 PMSami
07/06/2022, 12:13 PMcreate.blade.php
php
@formField('input', [
'name' => $titleFormKey,
'label' => 'Parcel number',
'type' => 'number',
'required' => true,
])
ifox
07/06/2022, 12:29 PMSami
07/06/2022, 1:25 PMdedli
07/06/2022, 1:41 PMdedli
07/06/2022, 1:41 PMSami
07/06/2022, 1:53 PMindexColumns
(Admin\DocumentController)
php
'documentLink' => [
'title' => 'Link',
'field' => 'documentLinkIndex',
'html' => true,
],
and in your Document model:
php
public function getDocumentLinkIndexAttribute() {
return Nette\Utils\Html::el('a')->href('<here comes the link>')->setText('<text of the link>')->toHtml();
}
I didn't test this but I use something similar (it just doesn't point to a file)
EDIT:
won't work well with self nested modules, see https://discord.com/channels/811936425858695198/811986149064441927/994256652758941696