Hi all,

I finally managed to override the Zend_Navigation helpers. I think the 
Zend_Navigation hasn't seen some serious design flaws, because this 
implementation made it impossible to create your own navigation classes based 
on existing classes!

The Zend_View_Helper_Navigation adds a new helper path, defined in a constant. 
Now this path is the latest added, so it'd *always* find its classes because 
it's the latest namespace in the plugin loader. 
To avoid it, you have to create your own navigation helper, override the const 
NS *and* copy/paste the whole findHelper() method.

Now you can create your own classes and they will be loaded correctly. Isn't 
it possible to try to load a navigation helper, and when it fails *then* you 
add the new scriptpath and tries it again? That will solve a lot of trouble 
e.g. when extending the sitemap helper.

Regards, Jurian
--
Jurian Sluiman
Soflomo.com

Op Monday 15 June 2009 10:36:39 schreef Jurian Sluiman:
> Hi all,
> I'd have a menu created by Zend_Navigation. These menu items can be visible
> or not. I use the breadcrumbs and sitemap helpers as well.
>
> I'd like to show the breadcrumbs correctly with the full path even if the
> page isn't visible. The same for the sitemap: not al navigation items
> should show up in the menu, but be accessible at the sitemap for sure.
>
> How is this possible to manage? Should I file a patch which provides a
> method showInvisible() which is used in the HelperAbstract::accept() method
> (the accept() determines whether a page is shown or not).
>
> Regards, Jurian
> --
> Jurian Sluiman
> Soflomo.com

Reply via email to