But now it hangs when I build my pages in admin. I tried escaping quotes, no quotes, and simply deleting the colons, and it still seems to break things. Can someone please be specific at how this can be done? I'd like to add " > " instead of " : ".
Re: [afinlr] Changing the ':' in the bread crumb?In reply to
afinir,
Many thanks for all your help. I did exactly what you said and it works great. My only question now is how do I put a space before the " > " since it displays as:
"Home> Category" rather than "Home > Category"
Sorry I'm not much of a perl/cgi coder. Thanks again for the help.
Re: [misteraven] Changing the ':' in the bread crumb?In reply to
$title_linked =~ s/:/>/g;
This is the line that does the replacement. s/oldpattern/newpattern/ replaces the oldpattern with the newpattern and the g means do it globally - i.e. not just for the first occurrence. I don't think that this line should be changing any spacing - is it possible that you removed the space in your build.pm file while you were editing it? Anyway, you should be able to fix it by adding the space back in:
Re: [Paul] Changing the ':' in the bread crumb?In reply to
I just copied and pasted the code from my post above, so I'm pretty positive Build.pm is back to it's original state. Also, like I said before, any changes to it at all made it stop working.
Re: [misteraven] Changing the ':' in the bread crumb?In reply to
Try this:
$title_linked =~ s/ : / > /g;
I think that this must be something to do with the template parser. I assume that in the compressed version of the page it takes out what it thinks are unnecessary spaces which include spaces within tags.