Issue Type: Improvement Created: 2009-05-18T11:59:20.000+0000 Last Updated: 2010-06-07T05:33:15.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)
Reporter: John John (chetzoff) Assignee: Pádraic Brady (padraic) Tags: - Zend_View
Related issues: Attachments:
Please add a method to HeadTitle Helper to specify whether we want to append or prepend the title.
If we make something like this $this->headTitle ('Site Title); $this->headTitle ('Page Title); Now, by default zf generates the title like this: Site Title - Page Title but if I want to obtain Page Title - Site Title i have to do something like this: $this->headTitle ('Site Title); $this->headTitle ('Page Title, 'PREPEND'); but this is annoying if you have to specify this in a lot of files. Or if i want suddenly to change the order back, I have to remove the "PREPEND' command in all files.
So i suggest to add to the helper class a method like: public function setDefaultAttachOrder ($order = 'PREPEND');
By the way, the Page Title - Site Title style is used allmost all over the internet, in order to make SEO more effective. It's used even on this site )
Posted by Pádraic Brady (padraic) on 2010-05-04T04:47:34.000+0000
Implemented in r22088
Posted by Goran Juric (gog) on 2010-06-07T05:33:14.000+0000
Usually you are setting the site title in the layout (and the page title in the view). The layout gets executed after the view so the previous implementation was more logical IMHO.
Have you found an issue?
See the Overview section for more details.