<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerfriendly.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Drupal</title>
 <link>http://www.developerfriendly.com/taxonomy/term/20</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Drupal: Developer Unfriendly?</title>
 <link>http://www.developerfriendly.com/node/59</link>
 <description>Jesse Farmer has a good article at &lt;a href=&quot;http://www.20bits.com&quot;&gt;20Bits&lt;/a&gt; critiquing &lt;a href=&quot;http://20bits.com/2007/02/27/4-problems-with-drupal/&quot;&gt;4 Problems with Drupal.&lt;/a&gt;  The problems that Jesse points out are very relevant and this is really worth reading if you are looking into Drupal.  I don&#039;t agree with some of the conclusions and I will not be switching to Rails/MVC but Drupal is definitely defective even if it is very useful.

From TFA: 
&lt;blockquote&gt;I really don&#039;t mean to dump on Drupal so much. Well, ok, I do, but it&#039;s not out of spite. Part of it is that, as a developer, I find Drupal to be very unfriendly. I know exactly what I want to do and more often than not Drupal is a roadblock. Add to this the performance issues and I think anyone trying to use Drupal to design a medium-to-large sized interactive website should definitely take a second look.
&lt;/blockquote&gt;

It may be just a little bit ironic that I&#039;m running DeveloperFriendly.com with such an unfriendly CMS but Drupal is currently serving me well. For the time being I will just enjoy the irony.</description>
 <comments>http://www.developerfriendly.com/node/59#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/20">Drupal</category>
 <pubDate>Tue, 08 Apr 2008 15:12:36 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">59 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>Improving Drupal&#039;s support for the rel-tag Microformat</title>
 <link>http://www.developerfriendly.com/node/22</link>
 <description>&lt;p&gt;I recently installed the &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/4106&quot; title=&quot;The Operator extension at addons.mozilla.org&quot;&gt;Operator&lt;/a&gt; extension for Firefox. Operator is an interesting little extension which attempts to expose microformats embedded in web pages through a toolbar in the browser.&lt;/p&gt;

&lt;p&gt;While browsing this site with Operator installed I noticed a problem with the tags that are typically attached to each post to organize the site into categories. Drupal attempts to conform to the &lt;a href=&quot;http://microformats.org/wiki/rel-tag&quot;&gt;rel-tag microformat&lt;/a&gt; by attaching a rel=&quot;tag&quot; attribute to each tag link (Look at the section titled Tags: at the top of this post.) The problem is that drupal uses numbers for each category (aka &quot;Taxonomy Term.&quot;) and numbers don&#039;t make very readable tags.  As several others have already pointed out, this could be considered a deficiency in the microformat. The rel-tag specification doesn&#039;t provide any alternate way to specify a text-version of the tag, other than the last segment of the url. In the case of drupal, the last segment of a taxonomy url is the taxonomy term id, which is a number.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt; Fortunately, this is one case where the flexibility of Drupal&#039;s API comes to the rescue. I did a quick search of Drupal.org and turned up &lt;a href=&quot;http://drupal.org/node/65344&quot;&gt;this post&lt;/a&gt;. The solution offered was not up to date with Drupal 5.x and it didn&#039;t work for my version, however, that article mentioned a new API hook in Drupal HEAD called &lt;em&gt;hook_link_alter&lt;/em&gt;, a feature that eventually made it&#039;s way into the final release for Drupal 5. Using hook_link_alter I was able to hack together a short function that rewrites the tag links so that they end with the tag name instead of a number. Fortunately for us, Drupal&#039;s taxonomy system ignores the extra baggage on the end of taxonomy URLs and everything still works as expected.&lt;/p&gt;

&lt;p&gt;All of this explanation has quickly become much longer than the code that I am describing. Without further delay, here is some code that you can place in your drupal theme&#039;s template.php to make more sensible rel-tag taxonomy links:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
/* Alter rel-tag links to include the link tag name in the url */
function blog_link_alter(&amp;$node, &amp;$links) {
        foreach ($links AS $module =&gt; $link) {
                if ($link[&#039;attributes&#039;][&#039;rel&#039;] == &#039;tag&#039; &amp;&amp; !empty($link[&#039;title&#039;])) {
                        $links[$module][&#039;href&#039;] .= &quot;/&quot;.$link[&#039;title&#039;];
                }
        }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Warning: This is slightly hackish because I am placing a drupal api hook inside a theme template.php - this hook is prefixed with the blog module name and it actually belongs inside the blog module, however, I don&#039;t want to alter drupal core code so I chose to place this in my theme.&lt;/p&gt;

Technorati tags: &lt;a href=&quot;http://www.technorati.com/tag/drupal&quot; rel=&quot;tag&quot;&gt;drupal&lt;/a&gt;, &lt;a href=&quot;http://www.technorati.com/tag/rel-tag&quot; rel=&quot;tag&quot;&gt;rel-tag&lt;/a&gt;</description>
 <comments>http://www.developerfriendly.com/node/22#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/20">Drupal</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/22">microformats</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/7">Mozilla</category>
 <pubDate>Wed, 18 Jul 2007 16:27:40 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">22 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>Drupal</title>
 <link>http://www.developerfriendly.com/project/drupal</link>
 <description>&lt;a href=&quot;http://www.drupal.org/&quot;&gt;Drupal&lt;/a&gt; is an Open Source content management system written in &lt;a href=&quot;http://www.php.net&quot;&gt;PHP&lt;/a&gt;.
Drupal is the platform of choice for DeveloperFriendly.com and several other projects hosted here. As you might expect, we occasionally come up with some interesting code for Theming and Extending the system to meet our needs. As often as possible we will post code and development tips here in the hope that others will benefit from our experience with Drupal development.</description>
 <comments>http://www.developerfriendly.com/project/drupal#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/20">Drupal</category>
 <pubDate>Wed, 18 Jul 2007 16:11:10 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">21 at http://www.developerfriendly.com</guid>
</item>
</channel>
</rss>
