Agencies & network · Advanced · 1:32 min
Shared media & shared data
media poolShared media library for several websites of one installation: images and files exist once and can be used on all participating websites. (e.g. brand images) and data tableStructured content such as team, events, products or references: entries with the same fixed fields that can appear on several pages – often with a detail page per entry. shared by several websites (e.g. an association and its member clubs).
Goal
Several websites use common images and data – maintained in one place.
Prerequisites
- A network account or administration of the main website.
Step by step
Transcript: every step matches one subtitle in the video.
- System › Grundeinstellungen › Geteilte Medien (shared media): central libraries (e.g. logos, brand images) for several websites.
- “Neuen Pool anlegen” (new pool): name, short name and the websites allowed to use it.
- Per pool: “Genutzt von” (used by) and “Pflegen dürfen” (may maintain) – everyone else only uses the files.
- In the media library: right-click a file › “In … verschieben (geteilt)” (move to shared) – existing uses are kept.
- Switch between “Diese Website” (this website) and the pool at the top – the file now lives there for every website of the pool.
- Shared data: one website owns the table (owner website, e.g. an association), the participating websites (e.g. its clubs) see and add entries.
- On the participating websites the owner website’s entries appear in the same table – read-only, its own stay editable.
- Network › Geteilt (shared) shows all pools and shared tables at a glance.
- Backup commands: pool:backup and shared:backup (see technical documentation › shared data tables).
Commands & configuration
php bin/console pool:create marke "Markenbilder"
php bin/console data:share verbandsnews --members=verein-a,verein-b --site=verband
php bin/console pool:backup --all
php bin/console shared:backup --all
Tips & pitfalls
Sharing existing files: right-click in the media library › “In … verschieben (geteilt)” (move to shared) – existing uses stay valid.
Changes in pools and shared tables take effect immediately on all participating websites.
sync-content.sh does not transfer pools and shared tables.