Is it possible to change text in "Back to gallery" link to the name of gallery? "Back to 'MY SUPER COOL GALLERY' " ?
MY SUPER COOL GALLERY - gallery title

Thanks

Comments

dbeall’s picture

Yes, there are two ways
Use the stringoverrides module

-OR-
In node_gallery/node_gallery.module
Change the t('Back to MY SUPER COOL GALLERY') at Line 676:

$items[] = array('title' => t('Back to gallery'), 'href' => 'node/'. $image_node->gid);
AlexanderPop’s picture

Thanks, but I mean change text dynamically.... If I have 1 gallery - it's possible to do it, but I f have several - text changes to parent gallery name. Probably some modul's variables can do it... But I can't figure it out...

justintime’s picture

Status: Active » Fixed

See the patch in #959608: Refactor 3.x theme code. After applying that you can override your template so that

t('Back to gallery')

becomes

t('Back to !gallery', array('!gallery' => $gallery_title))

Or, string overrides should do the trick as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.