<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to remove the meta name=title element from Symfony pages</title>
	<atom:link href="http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/feed" rel="self" type="application/rss+xml" />
	<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages</link>
	<description></description>
	<lastBuildDate>Wed, 13 Oct 2010 08:27:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Olivier Hug</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-1734</link>
		<dc:creator>Olivier Hug</dc:creator>
		<pubDate>Sat, 21 Aug 2010 11:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-1734</guid>
		<description>There is an even simpler solution to this:

go to the lib/vendor/helper/AssetHelper.php class,
and change the function include_metas() so that it skips
for the title tag (if...continue):

function include_metas()
{
  $context = sfContext::getInstance();
  $i18n = sfConfig::get(&#039;sf_i18n&#039;) ? $context-&gt;getI18N() : null;
  foreach ($context-&gt;getResponse()-&gt;getMetas() as $name =&gt; $content)
  {
    if($name = &quot;title&quot;) continue;
    echo tag(&#039;meta&#039;, array(&#039;name&#039; =&gt; $name, &#039;content&#039; =&gt; null === $i18n ? $content : $i18n-&gt;__($content))).&quot;\n&quot;;
  }
}

Cheers, Olivier</description>
		<content:encoded><![CDATA[<p>There is an even simpler solution to this:</p>
<p>go to the lib/vendor/helper/AssetHelper.php class,<br />
and change the function include_metas() so that it skips<br />
for the title tag (if&#8230;continue):</p>
<p>function include_metas()<br />
{<br />
  $context = sfContext::getInstance();<br />
  $i18n = sfConfig::get(&#8216;sf_i18n&#8217;) ? $context-&gt;getI18N() : null;<br />
  foreach ($context-&gt;getResponse()-&gt;getMetas() as $name =&gt; $content)<br />
  {<br />
    if($name = &#8220;title&#8221;) continue;<br />
    echo tag(&#8216;meta&#8217;, array(&#8216;name&#8217; =&gt; $name, &#8216;content&#8217; =&gt; null === $i18n ? $content : $i18n-&gt;__($content))).&#8221;\n&#8221;;<br />
  }<br />
}</p>
<p>Cheers, Olivier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-91</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 03 Feb 2009 01:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-91</guid>
		<description>@Me: Sorry I took sooo long  to respond! This is because the sfResponse and sfWebResponse classes were significantly changed after the 1.0 release. I have posted instructions on how to get this to work at &lt;a href=&quot;http://jlcoady.net/symfony/how-to-remove-the-meta-nametitle-element-from-symfony-12-pages&quot; rel=&quot;nofollow&quot;&gt;http://jlcoady.net/symfony/how-to-remove-the-meta-nametitle-element-from-symfony-12-pages&lt;/a&gt;. Please post in the comments there if you are still unable to get it working.</description>
		<content:encoded><![CDATA[<p>@Me: Sorry I took sooo long  to respond! This is because the sfResponse and sfWebResponse classes were significantly changed after the 1.0 release. I have posted instructions on how to get this to work at <a href="http://jlcoady.net/symfony/how-to-remove-the-meta-nametitle-element-from-symfony-12-pages" rel="nofollow">http://jlcoady.net/symfony/how-to-remove-the-meta-nametitle-element-from-symfony-12-pages</a>. Please post in the comments there if you are still unable to get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sun Zhen</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-66</link>
		<dc:creator>Sun Zhen</dc:creator>
		<pubDate>Tue, 25 Nov 2008 02:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-66</guid>
		<description>internationalization or escaping that include_metas()  are not problem, basically my function is only deleted one data in an array, if the data called title exists. didn&#039;t change any thing functionally in  include_metas() at all.

regarding to change the every single layout, I guess most symfony project will keep all layout files in apps/frontend/templates folder. and shouldn&#039;t be too many files in there.

also, if as you said, to change every single layout page became a problem. then override  include_metas()  or simply change  include_metas() in symfony framework.</description>
		<content:encoded><![CDATA[<p>internationalization or escaping that include_metas()  are not problem, basically my function is only deleted one data in an array, if the data called title exists. didn&#8217;t change any thing functionally in  include_metas() at all.</p>
<p>regarding to change the every single layout, I guess most symfony project will keep all layout files in apps/frontend/templates folder. and shouldn&#8217;t be too many files in there.</p>
<p>also, if as you said, to change every single layout page became a problem. then override  include_metas()  or simply change  include_metas() in symfony framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-65</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 19 Nov 2008 16:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-65</guid>
		<description>The problem with that is that it doesnt do any of the internationalization or escaping that include_metas() does. The other advantage of my more complicated solution is that you can drop it in to a larger project and dont have to go around changing all of the templates.</description>
		<content:encoded><![CDATA[<p>The problem with that is that it doesnt do any of the internationalization or escaping that include_metas() does. The other advantage of my more complicated solution is that you can drop it in to a larger project and dont have to go around changing all of the templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sun Zhen</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-64</link>
		<dc:creator>Sun Zhen</dc:creator>
		<pubDate>Wed, 19 Nov 2008 00:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-64</guid>
		<description>well, I would say, don&#039;t have to be so complicated.

just add a helper function

getResponse()-&gt;getMetas() as $name =&gt; $content)
  {
    if($name != &#039;title&#039;) echo tag(&#039;meta&#039;, array(&#039;name&#039; =&gt; $name, &#039;content&#039; =&gt; $content)).&quot;\n&quot;;
  }
}
?&gt;

and use this include_metas_no_title() instead of include_metas() in your template. that&#039;s it.</description>
		<content:encoded><![CDATA[<p>well, I would say, don&#8217;t have to be so complicated.</p>
<p>just add a helper function</p>
<p>getResponse()-&gt;getMetas() as $name =&gt; $content)<br />
  {<br />
    if($name != &#8216;title&#8217;) echo tag(&#8216;meta&#8217;, array(&#8216;name&#8217; =&gt; $name, &#8216;content&#8217; =&gt; $content)).&#8221;\n&#8221;;<br />
  }<br />
}<br />
?&gt;</p>
<p>and use this include_metas_no_title() instead of include_metas() in your template. that&#8217;s it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-63</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 13 Nov 2008 18:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-63</guid>
		<description>Are you using Symfony v1.0 or v1.1? I have only tested this in v1.0 -- we have not yet upgraded to v1.1 but plan to do so sometime this year.</description>
		<content:encoded><![CDATA[<p>Are you using Symfony v1.0 or v1.1? I have only tested this in v1.0 &#8212; we have not yet upgraded to v1.1 but plan to do so sometime this year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Me</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-62</link>
		<dc:creator>Me</dc:creator>
		<pubDate>Thu, 13 Nov 2008 18:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-62</guid>
		<description>Does not work for some reason getting an error: Call to undefined method myWebResponse::getParameter.

in SF_SYMFONY_LIB_DIR/response/sfResponse.class.php line 136 ...</description>
		<content:encoded><![CDATA[<p>Does not work for some reason getting an error: Call to undefined method myWebResponse::getParameter.</p>
<p>in SF_SYMFONY_LIB_DIR/response/sfResponse.class.php line 136 &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages/comment-page-1#comment-61</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sat, 08 Nov 2008 02:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://jlcoady.net/?p=60#comment-61</guid>
		<description>Edited to handle the title setting in view.yml</description>
		<content:encoded><![CDATA[<p>Edited to handle the title setting in view.yml</p>
]]></content:encoded>
	</item>
</channel>
</rss>

