Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Does anyone know how i can display the gallery title on the image full node display page?
Or how i can change the 'back to gallery' link to display the gallery title instead.
Thanks,
Comments
Comment #1
dbeall CreditAttribution: dbeall commentedThe thing is, well, the display image or image display is a 'node', and the node title is the image file name, not the gallery name. That is how Drupal works and is where the disconnect is at. Since the gallery node is for management/organizing of the image nodes, it doesn't actually hold the images, but it does have the main gallery title,, have to have a name to find it in the database.
well, this probably isn't exactly what you want, but might help *a little* hopefully..
I use pathauto patterns, custom breadcrumbs and tokens to make a breadcrumb trail that makes sense. -(sample page) the gallery name is the last part of the breadcrumb.
http://www.davebeall.com/node-gallery/building-shop-lake/startfooter001
-handbook bit on the breadcrumbs
http://drupal.org/node/544748#breadcrumbs
You could add the gallery title to the display with themeing or using a block with dynamic php code to display the title.
The title in place of back to gallery could be done as a new feature, but if the gallery name is long, we would have side effects to deal with.
Now, the thing is, I am almost sure you can do this with NG3 and views.
Comment #2
soundsational CreditAttribution: soundsational commentedThanks for your help. It seems long winding just to get to display the gallery title. I do hope it's easy as just using Views to get the gallery title. Will test out NG3. cheers
Comment #3
dbeall CreditAttribution: dbeall commentedI was just looking at one of my sites that is using gallery2 and it acts the same with the title. I use the breadcrumbs there too.
In gallery2, the gallery title is on the thumbnail page, but not on the image display pages.
Comment #4
dddave CreditAttribution: dddave commentedNG3 is the place to be (and receive support).