
Originally Posted by
theclay
This isn't real pretty, but it works. You'll need basic knowledge of PHP code. Maybe some day I (or someone else) will write a mod that allows sub ez-pages. For now I use hacks like this one:
open "includes/modules/pages/page/header_php.php"
Find the line where it says "define('NAVBAR_TITLE', $var_pageDetails->fields['pages_title']);"
Two lines below this you'll see "$breadcrumb->add($var_pageDetails->fields['pages_title']);"
This is the line that actually adds the breadcrumb item.
Above this set of code (above the commented text that starts "set Page Title for heading..."), you could add code that's something like this:
Let's assume that ezpages 3 & 4 are subpages of page 5, and 6 & 7 are subpages of 8
switch($var_pageDetails->fields['pages_id'])
{
case 3:
case 4:
$breadcrumb->add('Breadcrumb text for page 5', 'index.php?main_page=page&id=5');
break;
case 6:
case 7:
$breadcrumb->add('Breadcrumb text for page 8', 'index.php?main_page=page&id=8');
break;
}
You could continue to follow this format for other pages that are subpages as well.