[3.0.0] componentBlock overriding getBlockIcon doesn't seem to work?
(Successfully changed the title by overriding it's static function)
Checked twill:list:icon for the wysiwyg_header icon and added the following to
App\View\Components\Twill\Blocks\Article\Header.php
public static function getBlockIcon(): string
{
return 'wysiwyg_header';
}
No change in icon, and, in fact, if I comment out that function locally, and change the parent function in TwillBlockComponent.php (😱 ), it doesn't have any effect either (with any different icons (haven't tried them all!))
Can't see what I've missed.L
luciusvorenus_•393d ago
@ifox.dev Gentle bump in your direction when you have a minute. Not getting why it doesn't work!
A
agnonym•393d ago
Hi @luciusvorenus_ @ifox.dev , I just had the same problem trying to create a Block class. What I think is getBlockIcon() is never called, I just made a PR: https://github.com/area17/twill/pull/2238
GitHub
~ | Block::forComponent(): missing call to $componentClass::getBloc...
Using TwillBlockComponent for a Block, the static method getBlockIcon() is never called, so its icon is always the default 'text'
L
luciusvorenus_•393d ago
Thanks for looking into that!
1.4KMembers
View on DiscordWant results from more Discord servers?
More Posts[3.0.0] Maintaining automated Permalink Generation when using getCreateForm to add fields.As soon as I add any fields, using the Formbuilder on this function, the automated permalink disappemulti select selected optionsI'm using the multi select as documented in https://twill.io/docs/form-fields/multi-select.html#mult[3.0.0-rc4] - How to show current value in a select form fieldCurrently I have my select field defined as:
`@formField('select', [
'name' => 'work_year',
[3.0.0-rc4] Images not found on remote server - League\\Glide\\Filesystem\\FileNotFoundExceptionI just went from my local to my remote server and some images are showing up others are getting a 5[Twill2] Do settings section support media and how?As title says, is it possible to inject media here or should I make a custom settings singleton to h[3.x.dev] Call to undefined method ReflectionUnionType::getName()Newbie to Twill here.
Fresh install of Laravel 10.4.1 / PHP 8.2.4 / MYSQL 8.0.32 on Ubuntu Budgie 2Add custom icons into twillI add the icons into the path `resource/views/admin/icons` and I run the command, result is ok, but Select an another block in a block?Hi everyone,
I have a function to create a new block with name "Columns block". With this block, us