Luís Novais
09/20/2021, 9:32 PMpboivin
09/20/2021, 9:34 PMconfig/twill.php :
'enabled' => [
'dashboard' => false,
],
But yes, I guess you'll need to configure something else as your admin index.Luís Novais
09/20/2021, 9:35 PMohkannaduh
09/21/2021, 9:21 AMpboivin
09/21/2021, 12:44 PMpublished, deleted_at, etc., and the related scopes. Possibly some other things from model behaviors.pboivin
09/21/2021, 12:44 PMohkannaduh
09/21/2021, 12:48 PMsebastianlenton
09/21/2021, 12:57 PMpablobarrios
09/21/2021, 1:33 PMtwill:update all my blocks are working as expected, except the repeaters which are failing with Cannot read properties of undefined (reading 'title') after inspecting the JS file I see the function returning the error is:
blockTitle: function() {
var e = this.block.title || ""
, t = this.titleFieldValue || ""
, n = e && t ? " — " : "";
return this.block.hideTitlePrefix ? "".concat(t) : "".concat(e).concat(n).concat(t)
},pablobarrios
09/21/2021, 1:46 PMpablobarrios
09/21/2021, 1:49 PMphp
@twillBlockTitle('Accordion')
@twillBlockIcon('media-list')
@twillBlockGroup('app')
@formField('repeater', ['type' => 'item'])
And this is the code of the Item:
php
@twillRepeaterTitle('Item')
@twillRepeaterTrigger('Add Item')
@twillRepeaterGroup('app')
@formField('input', [
'name' => 'title',
'label' => 'Title',
'translated' => true,
])pboivin
09/21/2021, 1:53 PMthis.block would be undefined in this context.pboivin
09/21/2021, 2:09 PMpboivin
09/21/2021, 2:10 PMpboivin
09/21/2021, 2:40 PMleftblank
09/21/2021, 2:52 PMsebastianlenton
09/21/2021, 3:04 PMpboivin
09/21/2021, 3:11 PMpboivin
09/21/2021, 3:16 PMpablobarrios
09/21/2021, 3:38 PMpboivin
09/21/2021, 3:40 PMpablobarrios
09/21/2021, 3:41 PMpboivin
09/21/2021, 3:47 PMblocks table? Specifically for existing items & repeaters. Anything that can help pinpoint the issue.pboivin
09/21/2021, 3:48 PMpablobarrios
09/21/2021, 4:18 PMdpadular
09/21/2021, 8:13 PMpboivin
09/21/2021, 8:25 PMdpadular
09/21/2021, 8:26 PMpublic function afterSave($object, $fields)
{
$this->updateBrowser($object, $fields, 'downloads');
parent::afterSave($object, $fields);
}
public function getFormFields($object)
{
$fields = parent::getFormFields($object);
$fields['browsers']['downloads'] = $this->getFormFieldsForBrowser($object, 'downloads');
return $fields;
}dpadular
09/21/2021, 8:27 PMpboivin
09/21/2021, 8:29 PM