Advanced search  

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

Pages: [1]   Go Down

Author Topic: Name displayed on browsers  (Read 2875 times)

0 Members and 1 Guest are viewing this topic.

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Name displayed on browsers
« on: July 16, 2015, 02:29:33 am »

I apologize in advance if there's already any info on this, cause I didn't even know how to look it up, so I'll try to explain.
When I'm on an album on my gallery, the title displayed on my browser tab is something like "Album name - Gallery name". When on a single photo, it's "Album name - File name - Gallery name". When it's a category, it's "Home > Parent category > Category - Gallery name".
Is there any way to change this format? Can I have the Gallery name at the beginning? Can I omit the file name? Is any customization possible at all?
Thank you.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Name displayed on browsers
« Reply #1 on: July 20, 2015, 11:44:35 am »

You'll need to modify the function theme_page_title. Copy it from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. If you search our board for that function you'll find several threads with examples how to edit that function, e.g. this.

If you need further help, let me know.
Logged

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: Name displayed on browsers
« Reply #2 on: July 20, 2015, 10:33:47 pm »

Hi, André.
Thanks for getting back to me.
I managed to edit the file alright following that thread, but that example isn't exactly how I'd like the title to show up. It doesn't show the category (even when you're just in the parent category page), and shows the file name when in displayimage (which I don't want it to).
Is there any documentation I could follow to try and achieve what I need?
Thanks again.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Name displayed on browsers
« Reply #3 on: July 21, 2015, 12:04:19 am »

Unfortunately there's no documentation for exactly that task. You need to reverse-engineer where the function is used and probably adjust what is passed to it. Please describe what exactly you need on which pages and I'll try to create the corresponding mod for you.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.