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: - Home in the Title Tag  (Read 6393 times)

0 Members and 1 Guest are viewing this topic.

iKwak

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
- Home in the Title Tag
« on: November 28, 2004, 05:04:57 am »

In the index page (the first page) of the gallery,  how would you remove the  - Home from the title?

Thank you in advance.

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: - Home in the Title Tag
« Reply #1 on: November 28, 2004, 07:50:46 am »

I'm assuming you mean on whats called the breadcrumb (the bar that shows you where you are in the hierarchy of your galleries).

What would you want to change it to?  If you simply remove it, folks won't be able to navigate back to the root of your gallery without
closing the site and re-opening it.

You can just change the word "home" to something else across all of your themes by changing your language file.

copperminefolder/lang/english.php

search for
Code: [Select]
$lang_list_categories=array(
'home' => 'Home',

Change only the capitalized 'Home'
Logged

iKwak

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: - Home in the Title Tag
« Reply #2 on: November 28, 2004, 08:02:58 am »

Hi donnoman,
I do not mean the breadcrumb but the actual head title. In the title of the browser, it reads "My Gallery - Home"
Thanks for the response.


I'm assuming you mean on whats called the breadcrumb (the bar that shows you where you are in the hierarchy of your galleries).

What would you want to change it to?  If you simply remove it, folks won't be able to navigate back to the root of your gallery without
closing the site and re-opening it.

You can just change the word "home" to something else across all of your themes by changing your language file.

copperminefolder/lang/english.php

search for
Code: [Select]
$lang_list_categories=array(
'home' => 'Home',

Change only the capitalized 'Home'

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: - Home in the Title Tag
« Reply #3 on: November 28, 2004, 08:08:04 am »

What theme are you using?

Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: - Home in the Title Tag
« Reply #4 on: November 28, 2004, 08:14:29 am »

actually I found what you mean.

open your theme.php

find :

Code: [Select]
function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;

    $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];

    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
    header("Content-Type: text/html; charset=$charset");
    user_save_profile();

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,

change the:
Code: [Select]
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,

to

Code: [Select]
'{TITLE}' => $CONFIG['gallery_name'] ,

Of course that whacks the section name out the title for all of your pages, If your ok with that, then your good to go.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: - Home in the Title Tag
« Reply #5 on: November 28, 2004, 08:34:29 am »

In the pertinent language file, presumably, lang/english.php, look for
Code: [Select]
  'home' => 'Home',Replace Home with a space, so that you can still use the $section variable for the page titles.
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: - Home in the Title Tag
« Reply #6 on: November 28, 2004, 06:05:53 pm »

That would affect his breadcrumb though.

Perhaps he didn't know why 'Home' was in the title, and that it changed based on which section you were viewing.

Perhaps if he just changed 'Home' to something slightly more descriptive like 'Gallery'.

That would be acceptable for his breadcrumb as well.

When you change the lang files, do you have to change the UTF-8 one as well?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: - Home in the Title Tag
« Reply #7 on: December 02, 2004, 09:40:16 am »

When you change the lang files, do you have to change the UTF-8 one as well?
Depends on the encoding setting in coppermine config - if you have set it to unicode (utf-8), you'll have to modify the -utf-8 files. If you don't, you can leave them alone (or even remove all utf-8 from the webserver to save webspace).

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.