After getting my hands dirty and digging through the source I managed to get
around this by extending the Sitemap view helper and overwriting the
accept() method to allow non-visible pages to be accepted. This only affects
the sitemap rendering and not the menu. I'm still open to other suggestions
though :)

--
*Hector Virgen*
Sr. Web Developer
Walt Disney Parks and Resorts Online
http://www.virgentech.com



On Tue, Aug 31, 2010 at 10:57 AM, Hector Virgen <[email protected]> wrote:

> I'm using ZF 1.8.1. My sitemap config contains visible and non-visible
> pages. The non-visible pages should not appear in the site's navigation menu
> (this works) but I can't get them to appear in the sitemap.xml. I have tried
> disabling the sitemap validators but it hasn't helped. Here's how I'm
> rendering the sitemap:
>
> // my view script
> echo
> $this->navigation()->sitemap()->setUseSitemapValidators(false)->setFormatOutput(true);
>
> Any suggestions on how to accomplish this? Here's an example of what my
> navigation.xml looks like: http://pastie.org/1129489 I need both (all)
> pages to appear in the sitemap but only "Home" shold appear in the
> navigation menu. Thanks!
>
> --
> *Hector Virgen*
> Sr. Web Developer
> Walt Disney Parks and Resorts Online
> http://www.virgentech.com
>
>

Reply via email to