luciusvorenus_
TCTwill CMS
•Created by luciusvorenus_ on 4/14/2023 in #👊support
[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.4 replies
TCTwill CMS
•Created by luciusvorenus_ on 4/14/2023 in #👊support
[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 disappears.
is there a simple way of maintaining the permalink functionality, even by attaching it to a suitably named text field?
I think the workaround for me right now, is just run with just the title, and make the other fields required in the main (editing) form.
However, I would have thought that when including...
$form = parent::getForm($model);
...at the start, it might have maintained such functionality.
I notice that the parent function just returns a new form, so wondering at which point the js creating the automated permalink behaviour needs / should be injected to maintain functionality. Maybe this is the intended behaviour and not a bug?14 replies
TCTwill CMS
•Created by luciusvorenus_ on 3/24/2023 in #👊support
[3.x.dev] Call to undefined method ReflectionUnionType::getName()
10 replies