crp87
05/14/2023, 12:36 PMTwillBlocks::registerPackageBlocksDirectory(
__DIR__ . '/Twill/Capsules/Pages/resources/views/twill/blocks'
);
But how can I server the "preview(s)" which are usually located in /resources/views/site/blocks ? twill 3.
and will there be a command or how do i need to adjust my commands, to generate twill resources directly inside my package>capsule?crp87
05/14/2023, 12:54 PMifox
05/15/2023, 10:32 AMifox
05/15/2023, 10:33 AMcrp87
05/15/2023, 5:31 PMcrp87
05/15/2023, 9:19 PM$this->loadViewsFrom(__DIR__ . '/Twill/Capsules/Pages/resources/views', 'twill-frontend-pages-views');
This way, I can load the page.blade.php layout from package but the global resources/views/site/blocks/*.blade.php and resources/views/site/layouts/*.blade.php seems the only way those files are being loaded. not from within the package.
same applies to settings views. I couldn't find a register/load method on TwillAppSettings facade to set a path to load settings groups/sections from 🙂crp87
05/16/2023, 5:29 PM