Zend Framework

Specify HeadLink setAlternate with 'media' attribute

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.7.2
  • Component/s: Zend_View
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

I would render this code

<link href="/mydocument.pdf" rel="alternate" type="application/pdf" title="foo" media="print"/>

But with this code

$this->headLink()->setAlternate('/mydocument.pdf', "application/pdf", "foo")

I'm able to render only

<link href="/mydocument.pdf" rel="alternate" type="application/pdf" title="foo"/>

Why not add an extra parameter like $extras to do things like this?

$this->headLink()->setAlternate('/mydocument.pdf', "application/pdf", "foo", array('media'=>'print'))

Issue Links

Activity

Hide
Matthew Weier O'Phinney added a comment -

Scheduling for next minor release (new functionality)

Show
Matthew Weier O'Phinney added a comment - Scheduling for next minor release (new functionality)
Hide
Wil Sinclair added a comment -

Trying to assign unassigned issues to smallify our unresolved issue pile. If this can be a community fix, then please unassign it and leave some instruction for proceeding in a comment.

Show
Wil Sinclair added a comment - Trying to assign unassigned issues to smallify our unresolved issue pile. If this can be a community fix, then please unassign it and leave some instruction for proceeding in a comment.
Hide
Jon Whitcraft added a comment -

The fix was checked in with r13141

Show
Jon Whitcraft added a comment - The fix was checked in with r13141

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: