<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/24/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>tutorial</title>
    <link>http://joetsuihk.com/en/taxonomy/term/24/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/24/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Rules 7.x 模組 201 - Component, Scheduling tasks</title>
    <link>http://joetsuihk.com/en/rules_7x_%E6%A8%A1%E7%B5%84_201_component_scheduling_tasks</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;Component 由多個 rules 的組合而成的&lt;br /&gt;
目的是提供一組需要被多個 rules 重覆使用的行動&lt;br /&gt;
例如使用相同的條件或 rules, 或者在自定義的模組中使用它們&lt;br /&gt;
你也可以匯出 Component &lt;/p&gt;
&lt;p&gt;Rules 的管理頁面的下一個 tab 就是 Component 的管理頁面&lt;br /&gt;
按 Add a new Component 便會看到以下的選項&lt;br /&gt;&lt;strong&gt;Condition set (OR)&lt;/strong&gt;: 條件的組合 (set of conditions), 只需要其中一個條件符合便執行&lt;br /&gt;&lt;strong&gt;Condition set (AND)&lt;/strong&gt;: 條件的組合, 需要全部條件都符合才執行&lt;br /&gt;&lt;strong&gt;Action set&lt;/strong&gt;: 行動組合 (set of actions), 順序一個一個的執行&lt;br /&gt;&lt;strong&gt;Rule&lt;/strong&gt;: 包含條件和行動的組合, 但沒有 Events 的設定&lt;br /&gt;&lt;strong&gt;Rule set&lt;/strong&gt;: 多個 rules的組合, 順序一個一個的執行, 同樣沒有 Events 的設定. 在需要執行多個行動的時候很有用&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/tutorial&quot;&gt;tutorial&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/taxonomy/term/57&quot;&gt;rules&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal7x&quot;&gt;Drupal 7.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/scheduling_tasks&quot;&gt;scheduling tasks&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/component&quot;&gt;component&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;Rules 7.x 模組 201 - Component, Scheduling tasks - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/rules_7x_%E6%A8%A1%E7%B5%84_201_component_scheduling_tasks&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Mon, 05 Mar 2012 11:32:59 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">277 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Rules 7.x 模組 101</title>
    <link>http://joetsuihk.com/en/rules_7x_%E6%A8%A1%E7%B5%84_101</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://www.drupal.org/project/rules&quot; target=&quot;_blank&quot;&gt;Rules&lt;/a&gt; 模組在 6.x 的時代功能上已經很強大&lt;br /&gt;
但使用者介面一直很不友善,&lt;br /&gt;
rules rule set, actions, trigger, workflow, workflow-ng 等等使人很眼花撩亂&lt;br /&gt;
令很多使用者, 甚至開發人員, 包括我, 對 rules 模組卻步&lt;br /&gt;
情願自建模組, 編寫代碼, 使用方便的 hooks 完成用戶需求&lt;br /&gt;
例如, node 有一個電郵欄位, 每一次 save 的時候都送出一封電郵到 node 的電郵欄位&lt;br /&gt;
便可以使用 hook_nodeapi() (D6)&lt;/p&gt;
&lt;p&gt;而在 7.x 中, rules 模組的使用者介面得到很大的改善&lt;br /&gt;
一般的使用者也可以使用&lt;br /&gt;
進階的 AND OR 邏輯也只需要簡單的學習就可以了&lt;br /&gt;
直接令自建模組的機會大大減少, 例如下圖:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/files/rules101-overview.PNG&quot; /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/development&quot;&gt;Development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/tutorial&quot;&gt;tutorial&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/taxonomy/term/57&quot;&gt;rules&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal7x&quot;&gt;Drupal 7.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/hooknodeapi&quot;&gt;hook_nodeapi&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;Rules 7.x 模組 101 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/rules_7x_%E6%A8%A1%E7%B5%84_101&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Mon, 06 Feb 2012 11:34:55 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">272 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>什麼是cck</title>
    <link>http://joetsuihk.com/en/cck</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;cck 貴為Drupal 的必殺模組&lt;br /&gt;
所有踏入cck 大門的初學者都要千辛萬苦的打開這大門&lt;br /&gt;
那, 讓我借你鑰匙, 輕鬆的打開它吧&lt;/p&gt;
&lt;p&gt;假如你有物件導向編程的概念&lt;br /&gt;
這一切都很相似&lt;br /&gt;
content type 是 object prototype&lt;br /&gt;
cck 定義 content type&lt;br /&gt;
node 是 object instance&lt;/p&gt;
&lt;p&gt;如無, 不打緊, 這篇就是為了沒有概念的人寫的&lt;/p&gt;
&lt;p&gt;首先要知道什麼是content type&lt;br /&gt;
content type 是內容類型&lt;br /&gt;
當描述一個物件, 以鉛筆為例, 鉛筆有一個長度, 硬度(HB, 2B, 2H...), 牌子, 價錢, 生產地....&lt;br /&gt;
但Drupal 內建的story 只可以記錄標題, 描述, 我們想要新增一個&quot;內容類型&quot;&lt;br /&gt;
放下很多種不同鉛筆的資料, 你便需要cck 了&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/drupal&quot;&gt;Drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/tutorial&quot;&gt;tutorial&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 29 May 2007 15:47:28 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">63 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
