Use Album metadata on Photo page

wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Tue, 2013-09-17 02:37

Hi there,

I'm using wind theme and am wondering if there's any way to substitute the Album metadata (Title, description) for the Image metadata on the Photo page? So you would see the same metadata info on both pages.

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2013-09-18 19:26

It could be done. You would have to create your own theme, copy the theme, and edit the photo page to show the parent info.
$item->title
would change to
$item->parent()->title
similar to description.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Sun, 2013-10-13 02:33

Hi Dave,

Back again after a little hiatus ;)

Appreciate what you said above and that would have worked but I was not clear with my question and unfortunately still haven't been able to figure this one out. I deleted the area you referenced above some time back from the code as I didn't want that information below the photo.

I should have specified that I would like to substitute the photo information (title, image size) which shows in the "metadata block" in the sidebar with the album information (title, description) that shows when on the album page. So that the Album title and description shows/remains in that block for each image in the album.

Is that possible?

Many thanks, again!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-10-13 03:12

Now it gets a bit complex because the "info" module has some 'switch' to say Album info or Movie info or Photo info then it show the appropriate info.
It would not make much sense to have the title Photo info yet show the album title.
All the details is in info.block.php and you can move bit about or change it the way you desire.

$theme->item->title
would become ( i think )
$theme->item->parent()->title

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Sun, 2013-10-13 04:57

Appreciate the quick reply!

I understand my request may seem unusual but what I have now is the photo information I.E. Img002.jpg and the measurements 1024 x 768 shown with each photo which is OK but really of little interest. I felt that having the Album's description (which is in fact a storyline detailing the action) follow with each image for reference as the better choice but didn't want to have to enter it in each image's description field manually. I have over 26000 images in 300 Albums ;(

I had been playing around where you mentioned and with your help I was able to get the Album "title" to show with each image but it would seem the "description" field (of each photo) must have something entered into it to function. It unfortunately "parents" the Album page as well so that when on the Album page it shows the Title & Description of the Gallery above.

A part of my reasoning was also due to not having the breadcrumbs and I've now noticed that when following the Random Image link that there is no reference/link to the Album from which it came.

I apologize for the unusual requests. Gallery3 is a great project, albeit a little tricky to drop 3 levels deep into an existing password protected multi featured site ;( I guess I will just have to settle for what I have now but wanted to see if I could perfect it as this is the first of two identical applications on different servers so any efforts to get this one just right would pay off again soon ;)

Thanks for all your help!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-10-13 05:18

if ($theme->item()->is_album()) {
show the normal info
} else {
show the parent info
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team