ZF-9300: Add support for rel="nofollow" attribute on anchors in Zend_Navigation view helpers

Issue Type: Improvement Created: 2010-03-01T16:06:14.000+0000 Last Updated: 2012-03-22T15:11:30.000+0000 Status: Closed Fix version(s): Reporter: Maghiel Dijksman (maghiel) Assignee: Maghiel Dijksman (maghiel) Tags: - Zend_Navigation

  • Zend_View

Related issues: - ZF-11876

Attachments: - ZF-9300.patch


Currently Navigation supports rel and rev attributes, but these are only used by the Links view helper. I've read multiple people needing rel="nofollow" on anchors, and although it's easily implemented using a custom view helper, it's also no work to implement this in the framework itself. So why not support it?

Also see:


Posted by Maghiel Dijksman (maghiel) on 2010-03-01T16:25:19.000+0000

Patch attached, please review and commit

Posted by Kai Uwe (kaiuwe) on 2011-01-28T08:26:04.000+0000

Hi Maghiel, there are also for the "a" element many more options: […] Your patch allows only one option!

Posted by Maghiel Dijksman (maghiel) on 2011-01-28T12:25:01.000+0000

Hey Kai,

I wrote this patch because at that point there were some people on the mailing list asking to support rel="nofollow". But you're right, why not add all the options then?

I'll look deeper into this and change the issue accordingly (and attach a patch eventually), but now first going to have my friday night ;)

Thanks for the input!

Posted by Kai Uwe (kaiuwe) on 2011-05-11T12:42:27.000+0000

At the moment you can only set the relation for "Zend_View_Helper_Navigation_Links" with "Zend_Navigation_Page::setRel()".

We need a solution to set relations for the HTML Link element and for the HTML A element.

The HTML5 specification includes a nice overview in a table:" rel="nofollow">HTML5: 4.12 Links - 4.12.4 Link types There you can see which type is allowed for the Link element and which is allowed for the A element.

Posted by Frank Brückner (frosch) on 2012-03-21T21:10:10.000+0000

Hi Maghiel, any updates on this issue?

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.