coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: McKenzie on September 08, 2008, 08:53:10 PM

Title: Change the breadcrumb in gallery title
Post by: McKenzie on September 08, 2008, 08:53:10 PM
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"?
Title: Re: Change the breadcrumb in gallery title
Post by: Nibbler on September 08, 2008, 09:05:03 PM
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?
Title: Re: Change the breadcrumb in gallery title
Post by: McKenzie on September 08, 2008, 09:21:49 PM
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"
Title: Re: Change the breadcrumb in gallery title
Post by: Nibbler on September 08, 2008, 09:30:46 PM
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