<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/107/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Drupal 7.x</title>
    <link>http://joetsuihk.com/en/taxonomy/term/107/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/107/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>反時間方向的留言排序 </title>
    <link>http://joetsuihk.com/en/node/405</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;Drupal 原生在 node 下的留言是使用時間最先的開始 (created ASC)&lt;br /&gt;
但如果需要反方向的話 (不使用 views 為前提)：&lt;br /&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/drupal7x&quot;&gt;Drupal 7.x&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;反時間方向的留言排序  - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/405&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>Sun, 26 Apr 2015 14:11:26 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">405 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Alter comments query to order by DESC</title>
    <link>http://joetsuihk.com/en/alter_comments_query_to_order_by_desc</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;Drupal ordinary comment listing under nodes are ordered earliest first.(created ASC)&lt;br /&gt;
If you need to make it DESC, without using views:&lt;br /&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/drupal7x&quot;&gt;Drupal 7.x&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;Alter comments query to order by DESC - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/alter_comments_query_to_order_by_desc&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>Sun, 26 Apr 2015 03:22:56 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">404 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>在 node page 加入 open graph tags</title>
    <link>http://joetsuihk.com/en/node/403</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;/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_11&quot;&gt;header&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&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;在 node page 加入 open graph tags - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/403&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>Tue, 21 Apr 2015 16:02:42 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">403 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Adding open graph tags to node page</title>
    <link>http://joetsuihk.com/en/adding_open_graph_tags_to_node_page</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;/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_11&quot;&gt;header&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&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;Adding open graph tags to node page - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/adding_open_graph_tags_to_node_page&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>Tue, 21 Apr 2015 16:02:07 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">402 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>修改用戶頁面的密碼欄位</title>
    <link>http://joetsuihk.com/en/node/400</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;要求看似簡單，將用戶頁面的密碼欄位改成 “New Password” (或加 placeholder 等)&lt;/p&gt;
&lt;p&gt;由:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/sites/default/files/Screen%20Shot%202015-03-04%20at%204.40.53%20pm.png&quot; /&gt;&lt;br /&gt;
改成:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/sites/default/files/Screen%20Shot%202015-03-04%20at%204.39.39%20pm.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/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/development&quot;&gt;Development&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;修改用戶頁面的密碼欄位 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/400&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>Wed, 04 Mar 2015 08:59:06 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">400 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Alter user profile page password fields in Drupal 7.x</title>
    <link>http://joetsuihk.com/en/alter_user_profile_page_password_fields_in_drupal_7x</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;The request seems simple, change the password field title in user edit form to “New Password” (or add placeholder etc)&lt;/p&gt;
&lt;p&gt;From:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/sites/default/files/Screen%20Shot%202015-03-04%20at%204.40.53%20pm.png&quot; /&gt;&lt;br /&gt;
to:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/sites/default/files/Screen%20Shot%202015-03-04%20at%204.39.39%20pm.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/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/development&quot;&gt;Development&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;Alter user profile page password fields in Drupal 7.x - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/alter_user_profile_page_password_fields_in_drupal_7x&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>Wed, 04 Mar 2015 08:53:09 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">399 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Drupal commerce － 從代碼建立訂單</title>
    <link>http://joetsuihk.com/en/node/396</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;img src=&quot;/sites/default/files/Screen%20Shot%202014-08-11%20at%206.32.42%20pm.png&quot; /&gt;&lt;br /&gt;
Drupal commerce 己經成為 Drupal 電子商務應用的主流了，ubercart 落伍了&lt;/p&gt;
&lt;p&gt;Ubercart 是一個源自 Drupal5.x 世代的方案&lt;br /&gt;
而為了使用 Drupal7 方便的 entities，和令電子商務方案使用一個「弱品牌化」的名字，Drupal commerce 誕生了&lt;/p&gt;
&lt;p&gt;但因為 Drupal commerce 龐大的代碼量，為了方便分散工作，代碼都打散到不同的模組，各自有他們的維護者&lt;br /&gt;
再加上為數不少的 dependencies 令上手的難度過大&lt;br /&gt;
所以  &lt;a href=&quot;https://www.drupal.org/project/commerce_kickstart&quot;&gt;Drupal commerce kickstart &lt;/a&gt;便將一個完整的電子商務網站包裝起來&lt;br /&gt;
只需要下載安裝，匯入範例便可以立即使用了&lt;/p&gt;
&lt;p&gt;這次的開發和前一次類似，從代碼建立將貨物放到訂單：&lt;br /&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_3&quot;&gt;commerce&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/drupal&quot;&gt;Drupal&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;Drupal commerce － 從代碼建立訂單 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/396&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, 11 Aug 2014 10:53:47 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">396 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Create Drupal commerce order programatically</title>
    <link>http://joetsuihk.com/en/create_drupal_commerce_order_programatically</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;img src=&quot;/sites/default/files/Screen%20Shot%202014-08-11%20at%206.32.42%20pm.png&quot; /&gt;&lt;br /&gt;
Drupal commerce had become the major implementation of all-in-one ecommerce solution, from ubercart. &lt;/p&gt;
&lt;p&gt;Ubercart was long from Drupal5.x era&lt;br /&gt;
To work with entities that build-in Drupal7, and also make Drupal&#039;s commerce solution brand-less, Drupal commerce was born.&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_3&quot;&gt;commerce&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/drupal&quot;&gt;Drupal&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;Create Drupal commerce order programatically - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/create_drupal_commerce_order_programatically&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, 11 Aug 2014 10:32:23 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">395 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Custom feeds tamper plugin</title>
    <link>http://joetsuihk.com/en/en/custom_feeds_tamper_plugin</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;feeds tamper module can map multiple columns inside a CSV to the same field as multiple value&lt;br /&gt;
But there is a constraint, each field can only &quot;rewrite&quot; once&lt;br /&gt;
For example, convert&lt;br /&gt;&lt;code&gt;abc.jpg&lt;/code&gt;&lt;br /&gt;
to&lt;br /&gt;&lt;code&gt;sites/default/files/abc.jpg&lt;/code&gt;&lt;br /&gt;
and then multiple them into&lt;br /&gt;&lt;code&gt;sites/default/files/abc.jpg,sites/default/files/def.jpg&lt;/code&gt;&lt;br /&gt;
Two rewrite is needed in this case&lt;br /&gt;
There is no solution from feeds tamper module, you can only use a full path inside the CSV to skip the first rewrtie&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/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/module_development&quot;&gt;module development&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;Custom feeds tamper plugin - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/en/custom_feeds_tamper_plugin&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>Tue, 02 Jul 2013 06:21:11 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">376 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>客製自定義 feeds tamper plugin</title>
    <link>http://joetsuihk.com/en/node/375</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;feeds tamper 是一個可以將多個 CSV column map 到同一個多值欄位 (multiple value) 的 module&lt;br /&gt;
但問題是使用 &quot;rewrite&quot; 只可以在一個 column 使用&lt;br /&gt;
例如要將:&lt;br /&gt;&lt;code&gt;abc.jpg&lt;/code&gt;&lt;br /&gt;
變為&lt;br /&gt;&lt;code&gt;sites/default/files/abc.jpg&lt;/code&gt;&lt;br /&gt;
再變為多值&lt;br /&gt;&lt;code&gt;sites/default/files/abc.jpg,sites/default/files/def.jpg&lt;/code&gt;&lt;br /&gt;
就需要在 image 欄位使用兩次 rewrite&lt;br /&gt;
feeds tamper 無辦法解決，只可以在 CSV 上直接使用 full path&lt;/p&gt;
&lt;p&gt;但把心一橫，自己寫一個對應 list 的 prefixer 都不是太難&lt;br /&gt;
將&lt;br /&gt;&lt;code&gt;abc.jpg,def.jpg&lt;/code&gt;&lt;br /&gt;
變為&lt;br /&gt;&lt;code&gt;sites/default/files/abc.jpg,sites/default/files/def.jpg&lt;/code&gt;&lt;br /&gt;
就只需要一次 rewrite 了&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/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/module_development&quot;&gt;module development&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;客製自定義 feeds tamper plugin - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/375&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>Tue, 02 Jul 2013 06:15:10 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">375 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Hong Kong Economic Journal Forum revamp</title>
    <link>http://joetsuihk.com/en/en/hong_kong_economic_journal_forum_revamp</link>
    <description>&lt;div class=&quot;field field-name-field-image field-type-image field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Snapshot:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/index_6.png&quot; width=&quot;651&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/details_0.png&quot; width=&quot;773&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/user.png&quot; width=&quot;702&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/all%20users.png&quot; width=&quot;800&quot; height=&quot;680&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&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;It has been a while since my last post on this blog&lt;br /&gt;
Since we just have this project finished, and slowing moving to maintenance mode&lt;br /&gt;
This will be a great time to write something about the porject, before I forget everything&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/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/drupalcamp&quot;&gt;DrupalCamp&lt;/a&gt;&lt;/div&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&gt;&lt;/div&gt;</description>
     <pubDate>Sat, 22 Jun 2013 18:42:33 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">373 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>信報論壇 revamp</title>
    <link>http://joetsuihk.com/en/node/372</link>
    <description>&lt;div class=&quot;field field-name-field-image field-type-image field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Snapshot:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/index_6.png&quot; width=&quot;651&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/details_0.png&quot; width=&quot;773&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/user.png&quot; width=&quot;702&quot; height=&quot;800&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;img src=&quot;http://joetsuihk.com/sites/default/files/all%20users.png&quot; width=&quot;800&quot; height=&quot;680&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&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;都有一段時間忙得要死，沒有更新這個 blog 了&lt;br /&gt;
這次的 project 總算順利完成，穩定進入維護階段的同時&lt;br /&gt;
花點時間寫一寫這次使用 Drupal 的經驗好了&lt;/p&gt;
&lt;p&gt;這個在三月中開始版面設計的網站，當然是使用 Drupal7 開發&lt;br /&gt;
結構上不算太複雜，只有首頁，文章內頁，用戶頁，「著名博主」頁&lt;br /&gt;
但因為用戶可以自行編寫文章，node edit form 都需要使用客製化的 theme&lt;br /&gt;
而且那個 form 需要一定程度的簡化，令一般使用者可以比較容易上手&lt;/p&gt;
&lt;p&gt;在網站也使用了 responsive web design 的版面設計&lt;br /&gt;
令手機的使用者可以使用一個比較簡單的版面&lt;br /&gt;
但 js based 的 responsive 有反應慢，需要等待 js 執行的問題&lt;br /&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/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/drupalcamp&quot;&gt;DrupalCamp&lt;/a&gt;&lt;/div&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&gt;&lt;/div&gt;</description>
     <pubDate>Fri, 21 Jun 2013 11:10:59 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">372 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>自定義 Drupal commerce 付款流程</title>
    <link>http://joetsuihk.com/en/node/352</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;Commerce 是 Drupal 7.x 電子商務的最新模組&lt;/p&gt;
&lt;h3&gt;背景資料&lt;/h3&gt;
&lt;p&gt;ubercart 一直為 Drupal 6.x 電子商務的指定模組&lt;br /&gt;
但它和其他的模組有一點點的不同，它的主站並不設在 Drupal.org (&lt;a href=&quot;http://www.ubercart.org&quot;&gt;www.ubercart.org&lt;/a&gt;)&lt;br /&gt;
所以 Drupal 社區嘗試將它移回 Drupal.org 的時候就發生了一些磨擦&lt;br /&gt;
有一些開發者便決定為 Drupal 7.x 的電子商務重新出發&lt;br /&gt;
所以便誕生了 commerce 模組了&lt;/p&gt;
&lt;h3&gt;最近的更新&lt;/h3&gt;
&lt;p&gt;Commerce 模組已經開發了一年以上，而且各方面都越加成熟了&lt;/p&gt;
&lt;h4&gt;Variations&lt;/h4&gt;
&lt;p&gt;那 &quot;display node&quot; 的易用性的問題已經用一個全新的 &quot;variations&quot; 概念完美的解決了&lt;br /&gt;
你可以建立一個產品然後增加那個產品的 &quot;Color variations&quot;，&quot;Size variations&quot; 等等&lt;br /&gt;
它們會在同一個頁面顯示，而 variations 會化為一組 dropdown 給客人選擇&lt;br /&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_3&quot;&gt;commerce&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/development&quot;&gt;Development&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;自定義 Drupal commerce 付款流程 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/node/352&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>Fri, 11 Jan 2013 11:07:31 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">352 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Customize Drupal commerce checkout flow</title>
    <link>http://joetsuihk.com/en/en/customize_drupal_commerce_checkout_flow</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;Commerce is the new born from ubercart developers For Drupal 7.x&lt;/p&gt;
&lt;h3&gt;Background information&lt;/h3&gt;
&lt;p&gt;ubercart had long been the e-commerce solution for Drupal 6.x&lt;br /&gt;
but it is some what different from other modules, it existed away from Drupal.org (&lt;a href=&quot;http://www.ubercart.org&quot;&gt;www.ubercart.org&lt;/a&gt;)&lt;br /&gt;
So Drupal community is trying to merge back to Drupal.org and some conflicts happens&lt;br /&gt;
Some developers decided to start from scratch and build a new e-commerce solution for Drupal 7.x&lt;br /&gt;
and hence the born of commerce module&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_3&quot;&gt;commerce&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/development&quot;&gt;Development&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;Customize Drupal commerce checkout flow - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/en/customize_drupal_commerce_checkout_flow&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>Fri, 11 Jan 2013 10:26:14 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">351 at http://joetsuihk.com</guid>
  </item>
  <item>
    <title>Custom Rules action example</title>
    <link>http://joetsuihk.com/en/en/custom_rules_action_example</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;The actions being used inside rules and actions in trigger &lt;strong&gt;is not the same&lt;/strong&gt;&lt;br /&gt;
But we can still take code example from rules/modules/*.rules.inc&lt;br /&gt;
and you will see lots of &quot;core - optional&quot; module rules&lt;/p&gt;
&lt;p&gt;Rules action example module:&lt;br /&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/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/taxonomy/term/55&quot;&gt;actions&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/development&quot;&gt;Development&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;Custom Rules action example - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/en/custom_rules_action_example&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, 07 Jan 2013 12:23:41 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">349 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
