_crp87
_crp87
TCTwill CMS
Created by thelongestsigh on 5/4/2023 in #👊support
Custom form fields
Hey 👋 how would you provide a custom form field like this wysiwyg editor from within a package? Can they also be registered from package path inside package Service Provider?
94 replies
TCTwill CMS
Created by _crp87 on 5/22/2023 in #👊support
Define Settings-Views inside a package>capsule
alternative could be a config to read the path(s) from which can be extended through package service providers
6 replies
TCTwill CMS
Created by _crp87 on 5/22/2023 in #👊support
Define Settings-Views inside a package>capsule
So fallback would be to read settings classes from resource path but every package can add its own paths to read additional settings from
6 replies
TCTwill CMS
Created by _crp87 on 5/22/2023 in #👊support
Define Settings-Views inside a package>capsule
The problem is AppSetting class which has this code:
public function getFormBlocks(): array
{
$directory = resource_path('views/twill/settings/' . $this->getSettingGroup()->getName());
public function getFormBlocks(): array
{
$directory = resource_path('views/twill/settings/' . $this->getSettingGroup()->getName());
means, there is no way to use a settings view from within a package>capsule. @ifox.dev I would suggest to read the path from a separate method like getSettingsDir which can be updated by a static setter for example: useSettingsDir(string $directory) or even better: addSettingsDir(string $directory)
6 replies
TCTwill CMS
Created by _crp87 on 5/16/2023 in #👊support
How to create multiple navigations with multiple levels based on the navigation Guide
Haven’t seen the buckets before. I think they are the solution to my problem. Thank you!! 🍀
3 replies