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
A complete CMS solution for Laravel applications built on [Filament Flexible Content Blocks](https://github.com/statikbe/laravel-filament-flexible-content-blocks). This package extends the flexible content block system into a full page management solution with routing, SEO, menus, and multilingual support.
8
+
A CMS solution for Laravel applications built on [Filament Flexible Content Blocks](https://github.com/statikbe/laravel-filament-flexible-content-blocks).
9
+
This package extends the flexible content block system, into a full page management solution with routing, SEO, menus, and multilingual support.
9
10
10
-
Designed for developers who need a content management system that integrates seamlessly with existing Laravel applications while providing editors with an intuitive interface for managing pages and content.
11
+
Designed for developers who need a content management system that integrates seamlessly with existing Laravel Filament application,
12
+
while providing content editors with an intuitive interface for managing pages and content.
11
13
12
14
## Key Features
13
15
14
16
-**Flexible page management** - Create pages with hero images, flexible content blocks, SEO fields, and publication controls
15
-
-**Hierarchical menu builder** - Configurable depth with drag-and-drop interface for creating navigation menus
17
+
-**Hierarchical menu builder** - Drag-and-drop interface for creating navigation menus
16
18
-**Multilingual support** - Full localization with automatic route generation for multiple languages
17
-
-**SEO tools** - Automatic sitemap generation, meta tag management, and URL redirect handling
19
+
-**SEO tools** - Automatic sitemap generation, meta tag management, and URL redirect handling when slugs change
18
20
-**Ready-to-use admin interface** - Pre-configured Filament panel with all resources and management tools
19
-
-**Developer-friendly** - Extendable models, customizable templates, and comprehensive configuration options
This package combines several Laravel packages into a cohesive CMS solution, making it opinionated but comprehensive for typical content management needs.
33
+
## Table of contents
34
+
35
+
TODO
32
36
33
37
## Installation
34
38
@@ -81,11 +85,16 @@ You can now seed the home page and default settings by running:
81
85
php artisan flexible-content-block-pages:seed
82
86
```
83
87
84
-
Further configure the third-party packages that are used. Check the installation documentation of these packages:
88
+
Further configure the [third-party packages that are used](#credits). Check the installation documentation of the following packages:
If you want translated content and routes, go through the following steps:
112
121
113
-
1. Configure the supported locales in the Filament Flexible Content Blocks configuration
122
+
1. Configure the `supported_locales`in the Filament Flexible Content Blocks configuration or in a service provider
114
123
2. Configure the `route_helper` in [`filament-flexible-content-block-pages.php`](./config/filament-flexible-content-block-pages.php)
115
124
116
125
### Routes
@@ -153,9 +162,8 @@ The package includes a powerful hierarchical menu builder with a drag-and-drop i
153
162
### Features
154
163
155
164
-**Hierarchical structure** - With configurable max depth per menu
156
-
-**Multiple link types** - Internal routes, external URLs, and linkable models (Pages or your own project model)
165
+
-**Multiple link types** - Internal routes, external URLs, and linkable models (Pages or your own project models)
157
166
-**Drag & drop management** - Intuitive tree interface for reordering and nesting items
158
-
-**Multiple menu styles** - Default, horizontal, vertical, and dropdown templates included
159
167
-**Translation support** - Multilingual menu labels with locale-aware URLs
160
168
-**Conditional visibility** - Show/hide menu items without deleting them
161
169
-**Icon support** - Optional icons for menu items (basic implementation currently)
@@ -176,7 +184,7 @@ To make your models available in the menu builder, add them to the configuration
176
184
],
177
185
```
178
186
179
-
Your models should implement the `[HasMenuLabel](src/Models/Contracts/HasMenuLabel.php)` contract and the [HasTitleMenuLabelTrait](src/Models/Concerns/HasTitleMenuLabelTrait.php) trait:
187
+
Your models should implement the `[HasMenuLabel](src/Models/Contracts/HasMenuLabel.php)` contract and the [HasMenuItemTrait](src/Models/Concerns/HasMenuItemTrait.php) trait:
180
188
181
189
```php
182
190
use Statikbe\FilamentFlexibleContentBlockPages\Models\Contracts\HasMenuLabel;
@@ -215,7 +223,7 @@ See the file `../tailwind/components/menu/default.blade.php` for all possible at
215
223
216
224
### Customizing additional menu styles
217
225
218
-
If needed, you can easily add your own menu styles in addition to the `default` style:
226
+
If needed, you can easily add your own menu styles in addition to the `default` style, e.g. the 'mega' menu style:
The package includes automatic redirect management: when the slug of a page changes, a redirect from the old page
257
343
to the new page is added. These redirects are stored in the database and are managable with the Filament resource,
258
-
so you can add your own redirects.
344
+
so you can add your own redirects. For example, you can add handy redirects for marketing campaigns.
259
345
260
-
Additionally, we integrated [spatie/laravel-missing-page-redirector](https://github.com/spatie/laravel-missing-page-redirector),
261
-
so you can easily configure other redirects in the spatie packages config.
346
+
We have integrated [spatie/laravel-missing-page-redirector](https://github.com/spatie/laravel-missing-page-redirector), so you can easily configure other redirects in the spatie packages config.
262
347
263
348
### Configuration
264
349
@@ -327,6 +412,7 @@ Enable and configure the sitemap generator in your config file:
327
412
- Crawls your website to discover URLs
328
413
- May find URLs not in your database
329
414
- Slower but comprehensive
415
+
- Requires chromium
330
416
331
417
**Hybrid** (`SitemapGeneratorMethod::HYBRID`):
332
418
- Combines both approaches
@@ -424,6 +510,10 @@ Then update your configuration to use your custom service:
424
510
425
511
You can override any protected method to customize the sitemap generation behavior, including priority calculation, change frequency, URL filtering, or adding entirely new content types.
426
512
513
+
## Authorisation
514
+
515
+
TODO handle in project
516
+
427
517
## Configuration
428
518
429
519
TODO
@@ -438,7 +528,6 @@ check:
438
528
menu:
439
529
- caching tree model + observer to clear cache
440
530
- Menu titels menu items
441
-
- test global search and improve table search and ordering
In this document, we explain all settings available in the [filament-flexible-content-block-pages configuration file](../config/filament-flexible-content-block-pages.php).
0 commit comments