ZF-2517: Allow HeadTitle() to be used in multiple locations
Description
As HeadTitle() produces
tags, it's not possible to use in in other locations outside , it would be great if that could be possible.Mailing list reference: http://nabble.com/Re%3A-ZF-1.5PR-comments-p1516286…
Thank you
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T12:37:10.000+0000
Scheduling for next mini release
Posted by Simon Corless (sico) on 2008-08-31T04:03:46.000+0000
I don't know how you are planning to do this but to be able to specify a tag would be good... Maybe boolean would add or not add title tag, or a string would become the tag.
echo $this->headTitle(true); //
My Titleecho $this->headTitle(false); // My Title
echo $this->headTitle('h2'); //
My Title
And / Or implement another placeholder helper for titles, which is then extended by headTitle and in turn can be extended by our own classes. I use a pageTitle helper which is basically a duplicate of headTitle, if this could be based on a concrete implementation of a Title Helper it would make it all work more seamlessly.
Posted by Ralph Schindler (ralph) on 2009-01-10T11:06:52.000+0000
This sounds like it should come in the form of a Zend_View_Helper_Title helper. This is not within the scope of the headTitle() helper. Please create a proposal. Perhaps ping Jon Whitcraft (sidhighwind) as he has invested interest in the Zend_View Helpers and might be interested in creating this.