Hi,
I'm new to Piwigo and am trying to use Bootstrap Darkroom to build a simple personal photo gallery. The main problem I'm having is that image descriptions aren't being displayed. I'm hoping someone can help me understand why.
Using ExifPilot I have verified that the images I've uploaded have text in EXIF description, XPTitle, XPSubject, and in the IPTC caption.
Looking at piwigo-bootstrap-darkroom/template/index.tpl in the github repo I can see the following:
{if !empty($CONTENT_DESCRIPTION)}
<div id="content-description" class="py-3{if $theme_config->thumbnail_cat_desc == 'simple'} text-center{/if}">
{if $theme_config->thumbnail_cat_desc == 'simple'}
<h5>{$CONTENT_DESCRIPTION}</h5>
{else}
{$CONTENT_DESCRIPTION}
{/if}
</div>
{/if}
This seems to be where the image description is supposed to be inserted into the generated html. But, using the browser page inspector, I'm not seeing a <div> with the id of "content-description" in my site's html, so it seems like $CONTENT_DESCRIPTION is not set. And github code search doesn't show it being set anywhere in the core Pwigo repo or the Bootstrap Darkroom repo. I don't understand this apparent inconsistency, but I'm new to the software and the code. I'm an experienced developer, but not very familiar with php.
I have "Show image caption" and "Use description rather than title for images" checked in the theme config. If I un-check the latter then the image _titles_ are displayed below the thumbnails (as I'd expect) but not below the image itself. With it checked, no description is displayed anywhere. Changing the "Description display style" setting makes no difference.
So, tl/dr I'm not seeing any image descriptions. Can anyone help me understand why?
Thanks,
Andy
Environment:
Piwigo 15.3.0
Installed on 12 January 2025
Operating system: Linux
PHP: 8.1.22
MySQL: 10.6.16-MariaDB
Graphics Library: ImageMagick ImageMagick 7.1.0-50
Cache size N/A never calculated
Activated plugins:
LocalFiles Editor
PersonalPlugin
Piwigo URL: https://andyjohnson.uk/photos
Offline
Hello,
$CONTENT_DESCRIPTION is set in /index.php and relies to categories description :
// category comment if (($page['start']==0 or $conf['album_description_on_all_pages']) and !isset($page['chronology_field']) and !empty($page['comment']) ) { $template->assign('CONTENT_DESCRIPTION', $page['comment'] ); }
Your aim is perhaps to visualize the pictures descriptions whose variable is $COMMENT_IMG.
"Show image caption" and "Use description rather than title for images" are relied to the thumbnails pages.
EXIF and IPTC caption will be displayed after having enabled metadata (Configuration > Options) and following Managing your files’ properties and metadata.
Offline