Change the breadcrumb in gallery title Change the breadcrumb in gallery title
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Change the breadcrumb in gallery title

Started by McKenzie, September 08, 2008, 08:53:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

McKenzie

How can I change the breadcrumb in title (after I did that modify http://forum.coppermine-gallery.net/index.php?topic=54112.0)?

"Home > Name" into "Name"
"Home > Name1 > Name2" into "Name2"?

Nibbler

Check the breadcrumb() function in include/functions.inc.php. You probably want to comment out this line:

$BREADCRUMB_TEXTS[0] = $lang_list_categories['home'];

I don't know what the 'Name' elements are supposed to be referring to - categories? albums?

McKenzie

http://icmesa.org/index-71.html

I mean the pagetitle, here for example: Pagetitle "Index > Automobile manufacturers of Sweden > Volvo" to "Volvo"

http://icmesa.org/index-344.html

Here for example: Pagetitle "Index > Automobile manufacturers of Sweden" to "Automobile manufacturers of Sweden"

Nibbler

They are categories. Comment out this section:


                while($row['parent'] != 0)
                {
                    $result = cpg_db_query("SELECT cid, name, parent FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid = '{$row['parent']}'");
                    if (mysql_num_rows($result) == 0)
                        cpg_die(CRITICAL_ERROR, $lang_errors['orphan_cat'], __FILE__, __LINE__);
                    $row = mysql_fetch_array($result);

                    $category_array[] = array($row['cid'], $row['name']);
                    mysql_free_result($result);
                } // while