Harings Rob
11/16/2021, 2:51 PMIvan Markov
11/16/2021, 2:52 PMHarings Rob
11/16/2021, 2:52 PMpboivin
11/16/2021, 3:12 PMoriginal_media_for_extensions in config/twill.php :
'glide' => [
'original_media_for_extensions' => ['gif'],
// ...
],
This makes $item->image() return the original file for all .gif images.pboivin
11/16/2021, 3:13 PMaleksdish
11/16/2021, 4:04 PMpboivin
11/16/2021, 4:11 PMaleksdish
11/16/2021, 4:14 PMifox
11/16/2021, 4:21 PMaleksdish
11/16/2021, 4:22 PMpboivin
11/16/2021, 4:23 PMAppServiceProvider :
public function boot()
{
Config::set('twill-navigation', [
// ...
]);
}
But then the hard part would be to build your "menu builder", so to speak. You would need a module like TwillMenus that would enable CMS users to customize their own menu.aleksdish
11/16/2021, 4:26 PMaleksdish
11/16/2021, 4:27 PMaleksdish
11/16/2021, 4:27 PMifox
11/16/2021, 4:28 PMpboivin
11/16/2021, 4:30 PMpboivin
11/16/2021, 4:41 PMMenus module, where each item is a specific menu in your site's layout (header, footer, etc.), then use a menu-item repeater in your menus/form.blade.php.
There's a link field partial that be useful: https://github.com/sauron/twill-form-partials#link-fieldifox
11/16/2021, 4:41 PMifox
11/16/2021, 4:42 PMSami
11/17/2021, 12:44 AMSami
11/17/2021, 12:45 AMphp
@formField('block_editor', [
'name' => 'lesser-block-editor',
'label' => 'These will be at the end of this page',
'blocks' => ['text', 'text_image', 'gallery'],
])
@formField('block_editor', [
'name'=> 'supreme-block-editor',
'label' => 'These will be at the top',
'blocks' => ['text', 'image_text', 'gallery', 'sliding_wysiwyg'],
])ifox
11/17/2021, 12:46 AMSami
11/17/2021, 12:48 AMifox
11/17/2021, 12:50 AMphp artisan twill:list:blocks?Sami
11/17/2021, 12:52 AMifox
11/17/2021, 12:53 AMSami
11/17/2021, 12:53 AMSami
11/17/2021, 12:54 AMifox
11/17/2021, 12:55 AM