how moving the {title} of the image on top of the page? how moving the {title} of the image on top of the page?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how moving the {title} of the image on top of the page?

Started by Cyclist, December 01, 2005, 01:40:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cyclist

Hello,

It's me again with another problem...

I would like to change the order of certain elements on the page. Within displayimage.php the standard order of the element is as following:
1) Navbar
2) Medium sized image
3) Title of the image
4) Pic information (Keywords, dated added, ...)

But I would prefer using the title as headline of that page and therefore I need following order:
1) Title of the image
2) Navbar
3) Medium sized image
4) Pic information

For displaying the navbar and medium sized image including title are used two different templates.

If I put the placeholder {TITLE} on top of the page it isn't parsed anymore. It needs to be within the image template and because of that I can't move it on top of the page and use it as headline. So far I have only managed to move the navbar below the image and then moving the title on top of it. But that's not what I want.

Do you have any idea how I could get the title of the image on top of the page (before the navbar)?

Cyclist

I decided to put the navbar below the image. But now I have a problem when using the slideshow. Then the placeholder for the title is displayed - but it shouldn't be displayed at all.

Joachim Müller


Cyclist

Hi Gaugau, I am sorry but since I have the cpg by now only on a test server available I don't have a working link. But I have taken a screenshot which might help. I could also post the sourcecode if necessary.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.cyclingimages.com%2Ftest%2Fcpg.JPG&hash=7efb998e4ed74357a90338d6a56d42916598ecf7)

Joachim Müller

ah ok, I think I have seen this before. Please search the board (including the cpg1.3.x support board), I think there is a fix.

Cyclist

After doing the search also for the older versions of coppermine gallery I retrieved one thread with a similar topic but there is a small but important difference.

The theme where the problem occurred was a user contributed theme but the theme I am using is based on the classic theme. The solution suggested there is to move the {title} below the image – that's standard in the classic theme in version 1.42. If I have the {Title} below the intermediate image – the title placeholder  isn't displayed in the slideshow but for design reasons I do need the Title above the image when displaying the intermediate image. Therefore moving the title below isn't a solution for me. The only thing I have done was changing the order from {image} and {Title} but that's exactly what is causing the problem. But from my point of view it should be possible changing the order without effecting the display of the slideshow. Somewhere there must be a piece of code which causes the problem when changing the order.

Moving the navbar below the image didn't cause any problems nor did the modification of the order of the navbuttons. But exactly this is happening when modifying the order of the elements for displayimage. When viewing the intermediate image in "normal" view the title is parsed correctly, the problem only exists when switching to the slideshow mode. I have no idea why this happens and how to avoid this when I want to keep my design.

The old topic: http://forum.coppermine-gallery.net/index.php?topic=13049.0