I've got a Zend_Navigation component I use to display breadcrumbs on a page. It currently says something like:
"Companies > Edit a Company"
when displaying the edit form. I would like to make it say something like
"Companies > Editing FooBar"
What's the best way to accomplish that?
I had the problem that I wanted to show breadcrumbs even when the parent is set to not visible. Drove me nuts until I found the reason. Your problem is not much different, I think.
I have a unique ID set with basically all links; hence, I can fetch all nodes like the following:
You can find the node by other means, there is findOneBy() method where you have to pass the target object. Once I printed the breadcrumbs I had to reset
setVisible(false)
to the old value, though. Depending on your needs you might have to reset the label, too.