Veröffentliche fachliche Säulen als Themenbereiche der Website.
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s

Dieselbe Liste trägt die öffentliche Seite. Medien bleiben privat, Seiten können mehreren Säulen zugeordnet sein.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 11:46:48 +01:00
1 parent af85a94cd5
commit 8cd382c357
21 files changed
+379 -13

No files matched your search

@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Pages\Pages;
use App\Domain\Catalog\PillarService;
use App\Domain\Cms\Page;
use App\Domain\Cms\PageService;
use App\Filament\Resources\Pages\PageResource;
@@ -49,6 +50,7 @@ protected function mutateFormDataBeforeFill(array $data): array
$data['blocks'] = $revision?->blocks ?? [];
$data['seo_title'] = $revision?->seo_title;
$data['seo_description'] = $revision?->seo_description;
$data['pillars'] = $this->record->pillars()->pluck('pillars.id')->all();
return $data;
}
@@ -63,6 +65,7 @@ protected function handleRecordUpdate(Model $record, array $data): Model
$record->update([
'path' => $service->normalizePath($data['path']),
]);
app(PillarService::class)->assignPages($record, array_map(intval(...), $data['pillars'] ?? []));
$service->saveRevision(
$record,