feat: add preistraeger placeholder image and related database migrations

- Introduced a new SVG placeholder image for preistraeger without an image.
- Created migration scripts to add download zip and gallery features to the preistraeger table.
- Added site settings for preistraeger placeholder image in the database.
- Implemented a utility function to retrieve the preistraeger placeholder image URL in the SPA.
This commit is contained in:
syntaxbullet
2026-07-07 12:53:00 +02:00
parent 2842caa936
commit 4167730fc2
15 changed files with 10903 additions and 25 deletions

View File

@@ -0,0 +1,11 @@
import { mediaUrl } from '@/spa/cmsMediaField'
import { useCmsRoute } from '@/spa/cmsRoute'
import { defaultSiteSettings } from '@/spa/siteSettings'
export const PREISTRAEGER_PLACEHOLDER_IMAGE = defaultSiteSettings.preistraegerPlaceholderImageUrl
export function usePreistraegerPlaceholderImage() {
const siteSettings = useCmsRoute()?.siteSettings || defaultSiteSettings
return mediaUrl(siteSettings.preistraegerPlaceholderImage, siteSettings.preistraegerPlaceholderImageUrl)
}