ZF-8922: Adding an Anchor property to Zend_Navigation_Page_Mvc

Issue Type: Improvement Created: 2010-01-24T17:02:27.000+0000 Last Updated: 2011-09-04T12:23:37.000+0000 Status: Resolved Fix version(s): - 1.11.11 (29/Sep/11)

Reporter: Billy O'Neal (billyoneal) Assignee: Pádraic Brady (padraic) Tags: - Zend_Navigation

Related issues: Attachments: - Navigation.patch


Currently, Zend_Navigation_Page_Mvc has no way of appending an anchor link, such as, without subclassing the framework, or using the more general but less useful Zend_Navigation_Page_Uri.

I think it'd be a good idea to add an "anchor" field to Zend_Navigation_Page_Mvc. That way, the above url could be generated from:

<pre class="highlight">


Posted by Billy O'Neal (billyoneal) on 2010-04-05T12:00:00.000+0000

This feature is still missing in 1.10.

Posted by Kai Uwe (kaiuwe) on 2011-02-15T00:25:47.000+0000

The patch should include the following points:

  • Zend_Navigation_Page gets a new property "anchor" and getter and setter for this property
  • Zend_View_Helper_Navigation_HelperAbstract::htmlify uses the new property from the page
  • Zend_View_Helper_Navigation_HelperAbstract gets a new option to the output of anchors to skip


This is not an "anchor"! It is a "fragment identifier".

Posted by Kai Uwe (kaiuwe) on 2011-06-08T10:46:03.000+0000

Another description for "fragment identifier": Wikipedia - Fragment identifier

Any comments on this?

Posted by Frank Brückner (frosch) on 2011-08-13T14:57:19.000+0000

{quote} Any comments on this? {quote} I agree with you. Here's another source: RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax - 3.5. Fragment

Posted by Frank Brückner (frosch) on 2011-08-13T16:17:19.000+0000

Fix and unit tests added.

Posted by Pádraic Brady (padraic) on 2011-09-04T12:23:37.000+0000

Fixed in r24440 - ported to ZF2 via PR

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.