Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Added itemprop to allowed attributes #5

Conversation

FabianKoestring
Copy link
Contributor

Allows to set something like the following. Is needed for setting structured data markup.
Include Your Site Name in Search Results.

$this->headLink()->prependAlternate(
    [
        'rel' => 'canonical',
        'itemprop' => 'url',
        'href' => 'https://example.com/'
    ],
    'APPEND'
);
<link rel="canonical" href="https://example.com/" itemprop="url">

@gianarb
Copy link
Contributor

gianarb commented Jun 16, 2015

👍

@Martin-P
Copy link
Contributor

Nice addition. Perhaps you can add a unittest for this?

@FabianKoestring FabianKoestring force-pushed the FabianKoestring-zend-view-itemprop branch from 3198f37 to 22c2df9 Compare June 17, 2015 16:36
@weierophinney weierophinney added this to the 2.5.3 milestone Jun 23, 2015
@weierophinney weierophinney merged commit 22c2df9 into zendframework:master Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
…itemprop

Added itemprop to allowed attributes
weierophinney added a commit that referenced this pull request Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
weierophinney added a commit that referenced this pull request Jun 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants