<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Dave Dash</title>
 <link href="http://davedash.com/tag/seo/atom.xml" rel="self"/>
 <link href="http://davedash.com/tag/seo"/>
 <updated>2010-08-29T14:12:50-07:00</updated>
 <id>http://davedash.com/</id>
 <author>
   <name>Dave Dash</name>
   <email>dd+atom1@davedash.com</email>
 </author>

 
 <entry>
   <title>Have unique descriptive page titles</title>
   <link href="http://davedash.com/2009/07/31/have-unique-descriptive-page-titles/"/>
   <updated>2009-07-31T00:00:00-07:00</updated>
   <id>http://davedash.com/2009/07/31/have-unique-descriptive-page-titles</id>
   <content type="html">&lt;div style=&quot;float:right&quot;&gt;&lt;a href=&quot;http://www.flickr.com/photos/44124375866@N01/3764074726&quot; title=&quot;View 'Sphinx - Free open-source SQL full-text search engine - (Build 20090715083437)' on Flickr.com&quot;&gt;&lt;div style=&quot;text-align:center;&quot;&gt;&lt;img src=&quot;http://farm4.static.flickr.com/3588/3764074726_0c02ffd18c.jpg&quot; alt=&quot;Sphinx - Free open-source SQL full-text search engine - (Build 20090715083437)&quot; border=&quot;0&quot; width=&quot;483&quot; height=&quot;338&quot; /&gt;&lt;/div&gt;&lt;/a&gt;
&lt;/div&gt;


&lt;p&gt;One of my internet pet-peeves is people using the same page title for every page on their web site.  Take a look at &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=+site:www.sphinxsearch.com+sphinx+api+php&quot;&gt;this search for Sphinx&lt;/a&gt;.  As you can see virtually all the links for Sphinx are titled &quot;Sphinx - Free open-source SQL full-text search engine&quot; which blows for usability when it comes to searching, or even managing the various pages you might have open in your web browser.&lt;/p&gt;

&lt;p&gt;To get an idea of the page I want I need to look at the abstract which may or may not give me a clue.  Even the forum posts which usually have subjects, have their &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; set to the site-wide default.&lt;/p&gt;

&lt;p&gt;&lt;!--more--&gt;
The first step in solving this, is identifying you have a problem in the first place.  So I wrote &lt;a href=&quot;http://github.com/davedash/Title-Variance/tree&quot;&gt;a tool&lt;/a&gt; in python to determine how unique the page titles you have are:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% python measure.py sphinxsearch.com
1050 titles found for sphinxsearch.com
483 unique titles found for sphinxsearch.com
46% of the pages on sphinxsearch.com have unique titles
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is fairly telling.  It means over half the pages on sphinxsearch.com have a generic title.&lt;/p&gt;

&lt;p&gt;This site faired a bit better:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;% python measure.py spindrop.us
988 titles found for spindrop.us
822 unique titles found for spindrop.us
83% of the pages on spindrop.us have unique titles
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So please, think about people trying to use the information on your site.  Design your templates in such a way that you can come up with unique titles.&lt;/p&gt;

&lt;p&gt;Feel free to expand on this tool, it could easily output the offending pages or titles.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Dynamically adjusting your page title in symfony</title>
   <link href="http://davedash.com/2007/07/18/dynamically-adjusting-your-page-title-in-symfony/"/>
   <updated>2007-07-18T00:00:00-07:00</updated>
   <id>http://davedash.com/2007/07/18/dynamically-adjusting-your-page-title-in-symfony</id>
   <content type="html">&lt;p&gt;[tags]view, view.yml, symfony, reviewsby.us, title, seo[/tags]&lt;/p&gt;

&lt;p&gt;A lot of the content on &lt;a href=&quot;http://reviewsby.us/&quot;&gt;reviewsBy.us&lt;/a&gt; and other sites we make using &lt;a href=&quot;http://symfony-project.com/&quot;&gt;symfony&lt;/a&gt; have dynamic content.  We try to have our page titles reflect the content by prepending the name of the specific restaurant, document or menu item before the site name.&lt;/p&gt;

&lt;p&gt;To do this we use a method called &lt;code&gt;prependTitle&lt;/code&gt;.  I define this in a file called &lt;code&gt;myActions.class.php&lt;/code&gt; which almost all of my actions subclass in my projects.  This way I can enhance all the actions simply by adjusting the common ancestor, &lt;code&gt;myActions&lt;/code&gt;:&lt;/p&gt;

&lt;div&gt;&lt;textarea name=&quot;code&quot; class=&quot;php&quot;&gt;
      public function prependTitle($title)
      {
        $r = $this-&gt;getResponse();
        $d = sfConfig::get('app_title_delimiter', ' &amp;laquo; ');
        $t = sfConfig::get('app_title');
        $r-&gt;setTitle($title.$d.$t, false);
      }
&lt;/textarea&gt;&lt;/div&gt;


&lt;p&gt;The page title isn't stored anywhere, so we have to put it in &lt;code&gt;app.yml&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;app:
  title: reviewsby.us
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Voila!&lt;/p&gt;
</content>
 </entry>
 

</feed>
