Hello/Hi/Greetings,
In Bootstrap Darkroom the image title, entered during the photo upload, is displayed in the breadcrumb, but is cut off. Is there a way to also show it in the Information area of the picture display page?
Thank you for the help.
Environment
Piwigo 14.0.0 Check for upgrade
Installed on 21 December 2019, 4 years 4 days ago
Operating system: Linux
PHP: 8.0.30 (Show info) [2023-12-26 07:56:22]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2023-12-26 07:56:22]
Graphics Library: ImageMagick 6.9.7-4
Cache size 1103.04 Mo calculated 9 months ago Refresh
Activated plugin list9
Additional Pages
GThumb+
LocalFiles Editor
Manage Properties Photos
OpenStreetMap
Permalink Generator
Personal Plugin
Photo Update
Virtualize
Piwigo URL: http://www.rrkphoto.com
Offline
Hello ketchemr
That's not the title of the picture. This is the Photo ID, you can also use it to search for your picture.
I added the title of the image above the image. Easily change title size. Change to file picture_content.tpl for me it is line 23.
<h3>{$current.TITLE}</h3>-Schneider-Fotografie- Galerie
Last edited by Schneider-Fotografie (2023-12-26 19:25:08)
Offline
Thank you, Schneider-Fotografie. I suppose then that I mean the Photo ID. Is there a way to modify the theme to show the Photo ID above Description through the Piwigo interface without editing the theme code directly to avoid the repeated trouble during updates?
Offline
Hello,
If you installed the "Manage properties photos", you can change the order of properties display on the photopage.
Offline
Customize the template or code to include the image title from the photo upload in a designated section of the display layout.
Offline
Katryne wrote:
Hello,
If you installed the "Manage properties photos", you can change the order of properties display on the photopage.
Thank you, Katryne. I have that plugin installed and use it for my assigned photo IDs. However, what I need is to show the already existing "Photo ID" (the Title entered during image upload) to display rather than re-entering it for each photo. Any idea how to do that?
Offline
Oh, I understand better : I tried it once with Manage properties photo and never succeded. Instead, with a lot of help, a lot of testing and long researches, I managed to suppress the title in the breadcrumb and add it on top of the photo. Look here : such a long title could never have been read in the breadcrumb : https://album.chauvigne.info/picture?/P … /114-paris
Offline
Katryne wrote:
Oh, I understand better : I tried it once with Manage properties photo and never succeded. Instead, with a lot of help, a lot of testing and long researches, I managed to suppress the title in the breadcrumb and add it on top of the photo. Look here : such a long title could never have been read in the breadcrumb : https://album.chauvigne.info/picture?/P … /114-paris
That is just the type of change I need. Did you have to modify base code or could you do it through the interface?
Offline
Be patient, I have to reassemble my notes, as it was very complicated for me. Everything can be done through the administration, but it requires the installation of the two plugins LocalFilesEditor and Plugin personnel, as well as the activation in the sidebar of the link to Template extensions. I'll get back to you when I've clarified everything in writing.
Offline
I think my picture description was misunderstood. I was not pointing to the "Photo ID" but rather to the Information section. I am trying to get the Title "Steamboat Rock, Clouds on ..." to display in the Information section without editing the theme code. Is this possible?
Offline
Still not able to do this. I would like to display the last part of the breadcrumb (labeled "Title" in the Properties section of "Edit photo") within the Information card. Any ideas?
Offline
ketchemr wrote:
Still not able to do this. I would like to display the last part of the breadcrumb (labeled "Title" in the Properties section of "Edit photo") within the Information card. Any ideas?
Do you happen to have the "manage_properties_photos" plugin installed?
Offline
Schneider-Fotografie wrote:
ketchemr wrote:
Still not able to do this. I would like to display the last part of the breadcrumb (labeled "Title" in the Properties section of "Edit photo") within the Information card. Any ideas?
Do you happen to have the "manage_properties_photos" plugin installed?
Thank you for this suggestion. It is a good one to solve the problem with minimal fuss. However, this requires duplicating the title text into a named value in manage_properties_photos when the text is already stored in the db. This is against the virtues of a programmer as stated by Larry Wall: Laziness, Impatience, Hubris. I am hoping that somebody has a LocalFiles solution, or that the theme itself is updated to include this text.
Offline
ketchemr wrote:
Schneider-Fotografie wrote:
ketchemr wrote:
Still not able to do this. I would like to display the last part of the breadcrumb (labeled "Title" in the Properties section of "Edit photo") within the Information card. Any ideas?
Do you happen to have the "manage_properties_photos" plugin installed?
Thank you for this suggestion. It is a good one to solve the problem with minimal fuss. However, this requires duplicating the title text into a named value in manage_properties_photos when the text is already stored in the db. This is against the virtues of a programmer as stated by Larry Wall: Laziness, Impatience, Hubris. I am hoping that somebody has a LocalFiles solution, or that the theme itself is updated to include this text.
in initpicture.php
Offline
Hello !
I use a bootstrap Darkroom theme. In order to move the photo title from the breadcrumb to somewhere below, I chose to modify the picture.tpl of the theme with a template extension, adding
<h1>{$current.TITLE}</h1>where I wanted the title to be displayed.
Then I hid the last part of the bread-crumb with some css in Local files editor, so that the title would not be displayed twice. :
.navbar-brand a:last-child {display:none;}
.nav-breadcrumb-item.active {display:none!important;}But the title in the breadcrumb is only hidden and I suppose that in source mode, you can see that it's duplicated. In the database, I don't know.
And these codes are for the theme in use (Bootstrap Darkroom), I don't know for other themes.
Offline