Lösungsvorschlag zur Nutzung vom IPTC- und Metadaten im Erscheinungsbild Modus.
Vorraussetzung ist das in der local/config/config.inc.php folgende Einträge vorhanden sind:
<?php $conf["use_iptc"] = true; $conf["show_iptc"] = true; $conf["use_iptc_mapping"] = array( "author" => "2#080", // Fotograf (IPTC By-line) "name" => "2#005", // Titel (IPTC ObjectName) "comment" => "2#120", // Beschreibung / Caption "keywords" => "2#025", // Schlagwörter );
Ebenso sollte das Plugin AlwaysShowMetadata aktiviert sein.
Folgender CSS-Code via LocalFiles Editor:
/* =========================================================
DETAILSEITE – INFOBOX (rechte Sidebar)
========================================================= */
/* Container als Flex-Stack (Caption über Standard-Infos) */
#imageInfos {
display: flex;
flex-direction: column;
gap: 14px;
}
/* Standard-Infos (Fotograf, Datei, Tags, Alben) */
#imageInfos > dl#standard.imageInfoTable {
order: 20;
}
/* =========================================================
METADATA-BLOCK:
Alles ausblenden außer IPTC Caption
========================================================= */
/* EXIF + andere IPTC-Felder ausblenden */
#imageInfos > dl#Metadata.imageInfoTable > h3,
#imageInfos > dl#Metadata.imageInfoTable > div.imageInfo {
display: none !important;
}
/* Nur die Caption anzeigen (letztes imageInfo-Element) */
#imageInfos > dl#Metadata.imageInfoTable > div.imageInfo:last-of-type {
display: block !important;
order: 10;
margin: 0 !important;
}
/* Label "iptc_caption" ausblenden */
#imageInfos > dl#Metadata.imageInfoTable > div.imageInfo:last-of-type > dt {
display: none !important;
}
/* Caption optisch als "Karte" formatieren */
#imageInfos > dl#Metadata.imageInfoTable > div.imageInfo:last-of-type > dd {
margin: 0 !important;
font-size: 1rem;
line-height: 1.6;
font-weight: 400;
padding: 12px 14px;
border-radius: 10px;
background: rgba(0,0,0,0.04);
white-space: normal;
}Offline