Replace lines 303-321 with the following:
// Home album and then all breadcrumps
for ($i=0; $i<count($previous); $i++) {
$crumps[] = $previous[$i];
$previousName = $previous[$i];
$previousLink = $m3['config']['siteUrl'] . $albumLink . implode('/', $crumps);
if (count($crumps) == 1) { // Home link
$previousName = $m3['lang']['pageTitleHome'];
if ($m3['config']['rewriteUrl']) {
$previousLink = $m3['config']['siteUrl'] . '/myPh3/';
} else {
$previousLink = $m3['config']['siteUrl'] . '/myPh3.core.php';
}
}
if ($i == 0) { // Remove « from first item in list
echo '
<a href="' . $previousLink . '" class="albumprevious">' . $previousName . '</a>';
} elseif ($i == count($previous) - 1) {
echo '
&laquo; <span class="albumprevious">' . $previousName . '</span>';
} else {
echo '
&laquo; <a href="' . $previousLink . '" class="albumprevious">' . $previousName . '</a>';
}
}
This will put links in traditional breadcrumb form: home (w/ link) « album name (w/ link) « album name (w/ link) « ... « current album (no link)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for sharing your code with us. Do you have an example on how this looks/is different from the default breadcrups? Thanks and hope you like myPh3.
Gr, Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Replace lines 303-321 with the following:
// Home album and then all breadcrumps
for ($i=0; $i<count($previous); $i++) {
$crumps[] = $previous[$i];
$previousName = $previous[$i];
$previousLink = $m3['config']['siteUrl'] . $albumLink . implode('/', $crumps);
if (count($crumps) == 1) { // Home link
$previousName = $m3['lang']['pageTitleHome'];
if ($m3['config']['rewriteUrl']) {
$previousLink = $m3['config']['siteUrl'] . '/myPh3/';
} else {
$previousLink = $m3['config']['siteUrl'] . '/myPh3.core.php';
}
}
if ($i == 0) { // Remove « from first item in list
echo '
<a href="' . $previousLink . '" class="albumprevious">' . $previousName . '</a>';
} elseif ($i == count($previous) - 1) {
echo '
&laquo; <span class="albumprevious">' . $previousName . '</span>';
} else {
echo '
&laquo; <a href="' . $previousLink . '" class="albumprevious">' . $previousName . '</a>';
}
}
This will put links in traditional breadcrumb form: home (w/ link) « album name (w/ link) « album name (w/ link) « ... « current album (no link)
Bah, didn't realize sf.net escapes out HTML entities. Replace &laquo; with « in the code snippet above. « is the « character.
Hi,
Thanks for sharing your code with us. Do you have an example on how this looks/is different from the default breadcrups? Thanks and hope you like myPh3.
Gr, Eric