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
-**Publication workflow** - Draft/published status with optional scheduling (`publishing_begins_at`/`publishing_ends_at`)
222
+
-**Multilingual support** - Full translation support, including slug localization
223
+
-**SEO optimization** - Built-in meta tags, Open Graph, Twitter cards, and structured data
224
+
-**Author system** - Optional author assignment and attribution
225
+
-**Media management** - Hero images, content images, and SEO images via [Spatie Media Library](https://github.com/spatie/laravel-medialibrary)
226
+
-**Template system** - Custom page templates with fallback support
227
+
-**Protected pages** - Undeletable flag for critical pages
228
+
-**Search & filtering** - Full-text search across page content, ready for [Laravel Scout](https://laravel.com/docs/12.x/scout)
229
+
230
+
### Creating Pages
231
+
232
+
TODO screenshot
233
+
234
+
Create new pages through the Filament admin interface with a multi-tab form:
235
+
236
+
-**Content Tab** - Title, slug, intro, and flexible content blocks
237
+
-**Hero Tab** - Hero image and call-to-action buttons
238
+
-**Publication Tab** - Status, scheduling, and author assignment
239
+
-**SEO Tab** - Meta tags, Open Graph, and Twitter card settings
240
+
-**Parent Tab** - Page hierarchy and template selection (if enabled)
241
+
242
+
Pages use automatic slug generation from the title but can be manually overridden for custom URLs.
243
+
244
+
### Page Hierarchy
245
+
246
+
Create organized page structures with automatic URL generation:
247
+
248
+
```
249
+
Homepage (/)
250
+
├── About (/about)
251
+
│ ├── Team (/about/team)
252
+
│ └── History (/about/history)
253
+
└── Services (/services)
254
+
├── Web Development (/services/web-development)
255
+
│ └── Laravel (/services/web-development/laravel)
256
+
└── Consulting (/services/consulting)
257
+
```
258
+
259
+
You can configure hierarchy support in your [configuration file](documentation/configuration.md#page-resource-configuration).
260
+
In case you need deeper nesting, you can add extra routes.
261
+
262
+
### Publication Controls
263
+
264
+
Control page visibility with by setting publishing begin and end dates. So you can achieve the following statuses:
265
+
266
+
-**Draft** - Page exists but not visible to public users
267
+
-**Published** - Page is live and accessible via URL
268
+
-**Scheduled** - Automatically publish/unpublish at specific times
269
+
270
+
Use the `published()` scope in your queries to show only published content:
271
+
272
+
```php
273
+
$pages = Page::published()->get();
274
+
```
275
+
276
+
### Multilingual Support
277
+
278
+
When using the `LocalisedPageRouteHelper` ([see configuration](./documentation/configuration.md#route-helper)), pages automatically support multiple languages:
279
+
280
+
-**Translated content** - All text fields support per-locale content
281
+
-**Localized URLs** - Each language gets its own slug (e.g., `/en/about`, `/nl/over-ons`)
282
+
-**Content blocks** - Flexible content blocks are fully translatable
283
+
-**SEO per language** - Meta tags and descriptions for each locale
284
+
285
+
The content can be copied between languages using the built-in "Copy to locales" action in the content blocks editor.
286
+
287
+
There is also a language switch component, that provides a simple way to navigate to another locale.
288
+
For customisation, publish the views and if needed extend the [LanguageSwitch component](src/Components/LanguageSwitch.php).
289
+
290
+
### Frontend Integration
291
+
292
+
Generate URLs for pages in your Blade templates:
293
+
294
+
```php
295
+
use Statikbe\FilamentFlexibleContentBlockPages\Facades\FilamentFlexibleContentBlockPages;
You can best publish the views and customise the styling and HTML structure to your project requirements.
308
+
309
+
For detailed frontend templating, theme customization, and available Blade components, see the [frontend documentation](documentation/frontend.md).
310
+
311
+
For advanced page customization, extending models, and custom workflows, see the [extending documentation](documentation/extending-and-customisation.md).
312
+
160
313
## Menu builder
161
314
162
315
The package includes a powerful hierarchical menu builder with a drag-and-drop interface for creating navigation menus. Menus support multiple types of links and can be easily styled with custom templates.
Copy file name to clipboardExpand all lines: documentation/configuration.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,38 @@
2
2
3
3
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