#1 2023-12-26 17:10:08

ketchemr
Member
2020-08-07
27

Image Title in Information Section of Picture Display

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?

https://ketchem.net/PiwigoForumImages/TitleLocations.png

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

 

#2 2023-12-26 19:11:38

Schneider-Fotografie
Extension maintainer
Berlin
2023-04-16
160

Re: Image Title in Information Section of Picture Display

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.

Code:

 <h3>{$current.TITLE}</h3>

-Schneider-Fotografie- Galerie

Last edited by Schneider-Fotografie (2023-12-26 19:25:08)


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#3 2023-12-27 01:32:40

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#4 2023-12-27 07:46:19

Katryne
Member
Provence, France
2016-12-03
613

Re: Image Title in Information Section of Picture Display

Hello,
If you installed the "Manage properties photos", you can change the order of properties display on the photopage.


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#5 2023-12-27 12:49:40

noramila
Member
India
2023-08-29
10

Re: Image Title in Information Section of Picture Display

Customize the template or code to include the image title from the photo upload in a designated section of the display layout.

Offline

 

#6 2023-12-27 21:30:57

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#7 2023-12-27 21:58:58

Katryne
Member
Provence, France
2016-12-03
613

Re: Image Title in Information Section of Picture Display

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


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#8 2023-12-29 16:54:18

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#9 2023-12-29 19:30:38

Katryne
Member
Provence, France
2016-12-03
613

Re: Image Title in Information Section of Picture Display

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.


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#10 2025-04-25 22:23:23

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#11 2025-09-08 20:38:54

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#12 2025-09-09 15:48:49

Schneider-Fotografie
Extension maintainer
Berlin
2023-04-16
160

Re: Image Title in Information Section of Picture Display

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?


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#13 2025-09-09 16:09:08

ketchemr
Member
2020-08-07
27

Re: Image Title in Information Section of Picture Display

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

 

#14 2025-09-09 16:18:51

Schneider-Fotografie
Extension maintainer
Berlin
2023-04-16
160

Re: Image Title in Information Section of Picture Display

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


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#15 2025-09-09 16:44:03

Katryne
Member
Provence, France
2016-12-03
613

Re: Image Title in Information Section of Picture Display

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 

Code:

<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. :

Code:

.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.


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

Board footer

Powered by FluxBB