<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/pages/css/rss.css" type="text/css"?>
<rss xmlns:ps="http://trailfire.com" version="2.0"><channel><title>"drupal" by enjoylife</title><link>http://www.trailfire.com/enjoylife/trails/69851</link><category>enjoylife/trails</category><ttl>60</ttl><item><title>Drupal专业开发指南（中文翻译完全版） | Drupal爱好者</title><link>http://www.trailfire.com/enjoylife/marks/261255</link><description><![CDATA[Drupal专业开发指南是一本drupal初学者必须要看的书。它详细介绍了drupal的工作机制，以及如何制作drupal的模块、主题、区块、节点等等教程。<BR>深入分析了drupal的方方面面。<BR>如果你是一个drupal的初学者，别犹豫了，赶紧去看吧，这本书能让你少走很多弯路！<BR>我的第一个模块也是在这本书的指导下编写出来的。<BR>drupal专业开发指南的作者是JOHN VANDYK和MATT WESTGATE，由葛鸿儒翻译。<BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/04/04/2249050.aspx">Drupal专业开发指南 绪论</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/04/04/2249057.aspx">Drupal专业开发指南 致谢</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/04/04/2249889.aspx">Drupal专业开发指南 序言</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/04/04/2250080.aspx">Drupal专业开发指南 作者和审稿人</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/03/24/2211668.aspx">Drupal专业开发指南 第1章 Drupal工作原理（1）</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2008/03/24/2214377.aspx">Drupal专业开发指南 第1章 Drupal工作原理（2）对请求提供服务</A><BR><A HREF="http://blog.csdn.net/g089h515r806/archive/2007/09/22/1795971.aspx">Drupal专业开发指南 第2章 创建一个模块（1）</A>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Wed, 07 Jan 2009 00:09:53 -0800</pubDate><guid isPermalink="false">trailfire:markId:261255</guid></item><item><title>Drupal E-Book AIO | BoyGJ.COM</title><link>http://www.trailfire.com/enjoylife/marks/261261</link><description><![CDATA[<P><SPAN STYLE="font-weight: bold;"><A CLASS="alinks-link" HREF="/Drupal">Drupal</A>也是最著名的开源CMS程序之一，他是<A CLASS="alinks-link" HREF="/Joomla">Joomla</A>的劲敌，在国外越来越多人站都转到<A CLASS="alinks-link" HREF="/Drupal">Drupal</A>程序，本站的收集了许多<A CLASS="alinks-link" HREF="/Drupal">Drupal</A>的商业E-Book，现在来个归类，方便大家下载和查找！(不断更新添加中。。)</SPAN></P><P><SPAN STYLE="color: Red;">注：商业资源依据相应的商业协议执行，本站提供下载，仅供学习交流用途。</SPAN></P><P>———————————————————————<BR></P><UL STYLE="list-style-type: circle;" CLASS="bb-list"><LI><A HREF="http://www.boygj.com/node/2046/">Building Powerful and Robust Websites with Drupal 6</A></LI><LI><A HREF="http://www.boygj.com/node/1227/">Drupal 5 Themes</A></LI><LI><A HREF="http://www.boygj.com/node/588/">Pro Drupal Development</A></LI><LI><A HREF="http://www.boygj.com/node/585/">Building Online Communities With Drupal, phpBB, and WordPres</A></LI><LI><A HREF="http://www.boygj.com/node/584/">Drupal Creating Blogs Forums Portals and Community Websites</A></LI><LI><A HREF="http://www.boygj.com/node/2595/">Learning Drupal 6 Module Development</A></LI><LI><A HREF="http://www.boygj.com/node/3428/">Pro Drupal Development 2nd Edition</A></LI></UL>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Wed, 07 Jan 2009 00:21:12 -0800</pubDate><guid isPermalink="false">trailfire:markId:261261</guid></item><item><title>new node-type with views-view -- integrate custom fields | drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/261456</link><description><![CDATA[<H3 CLASS="title"><A CLASS="active" HREF="/node/251056#comment-820720">You can use the Views API to</A></H3><DIV CLASS="author"><A TITLE="View user profile." HREF="/user/107701">joachim</A> - April 25, 2008 - 03:42</DIV><DIV CLASS="content"><P>You can use the Views API to add fields: <A TITLE="http://drupal.org/node/99565" HREF="http://drupal.org/node/99565">http://drupal.org/node/99565</A></P></DIV><DIV CLASS="links"><A HREF="/comment/reply/251056/820720"></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Wed, 07 Jan 2009 23:46:17 -0800</pubDate><guid isPermalink="false">trailfire:markId:261456</guid></item><item><title>node.php | Drupal API</title><link>http://www.trailfire.com/enjoylife/marks/261457</link><description><![CDATA[<SPAN CLASS="php-boundry"><SPAN CLASS="php-comment">// $Id: node.php,v 1.41.2.4 2008/10/25 15:11:44 add1sun Exp $</SPAN> <SPAN CLASS="php-comment">/** * @file * These hooks are defined by node modules, modules that define a new kind * of node. * * If you don&#39;t need to make a new node type but rather extend the existing * ones, you should instead investigate using hook_nodeapi(). * * Node hooks are typically called by node.module using node_invoke(). */</SPAN> <SPAN CLASS="php-comment">/**</SPAN></SPAN>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Wed, 07 Jan 2009 23:50:44 -0800</pubDate><guid isPermalink="false">trailfire:markId:261457</guid></item><item><title>Classes For (Almost) Everything In A Drupal Theme | My Drupal Blog</title><link>http://www.trailfire.com/enjoylife/marks/261458</link><description><![CDATA[<H2 CLASS="title"><A HREF="/classes-almost-everything-drupal-theme">Classes For (Almost) Everything In A Drupal Theme</A></H2><DIV CLASS="content"><P>Thanks to the <A TITLE=" Zen theme" HREF="http://drupal.org/project/zen">Zen theme</A> there is an awesome bit of code available to Drupal themers which enables the addition of dynamic classes to your body tag based upon a number of different parameters, such as your position and status within a site, like so:</P><P><IMG ALT="Drupal theme body classes" SRC="http://mydrupalblog.lhmdesign.com/files/blogimg/classes_zen_example.png"></P><P>As you can imagine, this is incredibly useful for Drupal theming, as it provides a set of classes on the body which then allow a simple way to target specific areas of a theme via CSS.</P><P>I used to end up writing lots of different bits of code into a theme file to achieve t</P></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Wed, 07 Jan 2009 23:51:31 -0800</pubDate><guid isPermalink="false">trailfire:markId:261458</guid></item><item><title>Adding a New Table (Primary View Type) into Views2 | iMed Studios Labs Beta</title><link>http://www.trailfire.com/enjoylife/marks/261636</link><description><![CDATA[<DIV CLASS="meta"><SPAN CLASS="submitted">Submitted by Dan DeGeest on Wed, 10/29/2008 - 20:42.</SPAN><UL CLASS="links inline"><LI CLASS="first taxonomy_term_6"><SPAN CLASS="terms"><A CLASS="taxonomy_term_6" HREF="/labs/taxonomy/term/6">Download Available</A></SPAN></LI><LI CLASS="taxonomy_term_2"><SPAN CLASS="terms"><A CLASS="taxonomy_term_2" HREF="/labs/taxonomy/term/2">Drupal</A></SPAN></LI><LI CLASS="taxonomy_term_3"><SPAN CLASS="terms"><A CLASS="taxonomy_term_3" HREF="/labs/taxonomy/term/3">Example Code</A></SPAN></LI><LI CLASS="last taxonomy_term_4"><SPAN CLASS="terms"><A CLASS="taxonomy_term_4" HREF="/labs/taxonomy/term/4">Module</A></SPAN></LI></UL></DIV><DIV CLASS="content"><P>Anyone who has done any serious development for Drupal has heard of and used the <A>Views</A> module. This article assumes you are familiar with Views basics and configuration.</P><P>Views2 is the updated version of Views for Drupal 6 and I think its fair to say its completely new. Sure a lot of concepts are still there but the UI is completely different and whats more is that under the hood its a complete rewrite. So throw out what you knew about Views because it is a whole new game.</P><P>One of the biggest changes is that Views are no longer node-centric. That is, in Views only the node table could be the primary table in the generated query. In View2 this restriction is gone. I had heard about this for awhile but wondered how it works in practice.</P><P>After installing and enabling Views (from here on out Views == Views2) the basic procedure is just like the good old days. Go to Site Building | Views and start enabling or creating views.</P><P>I wanted to add a new View and see how I&#39;d go about doing a non-node view. What I discovered is that there are several built in view types for the main Drupal data structures like nodes, files, and users.</P><P><IMG SRC="http://www.imedstudios.com/labs/files/views1.png"></P></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Thu, 08 Jan 2009 19:38:56 -0800</pubDate><guid isPermalink="false">trailfire:markId:261636</guid></item><item><title>怎样在drupal 6 的view模块table list中限制题目显示的字数 | Drupal China</title><link>http://www.trailfire.com/enjoylife/marks/261982</link><description><![CDATA[<H3 CLASS="title"><A CLASS="active" HREF="/node/5869#comment-18240">前几天遇到同样的问</A></H3><DIV CLASS="submitted">由 wanghl165 于 周四, 2008-12-11 00:44 提交。</DIV><DIV CLASS="content"><P>前几天遇到同样的问题，我是这样做的：<BR>修改views，在输出部分增加nid，隐藏不显示，在views的theme： views-view-fields.tpl.php中修改title，代码片段如下：<BR></P><DIV CLASS="codeblock"><SPAN STYLE="color: rgb(0, 0, 0);"><SPAN STYLE="color: rgb(0, 119, 0);">if(</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">$id</SPAN> <SPAN STYLE="color: rgb(0, 119, 0);">==</SPAN> <SPAN STYLE="color: rgb(221, 0, 0);">&#39;title&#39;</SPAN> <SPAN STYLE="color: rgb(0, 119, 0);">&amp;&amp;</SPAN> <SPAN STYLE="color: rgb(0, 0, 187);">strlen</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">(</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">$field</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">-&gt;</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">raw</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">)&gt;</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">75</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">) {<BR>&nbsp; print</SPAN> <SPAN STYLE="color: rgb(0, 0, 187);">l</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">(</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">drupal_truncate_bytes</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">(</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">$field</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">-&gt;</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">raw</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">,</SPAN> <SPAN STYLE="color: rgb(0, 0, 187);">70</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">) .</SPAN> <SPAN STYLE="color: rgb(221, 0, 0);">&#39;...&#39;</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">,</SPAN> <SPAN STYLE="color: rgb(221, 0, 0);">&#39;node/&#39;</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">.</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">$fields</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">[</SPAN><SPAN STYLE="color: rgb(221, 0, 0);">&#39;nid&#39;</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">]-&gt;</SPAN><SPAN STYLE="color: rgb(0, 0, 187);">content</SPAN><SPAN STYLE="color: rgb(0, 119, 0);">);<BR>}<BR></SPAN><SPAN STYLE="color: rgb(0, 0, 187);">?&gt;</SPAN></SPAN></DIV><P>views-view-fields.tpl.php为views模块目录下theme目录中的文件，复制到你自己的theme目录下就可以了。</P><P>目的达到了，但是感觉很笨，我想应该会有更好的办法，希望高人出来指点。</P></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Sun, 11 Jan 2009 00:29:43 -0800</pubDate><guid isPermalink="false">trailfire:markId:261982</guid></item><item><title>Can&amp;#039;t Disable Form fields | drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/261983</link><description><![CDATA[<P>If you wanted to _hide_ the form elements, you could assign &#39;#access&#39; = FALSE on the whole $form[&#39;field_equipment&#39;] array (that&#39;s how CCK field perms does)</P><P>The #disabled attribute, I&#39;m afraid, has to be applied to the very form element, meaning you have to do something like<BR>$form[&#39;field_equipment&#39;][0][&#39;value&#39;][&#39;#disabled&#39;] = TRUE;<BR>And the actual elements inside $form[&#39;field_equipment&#39;] vary for each field type, so you&#39;ll have to look for yourself</P><P>If you&#39;re using devel.module (which you _really_ should), you can do<BR>dsm($form[&#39;field_equipment&#39;]) in this area of your code, to see how it looks exactly.</P><P>Alternatively, think the &#39;CCK field permissions&#39; module has an option to do that (marking cck form fields as &#39;disabled&#39;)</P><P>Please reopen the issue if needed.</P>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Sun, 11 Jan 2009 00:47:14 -0800</pubDate><guid isPermalink="false">trailfire:markId:261983</guid></item><item><title>Passing Arguments to views inside panel | groups.drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/262013</link><description></description><category>drupal</category><author>enjoylife</author><pubDate>Sun, 11 Jan 2009 13:15:07 -0800</pubDate><guid isPermalink="false">trailfire:markId:262013</guid></item><item><title>Passing Arguments to views inside panel | groups.drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/262014</link><description><![CDATA[<P>The only way i have managed to do it, set the panel view parameters as &quot;input on pane config&quot;<BR>and leave it empty in the panel pane config</P><P>view setting :<BR>set the arguments to the view (i have set 3 : termid, date, rss feed)<BR>check the arguments send in the url and set the view argument</P>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Sun, 11 Jan 2009 13:15:47 -0800</pubDate><guid isPermalink="false">trailfire:markId:262014</guid></item><item><title>need help with form_set_value() error &amp;quot;warning: array_shift()...\form.inc&amp;quot; | drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/262146</link><description><![CDATA[<P>Hey all - I also had issues with form_set_value in the validate hook (using Drupal 5). In my case I was doing this because I had a CCK content type with a field that I wanted to hide on the create / edit node form but fill in with a calculated value before save. For me the problem was I wasn&#39;t formatting the value I wanted to use for my form element in the Drupal Forms way. For example, if my CCK field is a textfield called &#39;calculated_data&#39;, then in the hook_form_alter I did:</P><DIV CLASS="codeblock">// in hook_form_alter<BR>// this is so the field doesn&#39;t show on the form<BR>$form[&#39;field_calculated_data&#39;][&#39;#type&#39;] = &#39;value&#39;;<BR>$form[&#39;field_calculated_data&#39;][&#39;#value&#39;] = array();</DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Sun, 11 Jan 2009 21:39:43 -0800</pubDate><guid isPermalink="false">trailfire:markId:262146</guid></item><item><title>Drupal - How to Theme CCK Input forms | Haro Street Media</title><link>http://www.trailfire.com/enjoylife/marks/262313</link><description><![CDATA[<P>do is wrap those particular fields with and if you want the Group to have a name add Contact Info right after the opening fieldset. Here is an example:</P><P>Contact Info<BR><BR><BR><BR><BR></P><P>This will look like:</P>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 13 Jan 2009 00:19:34 -0800</pubDate><guid isPermalink="false">trailfire:markId:262313</guid></item><item><title>HowTo: Theme a CCK input form | drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/262314</link><description><![CDATA[<H1 CLASS="title withtabs node-type-book">HowTo: Theme a CCK input form</H1><UL CLASS="tabs primary"><LI CLASS="active"><A CLASS="active" HREF="/node/101092"><SPAN CLASS="a"><SPAN CLASS="b">View</SPAN></SPAN></A></LI><LI><A HREF="/node/101092/revisions"><SPAN CLASS="a"><SPAN CLASS="b">Revisions</SPAN></SPAN></A></LI></UL><DIV CLASS="node"><DIV CLASS="clear-block"><DIV CLASS="terms"><A HREF="/taxonomy/term/47">Drupal 4.7.x</A> · <A HREF="/taxonomy/term/77">Drupal 5.x</A></DIV><DIV CLASS="info-page"><DIV CLASS="modified info-page">Last modified: February 18, 2008 - 23:12</DIV></DIV><DIV CLASS="content"><P>(Originally posted at <A TITLE="http://drupal.org/node/98253" HREF="http://drupal.org/node/98253">http://drupal.org/node/98253</A>)</P><P>The reason I have come up with this step by step overview of themeing input forms was that I was working with CCK created content types myself and was trying to figure out how to change the order of the fields of the input form. What I found in the forums was very technical (pointers to the API in &#39;developer speak&#39;) or incomplete, or simply did not cover input forms. There was a lot of help for people looking to modify/theme output, but nothing clear and concise for theming input forms.</P><P>So, as a non-developer, semi-technical, marketing/business type person, I set out to discover how to &#39;theme&#39; my input forms. (All those developers and others that are better informed than I, please feel free to correct me where I am wrong!) I found there are at least two different ways to theme input forms:</P></DIV></DIV></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 13 Jan 2009 00:23:58 -0800</pubDate><guid isPermalink="false">trailfire:markId:262314</guid></item><item><title>How to add a tab to a node&amp;#039;s display? | groups.drupal.org</title><link>http://www.trailfire.com/enjoylife/marks/262377</link><description><![CDATA[<H1 CLASS="title node-type-story">How to add a tab to a node&#39;s display?</H1><DIV CLASS="node"><DIV CLASS="visibility">public</DIV><DIV CLASS="terms groups">group: <A HREF="/drupal-dojo">Drupal Dojo</A></DIV><DIV CLASS="info-page"><A TITLE="View user profile." HREF="/user/12788">kirilius</A> - Wed, 2008-01-23 05:11</DIV><DIV CLASS="content"><P>Hi, I posted this to the forums, but probably this is a better place to place it since it seems to be a problem for the advanced Drupal community...</P><P>I have a node type called XXXXX for example. When the node is displayed (by the author) usually there are two default tabs on the top:<BR><B>View | Edit</B></P><P>Let&#39;s say I want to display some information related to the current node and I want to display that on a separate tab on the same level as View and Edit. So the tab line should look like this:<BR><B>View | Edit | Related Information</B></P><P>The related information could be of any kind: static text, panels, blocks... ultimately I want to embed a view in this tab but the more general question is: How to add this tab for my node type XXXXX only?</P><P>Can you suggest some module(s) and settings, which allow for adding tabs without (with minimal) coding?</P><P>I know that Javascript Tools module provides tabs, also Panels module can be</P></DIV></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 13 Jan 2009 13:09:06 -0800</pubDate><guid isPermalink="false">trailfire:markId:262377</guid></item><item><title>Extreme Form Handling in Drupal | The Agile Approach</title><link>http://www.trailfire.com/enjoylife/marks/262378</link><description></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 13 Jan 2009 13:13:13 -0800</pubDate><guid isPermalink="false">trailfire:markId:262378</guid></item><item><title>Drupal&amp;#039;s Twitter Module - Integrating Drupal Posts with Twitter | Webmaster Tips</title><link>http://www.trailfire.com/enjoylife/marks/274609</link><description><![CDATA[<P><STRONG>E:</STRONG> The Twitter Module for Drupal works. Here is some documentation for it:</P><OL><LI>Download the <A HREF="http://drupal.org/project/twitter">Twitter Module</A> from Drupal.org.</LI><LI>Upload it to your <STRONG>/sites/all/modules/</STRONG> directory.</LI><LI>Enable the module in your Drupal admin section.</LI><LI>Click on <STRONG>My account</STRONG> in your navigation menu and then on the <STRONG>edit</STRONG> tab.</LI><LI>Enter your Twitter username and password, and the text format like this:</LI></OL>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Mon, 30 Mar 2009 14:06:28 -0700</pubDate><guid isPermalink="false">trailfire:markId:274609</guid></item><item><title>Page Load Error</title><link>http://www.trailfire.com/enjoylife/marks/274636</link><description></description><category>drupal</category><author>enjoylife</author><pubDate>Mon, 30 Mar 2009 17:10:07 -0700</pubDate><guid isPermalink="false">trailfire:markId:274636</guid></item><item><title>Page Load Error</title><link>http://www.trailfire.com/enjoylife/marks/274637</link><description></description><category>drupal</category><author>enjoylife</author><pubDate>Mon, 30 Mar 2009 17:10:16 -0700</pubDate><guid isPermalink="false">trailfire:markId:274637</guid></item><item><title>How to make CCK fields do some of the same tricks as taxonomy terms | !&amp;amp;#</title><link>http://www.trailfire.com/enjoylife/marks/274792</link><description><![CDATA[How to make CCK fields do some of the same tricks as taxonomy terms<BR><BR>http://www.51edupower.com/main/admin/build/views/edit/pl_help?destination=node%2F1#views-tab-block_1<BR><BR>http://www.51edupower.com/main/admin/build/views/edit/pl_help?destination=node%2F1#views-tab-block_1]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 31 Mar 2009 17:09:16 -0700</pubDate><guid isPermalink="false">trailfire:markId:274792</guid></item><item><title>Drupal Notes | Group 42</title><link>http://www.trailfire.com/enjoylife/marks/274793</link><description><![CDATA[<H2 CLASS="page-title">Drupal Notes</H2><DIV CLASS="tabs"><DIV CLASS="view view-notes view-id-notes view-display-id-page_1 view-dom-id-1"><DIV CLASS="view-content"><H2>Articles</H2><DL CLASS="notes"><DD><DIV CLASS="notetitle"><P><A HREF="http://www.ddj.com/dept/opensource/199201603">What Is Drupal?</A> at <A HREF="http://www.ddj.com/">Dr. Dobb&#39;s Journal</A></P></DIV></DD><DD><P>An article by John VanDyk and Matt Westgate, well known developers in the Drupal community. This article was excerpted from their book Pro Drupal Development.</P></DD></DL></DIV></DIV></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 31 Mar 2009 17:22:31 -0700</pubDate><guid isPermalink="false">trailfire:markId:274793</guid></item><item><title>Displaying a taxonomy term description at the top of a Drupal view | Norio</title><link>http://www.trailfire.com/enjoylife/marks/274794</link><description><![CDATA[<H1 CLASS="title">Displaying a taxonomy term description at the top of a Drupal view</H1><DIV ID="node-95" CLASS="node node-type-story"><DIV CLASS="node-inner"><DIV CLASS="submitted">Posted on <ABBR TITLE="2008-10-07T19:05:44+0100" CLASS="created">October 7th, 2008</ABBR> at 19:05<DIV CLASS="taxonomy">in<UL CLASS="links inline"><LI CLASS="first taxonomy_term_14"><A CLASS="taxonomy_term_14" HREF="/tags/drupal">drupal</A></LI><LI CLASS="last taxonomy_term_13"><A CLASS="taxonomy_term_13" HREF="/tags/open-source">open source</A></LI></UL></DIV></DIV><DIV CLASS="content"><P>In Drupal, you can provide a description for each term in a taxonomy vocabulary. The default taxonomy term pages of Drupal 6 include the description at the top of each page (if only one term is present). Here&#39;s how you can achieve the same thing when using <A HREF="http://drupal.org/project/views">views</A>.</P><OL><LI>Make sure your theme has a <EM>page.tpl.php</EM> file. My theme is a subtheme of <A HREF="http://drupal.org/project/zen">Zen</A> so I copied the <EM>page.tpl.php</EM> file from the <EM>zen</EM> folder into my theme&#39;s folder.</LI><LI>Create a duplicate of your theme&#39;s <EM>page.tpl.php</EM> file and call it <EM>page-taxonomy.tpl.php</EM>.</LI><LI>Edit the new <EM>page-taxonomy.tpl.php</EM> file and add the following where you want the description to appear (for example at the end of the <EM>content-header</EM>):<BR><PRE>  </PRE><DIV ID="taxonomy-term-description"><PRE>
</PRE></LI><LI>Edit your theme&#39;s <EM>template.php</EM> file and add the following function:<BR><PRE>function yourtheme_preprocess_page(&amp;$vars, $hook) {
  $term = taxonomy_get_term(arg(2));
  $vars[&#39;taxonomy_term_description&#39;] = filter_xss_admin($term-&gt;description);
}
</PRE></LI></OL><P>After you clear your theme registry - by visting the <EM>admin/build/modules</EM> page - the term description will be displayed at the top of the page showing your <EM>taxonomy_term</EM> view.</P></DIV></DIV></DIV>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 31 Mar 2009 17:27:01 -0700</pubDate><guid isPermalink="false">trailfire:markId:274794</guid></item><item><title>Drupal Tutorials - Essential Drupal Social Networking Modules | DrupalSN.com</title><link>http://www.trailfire.com/enjoylife/marks/274795</link><description><![CDATA[<P>I&#39;ve been playing around with Drupal setups for 3 years now and in that time I&#39;ve worked on alot of community and social networking sites, so in this tutorials I&#39;m going to highlight my favourite and most useful social networking modules.</P><P>Things have moved along since DrupalSN went live so don&#39;t be surprised to see me recommending modules I&#39;m not using on DrupalSN.<BR>Check the <A HREF="/modules_used.php">modules used on DrupalSN</A> and <A HREF="drupalsn-modules">see which DrupalSN modules are available to download</A>.</P>]]></description><category>drupal</category><author>enjoylife</author><pubDate>Tue, 31 Mar 2009 17:48:29 -0700</pubDate><guid isPermalink="false">trailfire:markId:274795</guid></item></channel></rss>
