See my second e-mail almost right after the first one; i made a mistake in the first one.

The manual says:
|rel| Array array() *Specifies forward relations for the page. Each element in the array is a key-value pair,* *where the key designates the relation/link type, and the value is a pointer to the linked page.* An example of a key-value pair is |'alternate' => 'format/plain.html'|. * To allow full flexbility, there are no restrictions on relation values. The value does not have to be a string. * Read more about |rel| and |rev| in the section on the Links helper. <http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.links>. |rev| Array array() Specifies reverse relations for the page. Works exactly like |rel|.


And at the Links Helper:
There are two types of relations; forward and reverse, indicated by the keyords |'rel'| and |'rev'|. Most methods in the helper will take a $rel param, which must be either |'rel'| or |'rev'|. Most methods also take a $type param, which is used for specifying the link type (e.g. alternate, start, next, prev, chapter*, etc*).

So, implicitly, the manual does mention nofollow ;)

Regards,
Maghiel

On 20-2-2010 20:47, Iron_Mike wrote:

Maghiel,

that does not work,

'rel' has to be passed in as an array... As stated in my original message I tried a few variations but I can't get it right...

The manual does not mention no follow links...

 - Mike

*From:* Maghiel Dijksman [via Zend Framework Community] [mailto:[hidden email] <http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1563067&i=0>]
*Sent:* Saturday, February 20, 2010 11:41 AM
*To:* Iron_Mike
*Subject:* RE: Navigation view helper and nofollow links

You can find information about the rel attribute in the manual:
http://framework.zend.com/manual/en/zend.navigation.pages.html
and
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.links

I think syntax for nofollow is something like:

Zend_Navigation_page::factory(array(
     'label' => 'My Relation',
     'rel'    => 'nofollow'
     )
);

I could be wrong though, did not test this.


Regards,
Maghiel


On 20-2-2010 20:24, Iron_Mike wrote:
> Anybody ?
>


------------------------------------------------------------------------

View message @ http://n4.nabble.com/Navigation-view-helper-and-nofollow-links-tp661766p1563063.html To unsubscribe from RE: Navigation view helper and nofollow links, click here.


------------------------------------------------------------------------
View this message in context: RE: Navigation view helper and nofollow links <http://n4.nabble.com/Navigation-view-helper-and-nofollow-links-tp661766p1563067.html> Sent from the Zend Framework mailing list archive <http://n4.nabble.com/Zend-Framework-f634138.html> at Nabble.com.

Reply via email to