Page 1 of 1

Breadcrumb image

Posted: Mon Jul 11, 2005 9:38 pm
by salo
I was about to edit the function.breadcrumbs.php page to insert an image rather than '>>' to mark inbetween the pages. 
By the default it is using >>\n
what does  \n do?

I'd like this to point to the image management tool, I thought this would work, but it doesn't seem to locate the image (no errors at least) is my syntax corect?
while ($onecontent = array_pop($allcontent))
{
if ($onecontent->Id() != $thispage && $onecontent->Type() != 'seperator')
{
if ($onecontent->Type() == 'sectionheader')
{
if (getURL($thispage)!="")
{
$trail .= $onecontent->MenuText()." \n";
}
else
{
$trail .= $onecontent->MenuText()." \n";
}
}
else
{
if (getURL($thispage)!="")
{
$trail .= "getURL()."">".($onecontent->MenuText()!=''?$onecontent->MenuText():$onecontent->Name())." \n";
}
else
{
$trail .= ($onecontent->MenuText()!=''?$onecontent->MenuText():$onecontent->Name())." \n";
}
}
}
else
{
$trail .= "".($onecontent->MenuText()!=''?$onecontent->MenuText():$onecontent->Name())."\n";
}
}
}
else
{
$trail = "No pages";
}

return $trail;

}

Re: Breadcrumb image

Posted: Tue Jul 12, 2005 9:39 am
by Ted
Yeah, I think that's the problem also.

As far as \n, it's just a carriage return so the html source isn't quite as messy by pushing everything together.

Re: Breadcrumb image

Posted: Wed Aug 03, 2005 10:45 am
by TNTH
I'd like to use a backgroundimage when using the breadcrumbs-plugin. How can I achieve this?