News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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://coppermine-gallery.com/forum/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