<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.pedroposada.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Pedro Posada&#039;s Blog</title>
 <link>http://www.pedroposada.com/category/blog/drupal-6</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Fixing GD image rotation for Drupal 6 on Ubuntu</title>
 <link>http://www.pedroposada.com/blog/fixing-gd-image-rotation-drupal-6-ubuntu-server-8.10.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://www.realityloop.com/blog/2009/05/24/fixing-gd-image-rotation-drupal-6-ubuntu-server-810&quot; title=&quot;http://www.realityloop.com/blog/2009/05/24/fixing-gd-image-rotation-drupal-6-ubuntu-server-810&quot;&gt;http://www.realityloop.com/blog/2009/05/24/fixing-gd-image-rotation-drup...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot for this really good quick fix to gd library in ubuntu.&lt;/p&gt;
&lt;p&gt;I modified the first two lines:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;deb &lt;a href=&quot;http://packages.dotdeb.org&quot; title=&quot;http://packages.dotdeb.org&quot;&gt;http://packages.dotdeb.org&lt;/a&gt; stable all deb-src&lt;br /&gt;deb &lt;a href=&quot;http://packages.dotdeb.org&quot; title=&quot;http://packages.dotdeb.org&quot;&gt;http://packages.dotdeb.org&lt;/a&gt; stable all&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I also noticed that the /etc/apt/sources.lst file in ubuntu is called sources.list&lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/fixing-gd-image-rotation-drupal-6-ubuntu-server-8.10.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/ubuntu">ubuntu</category>
 <pubDate>Wed, 23 Dec 2009 18:37:52 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">387 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Remove or disable style sheets for single node on Drupal</title>
 <link>http://www.pedroposada.com/blog/remove-or-disable-style-sheets-single-node-drupal.html</link>
 <description>&lt;p&gt;I wanted to make one of the pages in my site look and feel completely different than the rest of the site. I wanted to use a different style sheet css file for this page and also didn&#039;t want to override all the existing styles.&lt;/p&gt;
&lt;p&gt;I found a very good post about it on &lt;a href=&quot;http://drupal.org/node/258756&quot; title=&quot;http://drupal.org/node/258756&quot;&gt;http://drupal.org/node/258756&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/remove-or-disable-style-sheets-single-node-drupal.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/remove-or-disable-style-sheets-single-node-drupal.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Fri, 28 Aug 2009 18:09:57 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">384 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Path redirect wildcard patch for path_redirect module</title>
 <link>http://www.pedroposada.com/blog/path-redirect-wildcard-patch-path_redirect-module.html</link>
 <description>&lt;p&gt;In order to make the path_redirect module handle redirections with wildcards, I created a patch for it. There wasn&#039;t a simple way to do wildcard redirections through the .htaccess file. Some times is important to make a wildcard drupal redirects.&lt;/p&gt;
&lt;p&gt;The way wildcards work:&lt;br /&gt;
When you want to redirect a path like &quot;/about/&quot; to &quot;/&quot; then any path based in about will be redirected to &quot;/&quot; like &quot;/about/something/&quot; or &quot;about/anything&quot; will be redirected to &quot;/&quot;. &lt;/p&gt;
&lt;p&gt;Patched module is in the attachment. The attachment contains all the module files already patched.&lt;/p&gt;
&lt;p&gt;Files patched:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/path-redirect-wildcard-patch-path_redirect-module.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/path-redirect-wildcard-patch-path_redirect-module.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/drupal-modules">drupal modules</category>
 <enclosure url="http://www.pedroposada.com/files/path_redirect_wildcard.zip" length="43463" type="" />
 <pubDate>Wed, 22 Jul 2009 20:24:27 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">382 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Nodetrail module fix</title>
 <link>http://www.pedroposada.com/blog/nodetrail-module-fix.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://drupal.org/project/nodetrail&quot; title=&quot;http://drupal.org/project/nodetrail&quot;&gt;http://drupal.org/project/nodetrail&lt;/a&gt;&lt;br /&gt;
Some handy tips to get the nodetrail module up and running quickly. Nodetrail is a great module that allows you set customs menu trails to any node. &lt;/p&gt;
&lt;p&gt;When you install the node, you will get error messages, in order to fix them modify nodetrail.module file.&lt;/p&gt;
&lt;p&gt;Line 26 missing parameter &lt;code&gt;array(&amp;#039;mlid&amp;#039; =&amp;gt; 0)&lt;/code&gt;:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$options = menu_parent_options(menu_get_menus(),array(&amp;#039;mlid&amp;#039; =&amp;gt; 0));&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Line 98 correct function name &lt;code&gt;_nodetrail_recurse_crumbs&lt;/code&gt;:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;_nodetrail_recurse_crumbs($tree, $item, $crumbs); &lt;/code&gt;&lt;/div&gt; &lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/nodetrail-module-fix.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/drupal-modules">drupal modules</category>
 <pubDate>Fri, 10 Jul 2009 12:54:16 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">381 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Creating a node programmatically</title>
 <link>http://www.pedroposada.com/blog/creating-node-programmatically.html</link>
 <description>&lt;p&gt;Creating a node programmatically.&lt;/p&gt;
&lt;p&gt;The best code snippet I found about this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org/node/178506#comment-1590834&quot; title=&quot;http://drupal.org/node/178506#comment-1590834&quot;&gt;http://drupal.org/node/178506#comment-1590834&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some people say is better to use &lt;a href=&quot;http://api.drupal.org/api/function/drupal_execute/6&quot;&gt;drupal_execute()&lt;/a&gt;, but on my experience I would recommend to use the snippet above.&lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/creating-node-programmatically.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Mon, 29 Jun 2009 12:20:03 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">380 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Remove Page title based on node type</title>
 <link>http://www.pedroposada.com/blog/remove-page-title-based-node-type.html</link>
 <description>&lt;p&gt;Quick and easy php snippet to have the page title not show on only certain node types. &lt;/p&gt;
&lt;p&gt;Copy and paste the code below inside your template.php file.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mythemename_preprocess_page&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$variables&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;menu_get_object&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;()){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;my_node_type&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$variables&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Works on Drupal 6&lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/remove-page-title-based-node-type.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Fri, 05 Jun 2009 18:37:01 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">379 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Setting up MENU_LOCAL_TASK for secondary tabs</title>
 <link>http://www.pedroposada.com/blog/setting-menu_local_task-secondary-tabs.html</link>
 <description>&lt;p&gt;How to create secondary local tasks or secondary tabs, also called sub tab (second level) menu items.&lt;/p&gt;
&lt;p&gt;It was not clear to me why it was necessary to create a MENU_DEFAULT_LOCAL_TASK in every tab level. In order to tell drupal&#039;s menu system to show primary and secondary local tasks, there is a need to create a default local task every time. The default local task points to the same page as the parent item but has a path longer by one element.&lt;/p&gt;
&lt;p&gt;Parent path:&lt;br /&gt; &#039;admin&#039;&lt;/p&gt;
&lt;p&gt;Default primary local task path:&lt;br /&gt; &#039;admin/home&#039;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/setting-menu_local_task-secondary-tabs.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/setting-menu_local_task-secondary-tabs.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/menu-system">menu system</category>
 <pubDate>Fri, 27 Mar 2009 16:02:53 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">58 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Embed VIEWS 2 into nodes</title>
 <link>http://www.pedroposada.com/blog/embed-views-2-nodes.html</link>
 <description>&lt;p&gt;Very useful lines of code to embed &quot;Views 2&quot; views into your nodes. &lt;/p&gt;
&lt;p&gt;Works almost as the old&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$view &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;views_get_view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;views_name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;print (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;views_build_view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;embed&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;use_pager&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;nodes_per_block&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; &lt;/p&gt;
&lt;p&gt;in Drupal 5 but for Drupal 6. This is also a way to embed views programatically into your pages and nodes.&lt;/p&gt;
&lt;p&gt;The following lines of code will load a view and print the display.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/embed-views-2-nodes.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/embed-views-2-nodes.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/viewstheming">views theming</category>
 <pubDate>Wed, 25 Mar 2009 20:02:45 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">57 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Create list of links to taxonomy terms</title>
 <link>http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html</link>
 <description>&lt;p&gt;This piece of code is to generate a menu or list of links to taxonomy pages. I used it inside a block. I created a view that shows all items under certain taxonomy term.&lt;/p&gt;
&lt;p&gt;It is basically a taxonomy menu but you can customized an place it anywhere.&lt;/p&gt;
&lt;p&gt;Good link to learn more about embedding your own views: &lt;a href=&quot;http://groups.drupal.org/node/10129&quot; title=&quot;http://groups.drupal.org/node/10129&quot;&gt;http://groups.drupal.org/node/10129&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/create-list-links-taxonomy-terms.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/drupal-recipe">drupal recipe</category>
 <category domain="http://www.pedroposada.com/category/blog/phpsnippet">php snippet</category>
 <pubDate>Sat, 07 Mar 2009 19:43:40 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">54 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>How to embed a node form into a page in Druapl 6</title>
 <link>http://www.pedroposada.com/blog/how-post-form-node-druapl-6.x.html</link>
 <description>&lt;p&gt;I was trying to do the same on drupal 6.x I used to do with drupal 5.x to post a form inside a node. In oder words, to embed a node add form inside the body text area of a page. But I was getting fatal errors. I went to drupal.org site and found out that 6.x doesn&#039;t include some files when rendering the pages.    &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org/node/312189&quot; title=&quot;http://drupal.org/node/312189&quot;&gt;http://drupal.org/node/312189&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;Basically this is what I used to do on Drupal 5.x:    &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/how-post-form-node-druapl-6.x.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/how-post-form-node-druapl-6.x.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-6">drupal 6</category>
 <category domain="http://www.pedroposada.com/category/blog/forminsertion">form insertion</category>
 <pubDate>Thu, 19 Feb 2009 14:37:02 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">52 at http://www.pedroposada.com</guid>
</item>
</channel>
</rss>
