<?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/themesnippet</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Text list of all countries</title>
 <link>http://www.pedroposada.com/blog/text-list-all-countries.html</link>
 <description>&lt;p&gt;Very handy simple list of country names. I use this list for country select boxes or drop down boxes all the time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/text-list-all-countries.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/text-list-all-countries.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Sun, 17 Jan 2010 21:19:58 -0500</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">480 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>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>How to make stylesheet refresh automatically</title>
 <link>http://www.pedroposada.com/blog/how-make-stylesheet-refresh-automatically.html</link>
 <description>&lt;p&gt;When I build a site, I always make changes to the style.css file. I always add, modify or remove styles, but there was a problem. When someone came to see my site they would see an old version of the site because their browser would cache the style.css file. In order to avoid this, I came up with this drupal recipe or theme snippet.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/how-make-stylesheet-refresh-automatically.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/how-make-stylesheet-refresh-automatically.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-recipe">drupal recipe</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Mon, 13 Oct 2008 18:06:09 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">44 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>PREV NEXT links for nodes in circular way</title>
 <link>http://www.pedroposada.com/blog/prev-next-links-nodes-circular-way.html</link>
 <description>&lt;p&gt;This is just a sample of how you can add PREV NEXT links to your node type template. This function generates links to navigate your nodes in alphabetical order ASC.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/prev-next-links-nodes-circular-way.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/prev-next-links-nodes-circular-way.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-recipe">drupal recipe</category>
 <category domain="http://www.pedroposada.com/category/blog/prevnextlinks">prev next links</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Wed, 08 Oct 2008 17:15:29 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">43 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Place Pager at top and bottom of Views view.</title>
 <link>http://www.pedroposada.com/blog/place-pager-top-and-bottom-views-view..html</link>
 <description>&lt;p&gt;This code helps you place the pager at top and bottom of your views. &lt;/p&gt;
&lt;p&gt;Copy and paste this code into your template.php file.&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;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phptemplate_views_view&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;, &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: #0000BB&quot;&gt;$nodes&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$level &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$output &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; if (&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;br /&gt;&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;$output &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;pager&#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;/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;pager_limit&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;use_pager &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;- &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$output &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme_views_view&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;, &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: #0000BB&quot;&gt;$nodes&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$level &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$output&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&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;Tested in drupal 4.x and 5.x&lt;/p&gt;
</description>
 <comments>http://www.pedroposada.com/blog/place-pager-top-and-bottom-views-view..html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <category domain="http://www.pedroposada.com/category/blog/viewstheming">views theming</category>
 <pubDate>Tue, 05 Aug 2008 03:44:53 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">41 at http://www.pedroposada.com</guid>
</item>
<item>
 <title>Define new regions in your theme</title>
 <link>http://www.pedroposada.com/blog/define-new-regions-your-theme.html</link>
 <description>&lt;p&gt;This snippet contains the default regions in the bluemarine theme. I just copy and paste it in the template.php and start adding new ones to the array. And then I define them inside my page.tpl.php&lt;/p&gt;
&lt;p&gt;This is very useful if you want to place blocks in custom places and easily manage them from the blocks page.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.pedroposada.com/blog/define-new-regions-your-theme.html&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.pedroposada.com/blog/define-new-regions-your-theme.html#comments</comments>
 <category domain="http://www.pedroposada.com/category/blog/drupal-recipe">drupal recipe</category>
 <category domain="http://www.pedroposada.com/category/blog/themesnippet">theme snippet</category>
 <pubDate>Thu, 10 Apr 2008 13:32:00 -0400</pubDate>
 <dc:creator>pedro</dc:creator>
 <guid isPermaLink="false">26 at http://www.pedroposada.com</guid>
</item>
</channel>
</rss>
