You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will add a "Global Blocks" resource to your admin navigation under the "Content Management" group.
582
+
583
+
#### Configuring the Global Blocks resource
584
+
585
+
You can configure the Global Blocks resource behavior through the config file:
586
+
587
+
```php
588
+
<?php
589
+
590
+
// config/page-builder-plugin.php
591
+
592
+
return [
593
+
// ... other configurations
594
+
595
+
'global_blocks' => [
596
+
'enabled' => true, // Set to false to disable the resource
597
+
'resource' => \Redberry\PageBuilderPlugin\Resources\GlobalBlockConfigResource::class, // Custom resource class
598
+
],
599
+
];
600
+
```
601
+
602
+
To disable the Global Blocks resource completely, set `enabled` to `false`. To extend the resource with custom functionality, create your own resource class that extends the package's resource and specify it in the `resource` configuration.
560
603
561
604
#### How global blocks work
562
605
@@ -592,7 +635,7 @@ class ContactForm extends BaseBlock
592
635
593
636
#### Global Blocks resource
594
637
595
-
When you create your first global block, a "Global Blocks" resource is automatically generated in your Filament admin panel. This resource allows you to:
638
+
The "Global Blocks" resource is provided by the package and becomes available once you register the GlobalBlocksPlugin in your panel. This resource allows you to:
0 commit comments