<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>浏忙大爆炸 &#187; Drupal</title>
	<atom:link href="http://blog.waterlin.org/articles/tag/drupal/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.waterlin.org</link>
	<description>源于理工科男的烂笔头情结</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:35:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Drupal 非默认主题带来的困惑</title>
		<link>http://blog.waterlin.org/articles/intruduced-problems-by-customized-themes-in-drupal.html</link>
		<comments>http://blog.waterlin.org/articles/intruduced-problems-by-customized-themes-in-drupal.html#comments</comments>
		<pubDate>Wed, 21 Oct 2009 09:18:08 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/intruduced-problems-by-customized-themes-in-drupal.html</guid>
		<description><![CDATA[根据以前的给Drupal安装所见即所得的编辑工具方法，我们可以给 Drupal 安装一个可视化编辑工具，让发文章更加方便。 不过今天我发现在使用了 Artsy 这个主题 ( theme ) 之后，尽管我的 Wysiwyg 安装正确，可是在发布文章的时候还是显示不出 Wysiwyg 工具栏。但是切换成系统默认的主题后，Wysiwyg 又能正确显现。 就这个问题害得我折腾了一早上！ 我硬盘上的 Artsy 文件包是比较旧的版本，好像有一个不支持可视化编辑器的 bug。要么装一个新版本，或用临时的应急办法：在 Drupal 管理后台 Administer &#62;&#62; Site configuration &#62;&#62; Administration theme 里把 Use administration theme for content editing 勾上，并为发布内容专门设置一个支持 Wysiwyg 的 Theme。 特此总结经验：以后要小心留意不同主题的兼容问题，如果发现某个功能按正确步骤安装好了，却不能使用，应该首先考虑把 Drupal 的主题换回默认的主题测试一把。因为大多数的插件并没有在所有的主题下测试，但却一定在系统的默认主题下测试过。 原创文章，如转载请注明：转载自细节之锤 [ http://blog.WaterLin.org/ ] Copyright © WaterLin.org. All rights reserved.]]></description>
			<content:encoded><![CDATA[<p>根据以前的<a href="http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html">给Drupal安装所见即所得的编辑工具</a>方法，我们可以给 <a href="http://blog.waterlin.org/articles/tag/drupal">Drupal</a> 安装一个可视化编辑工具，让发文章更加方便。</p>
<p>不过今天我发现在使用了 <a href="http://drupal.org/project/artsy">Artsy</a> 这个主题 ( theme ) 之后，尽管我的 Wysiwyg 安装正确，可是在发布文章的时候还是显示不出 Wysiwyg 工具栏。但是切换成系统默认的主题后，Wysiwyg 又能正确显现。</p>
<p>就这个问题害得我折腾了一早上！</p>
<p>我硬盘上的 Artsy 文件包是比较旧的版本，好像有一个不支持可视化编辑器的 bug。要么装一个新版本，或用临时的应急办法：在 Drupal 管理后台 Administer &gt;&gt; Site configuration &gt;&gt; Administration theme 里把 Use administration theme for content editing 勾上，并为发布内容专门设置一个支持 Wysiwyg 的 Theme。</p>
<p>特此总结经验：以后要小心留意不同主题的兼容问题，如果发现某个功能按正确步骤安装好了，却不能使用，应该首先考虑把 Drupal 的主题换回默认的主题测试一把。因为大多数的插件并没有在所有的主题下测试，但却一定在系统的默认主题下测试过。</p>
<p>原创文章，如转载请注明：转载自细节之锤 [ <a href="http://blog.WaterLin.org/">http://blog.WaterLin.org/</a> ]</p>
<p>Copyright © WaterLin.org. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/intruduced-problems-by-customized-themes-in-drupal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>定制 Drupal 远程发布功能</title>
		<link>http://blog.waterlin.org/articles/publish-article-remotely-in-drupal.html</link>
		<comments>http://blog.waterlin.org/articles/publish-article-remotely-in-drupal.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 09:13:29 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/publish-article-remotely-in-drupal.html</guid>
		<description><![CDATA[很多人用 Drupal 来搭建多博客服务，因此，一个博客远程发布功能必不可少。Drupal 可以通过支持 XML-RPC 的工具来实现远程发布，当然，配置 Drupal 比起 WordPress 之类的专用博客系统要麻烦一些，主要步骤如下： 在后台管理中勾选 Administer &#62;&#62; Site building &#62;&#62; Modules &#62;&#62; Blog &#38; Blogapi 使博客及其远程发布功能生效； 在后台管理 Administer &#62;&#62; Site configuration &#62;&#62; Blog API 里，进行远程发布的相关属性设置； 通过勾选 Administer &#62;&#62; User management &#62;&#62; Roles &#62;&#62; blog module &#38; blogapi module 给帐号所在的角色 ( Role ) 分配远程发布的功能； 现在你可以在你的远程发布工具里填写下面的 API 的地址来进行远程发布。 http://YourDomain/xmlrpc.php 通过以上几个步骤就能定制 Drupal [...]]]></description>
			<content:encoded><![CDATA[<p>很多人用 Drupal 来搭建多博客服务，因此，一个博客远程发布功能必不可少。Drupal 可以通过支持 XML-RPC 的工具来实现远程发布，当然，配置 Drupal 比起 WordPress 之类的专用博客系统要麻烦一些，主要步骤如下：</p>
<ol>
<li>在后台管理中勾选 Administer &gt;&gt; Site building &gt;&gt; Modules &gt;&gt; Blog &amp; Blogapi 使博客及其远程发布功能生效；</li>
<li>在后台管理 Administer &gt;&gt; Site configuration &gt;&gt; Blog API 里，进行远程发布的相关属性设置；</li>
<li>通过勾选 Administer &gt;&gt; User management &gt;&gt; Roles &gt;&gt; blog module &amp; blogapi module 给帐号所在的角色 ( Role ) 分配远程发布的功能；</li>
<li>现在你可以在你的远程发布工具里填写下面的 API 的地址来进行远程发布。
<pre>

http://YourDomain/xmlrpc.php
</pre>
</li>
</ol>
<p>通过以上几个步骤就能定制 Drupal 最基本的远程发布功能。</p>
<p>原创文章，如转载请注明：转载自细节之锤 [ <a href="http://blog.WaterLin.org/">http://blog.WaterLin.org/</a> ]</p>
<p>Copyright © WaterLin.org. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/publish-article-remotely-in-drupal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 安装的一个陷阱</title>
		<link>http://blog.waterlin.org/articles/drupal-install-problem.html</link>
		<comments>http://blog.waterlin.org/articles/drupal-install-problem.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:33:15 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/drupal-install-problem.html</guid>
		<description><![CDATA[Drupal 的安装很简单，把 Drupal 的源码包解压到你的 Web 路径下，输入这个地址，然后照着提示一步一步做就可以了。但是，这里如果你没有严格按照 Drupal 的要求做，会出一些莫名其秒的错误。 在安装的第一步，Drupal 提示你把 ./sites/default/default.settings.php 这个文件，复制成一个名为 ./sites/default/settings.php 的文件。 这个时候，很多人为了省力气，就直接把文件 default.settings.php 的文件名改为 settings.php 了事。如果这样，安装的时候会提示如下的警告信息： Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\drupal\includes\install.inc on line 188 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\drupal\includes\install.inc:188) in C:\xampp\htdocs\drupal\includes\install.inc on line 618 [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal 的安装很简单，把 Drupal 的源码包解压到你的 Web 路径下，输入这个地址，然后照着提示一步一步做就可以了。但是，这里如果你没有严格按照 Drupal 的要求做，会出一些莫名其秒的错误。</p>
<p>在安装的第一步，Drupal 提示你把</p>
<pre>
  ./sites/default/default.settings.php
</pre>
<p>这个文件，复制成一个名为</p>
<pre>
  ./sites/default/settings.php
</pre>
<p>的文件。</p>
<p>这个时候，很多人为了省力气，就直接把文件 default.settings.php 的文件名改为 settings.php 了事。如果这样，安装的时候会提示如下的警告信息：</p>
<pre>
  Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\drupal\includes\install.inc on line 188

  Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\drupal\includes\install.inc:188) in C:\xampp\htdocs\drupal\includes\install.inc on line 618

  Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\drupal\includes\install.inc:188) in C:\xampp\htdocs\drupal\includes\install.inc on line 619
</pre>
<p>如果你的 php.ini 配置比较严格，则安装过程会中断。</p>
<p>正确的安装方法应该是要保留 default.settings.php 这个文件。</p>
<p>原创文章，如转载请注明：转载自细节之锤 [ <a href="http://blog.WaterLin.org/">http://blog.WaterLin.org/</a> ]</p>
<p>Copyright © WaterLin.org. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/drupal-install-problem.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 里为各个 node 设置别名</title>
		<link>http://blog.waterlin.org/articles/set-url-aliases-in-drupal.html</link>
		<comments>http://blog.waterlin.org/articles/set-url-aliases-in-drupal.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:51:58 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/set-url-aliases-in-drupal.html</guid>
		<description><![CDATA[Drupal 默认是用一个一个的 node 来表示内容的，node 是 Drupal 里最基本的页面元素。几乎所有的内容都能称为 node，当然，它的 URL 并不友好，默认是下面的形式： http://yourdomain/node/37 这种类型的 URL 并不能一目了然地理解页面的性质，最好能给页面设置有规律的别名 (alias)。 要让 Drupal 具备重写 URL aliases 功能的话，可以在管理后台激活 path 模块，然后再安装 pathauto 模块，安装前的效果如下图所示： 安装完成后，在 Home &#62;&#62; Administer &#62;&#62; Site building &#62;&#62; URL aliases 里，就可以看到多了一个 Automated alias settings 选项页，在这里可以根据任意喜好，随便修改 URL alias 设置。安装后的效果如下图所示： 在我们定制完规则要生成 aliases 的时候，记得把最下面这个选项勾上： Bulk generate aliases for nodes that are not aliased [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal 默认是用一个一个的 node 来表示内容的，node 是 Drupal 里最基本的页面元素。几乎所有的内容都能称为 node，当然，它的 URL 并不友好，默认是下面的形式：</p>
<pre>

http://yourdomain/node/37
</pre>
<p>这种类型的 URL 并不能一目了然地理解页面的性质，最好能给页面设置有规律的别名 (alias)。</p>
<p>要让 Drupal 具备重写 URL aliases 功能的话，可以在<a href="http://blog.waterlin.org/articles/installing-drupal-module.html">管理后台激活 path 模块</a>，然后再安装 <a href="http://drupal.org/project/pathauto">pathauto</a> 模块，安装前的效果如下图所示：</p>
<p><img src="http://blog.waterlin.org/files/2009/09/drupalpathautobeforecopyright.png" alt="DrupalPathAutoBeforeCopyright.png" height="126"></p>
<p>安装完成后，在 Home &gt;&gt; Administer &gt;&gt; Site building &gt;&gt; URL aliases 里，就可以看到多了一个 Automated alias settings 选项页，在这里可以根据任意喜好，随便修改 URL alias 设置。安装后的效果如下图所示：</p>
<p><img src="http://blog.waterlin.org/files/2009/09/drupalpathautoaftercopyright.png" alt="DrupalPathAutoAfterCopyright.png" height="157"></p>
<p>在我们定制完规则要生成 aliases 的时候，记得把最下面这个选项勾上：</p>
<pre>
  Bulk generate aliases for nodes that are not aliased
</pre>
<p>要删除某一类别的 aliases 的话，可以在 Home &gt;&gt; Administer &gt;&gt; Site building &gt;&gt; URL aliases 里的 Delete aliases 选项页里进行操作。</p>
<p>原创文章，如转载请注明：转载自细节之锤 [ <a href="http://blog.waterlin.org/">http://blog.waterlin.org/</a> ]</p>
<p>Copyright © WaterLin.org. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/set-url-aliases-in-drupal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>指定Drupal IMCE模块存放图片的路径</title>
		<link>http://blog.waterlin.org/articles/set-drupal-imce-save-path.html</link>
		<comments>http://blog.waterlin.org/articles/set-drupal-imce-save-path.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:13:43 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/set-drupal-imce-save-path.html</guid>
		<description><![CDATA[如果你在Drupal里用IMCE来上传图片，IMCE默认是把图片一股脑的扔到目录sites/default/files/u%uid下面（%uid是指用户的ID编号）。 这样放图片并不是太理想，随着建站时间的增长，图片的数量必定会越来越多，一股脑地放在一个文件夹下，并不好管理。 我们可以在IMCE里进行一定的设置，从而达到定制保存路径的目的。 从Drupal的管理用户菜单里，进入Administrater &#8211;&#62; Site configuration &#8211;&#62; IMCE，编辑用户所用的IMCE Profile，如下图所示： 对Profile里的Directories属性进行修改，即可以自定义任何喜欢的路径来存放图片，比如说，我用以下面的代码： php: return &#8216;u&#8217;.$user-&#62;uid.&#8217;/&#8217;.date(&#8216;Y&#8217;, $user-&#62;created).&#8217;/&#8217;.date(&#8216;m&#8217;, $user-&#62;created); 则IMCE在上传图片的时候，会保存在形如下面的路径里： sites/default/files/u4/2009/07/ 随着上传时间的不同，图片保存的路径也有所变化，这样就方便管理了。]]></description>
			<content:encoded><![CDATA[<p>如果你<a href="http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html" target="_blank">在Drupal里用IMCE来上传图片</a>，IMCE默认是把图片一股脑的扔到目录<strong>sites/default/files/u%uid</strong>下面（%uid是指用户的ID编号）。</p>
<p>这样放图片并不是太理想，随着建站时间的增长，图片的数量必定会越来越多，一股脑地放在一个文件夹下，并不好管理。</p>
<p>我们可以在IMCE里进行一定的设置，从而达到定制保存路径的目的。</p>
<p>从Drupal的管理用户菜单里，进入<strong>Administrater &#8211;&gt; Site configuration &#8211;&gt; IMCE</strong>，编辑用户所用的IMCE Profile，如下图所示：</p>
<p><img src="http://blog.waterlin.org/files/2009/07/set-imce-save-path.png" alt="Set_IMCE_save_path.png" height="376"></p>
<p>对Profile里的Directories属性进行修改，即可以自定义任何喜欢的路径来存放图片，比如说，我用以下面的代码：</p>
<blockquote><p>php: return &#8216;u&#8217;.$user-&gt;uid.&#8217;/&#8217;.date(&#8216;Y&#8217;, $user-&gt;created).&#8217;/&#8217;.date(&#8216;m&#8217;, $user-&gt;created);</p>
</blockquote>
<p>则IMCE在上传图片的时候，会保存在形如下面的路径里：</p>
<blockquote><p>sites/default/files/u4/2009/07/</p>
</blockquote>
<p>随着上传时间的不同，图片保存的路径也有所变化，这样就方便管理了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/set-drupal-imce-save-path.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal中Blocks和Menus的定制</title>
		<link>http://blog.waterlin.org/articles/customize-drupal-with-blocks-and-menus.html</link>
		<comments>http://blog.waterlin.org/articles/customize-drupal-with-blocks-and-menus.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 08:53:18 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/customize-drupal-with-blocks-and-menus.html</guid>
		<description><![CDATA[Block是指Drupal页面中各种内容的容器，比如&#8221;Recent posts&#8221;，&#8221;Sponsor links&#8221;或者&#8221;Who&#8217;s online&#8221;等；Menu则指注册用户的菜单栏，通常位于用户页面的左边。Drupal Cookbook对这两个名词有着详细的解释： Block: This is a &#8220;container&#8221; for pieces of content on your displayed page. You may also have &#8220;Recent posts,&#8221; &#8220;Sponsor links,&#8221; or &#8220;Who&#8217;s online.&#8221; Menu:A menu displays a list of links. Drupal menus are often located in a column on the left. For example, your navigation menu. 如果需要定制Drupal的Blocks或者Menus，可以在Drupal的Administrater &#8211;&#62; Site [...]]]></description>
			<content:encoded><![CDATA[<p>Block是指Drupal页面中各种内容的容器，比如&#8221;Recent posts&#8221;，&#8221;Sponsor links&#8221;或者&#8221;Who&#8217;s online&#8221;等；Menu则指注册用户的菜单栏，通常位于用户页面的左边。<a href="http://drupal.org/handbook/customization/tutorials/beginners-cookbook" target="_blank">Drupal Cookbook</a>对这两个名词有着详细的解释：</p>
<blockquote><p>Block: This is a &#8220;container&#8221; for pieces of content on your displayed page. You may also have &#8220;Recent posts,&#8221; &#8220;Sponsor links,&#8221; or &#8220;Who&#8217;s online.&#8221;</p>
<p>Menu:A menu displays a list of links. Drupal menus are often located in a column on the left. For example, your navigation menu.</p>
</blockquote>
<p>如果需要定制Drupal的Blocks或者Menus，可以在Drupal的<strong>Administrater &#8211;&gt; Site Building</strong>里的Blocks或Menus里进行定制。</p>
<p>站点导航条可以在<strong>Administrater &#8211;&gt; Site Building &#8211;&gt; Menus &#8211;&gt; Primary links</strong>进行设置，而Menus里的Navigation则是针对注册用户登陆后的个性化菜单。注意不要混淆Primary links和Navigation的作用。</p>
<p>熟练使用Drupal提供的这些功能，就能体会到Drupal高度可定制的优点了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/customize-drupal-with-blocks-and-menus.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Drupal里安装Gallery作为图片库</title>
		<link>http://blog.waterlin.org/articles/integrate-gallery2-for-drupal.html</link>
		<comments>http://blog.waterlin.org/articles/integrate-gallery2-for-drupal.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 07:48:44 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/integrate-gallery2-for-drupal.html</guid>
		<description><![CDATA[Gallery是一个非常优秀的相册开源系统，我们可以用它来为Drupal增加一个完整的相册功能。 1) 先安装Gallery2 官方网站里有Gallery2的详细文档，同样，也有Gallery2的安装手册。 Gallery2的安装步骤和其它的开源系统基本上一样，新建一个数据库，然后根据向导一步一步安装即可。 最好把Gallery2安装到Drupal目录下，否则将来会带来一些不必要的麻烦和额外的工作；最好这个目录不要取名为Gallery，可以叫Gallery2或Album之类。这样就不会和Gallery Module有重名的可能性了。 安装完成后，记得注销已登陆的Gallery帐号，否则下一步进行安装的时候，可能会出错。 2) 在Drupal里安装Gallery Module Gallery Module的安装方法和Drupal里安装一般的Module类似。 同时记得，你应该在Drupal里安装Image Block和Image Frame模块。 3) 在Drupal的后台启用gallery module Administer &#8211;&#62; Site building &#8211;&#62; Modules 4) 配置Gallery的路径 Administer &#8211;&#62; Site configuration &#8211;&#62; Gallery (admin/settings/gallery) 把Gallery配置成你在第一步的安装路径，注意，这里的根目录应该是指Drupal目录。 这一步一定要配置好，否则就没有办法把Gallery2植入到Drupal里了。 配置好以后，就可以同步一下Drupal和Gallery2的帐号信息。 这一步如果进行顺利，则可以在菜单栏里看到Gallery的管理页面链接。 5) 启用Gallery Block Administer &#8211;&#62; Site building &#8211;&#62; Blocks 只有启用了Gallery Block，才能在Drupal直接看到Gallery里的图片。 6) Gallery的用户管理可以在Administer &#8211;&#62; User management &#8211;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gallery.menalto.com/" target="_blank" title="Gallery">Gallery</a>是一个非常优秀的相册开源系统，我们可以用它来为Drupal增加一个完整的相册功能。</p>
<p>1) 先安装<a href="http://gallery.menalto.com/" title="Gallery2">Gallery2</a></p>
<p>官方网站里有<a href="http://codex.gallery2.org/Main_Page" target="_blank">Gallery2的详细文档</a>，同样，也有<a href="http://codex.gallery2.org/Gallery2:How_do_I_Install_Gallery2" target="_blank">Gallery2的安装手册</a>。</p>
<p>Gallery2的安装步骤和其它的开源系统基本上一样，新建一个数据库，然后根据向导一步一步安装即可。</p>
<p>最好把Gallery2安装到Drupal目录下，否则将来会带来一些不必要的麻烦和额外的工作；最好这个目录不要取名为Gallery，可以叫Gallery2或Album之类。这样就不会和Gallery Module有重名的可能性了。</p>
<p>安装完成后，记得注销已登陆的Gallery帐号，否则下一步进行安装的时候，可能会出错。</p>
<p>2) 在Drupal里安装<a href="http://drupal.org/project/gallery" target="_blank">Gallery Module</a></p>
<p><a href="http://drupal.org/project/gallery" target="_blank">Gallery Module</a>的安装方法和Drupal里安装一般的Module类似。</p>
<p>同时记得，你应该在Drupal里安装<a href="http://drupal.org/node/48676" target="_blank">Image Block</a>和Image Frame模块。</p>
<p>3) 在Drupal的后台启用gallery module</p>
<blockquote><p>Administer &#8211;&gt; Site building &#8211;&gt; Modules</p>
</blockquote>
<p>4) 配置Gallery的路径</p>
<blockquote><p>Administer &#8211;&gt; Site configuration &#8211;&gt; Gallery (admin/settings/gallery)</p>
</blockquote>
<p>把Gallery配置成你在第一步的安装路径，注意，这里的根目录应该是指Drupal目录。</p>
<p>这一步一定要配置好，否则就没有办法把Gallery2植入到Drupal里了。</p>
<p>配置好以后，就可以同步一下Drupal和Gallery2的帐号信息。</p>
<p>这一步如果进行顺利，则可以在菜单栏里看到Gallery的管理页面链接。</p>
<p>5) 启用Gallery Block</p>
<blockquote><p>Administer &#8211;&gt; Site building &#8211;&gt; Blocks</p>
</blockquote>
<p>只有启用了Gallery Block，才能在Drupal直接看到Gallery里的图片。</p>
<p>6) Gallery的用户管理可以在<strong>Administer &#8211;&gt; User management &#8211;&gt; Gallery users</strong> (admin/user/gallery)里进行维护，可以检查一下用户是否已经同步到这里了。</p>
<p>在<strong>User management &#8211;&gt; Permissions</strong>里，给需要Gallery权限的用户，分配access gallery的权限。</p>
<p>就这样，完成了基本的Gallery2与Drupal的集成安装与配置。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/integrate-gallery2-for-drupal.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>更换Drupal主题</title>
		<link>http://blog.waterlin.org/articles/how-to-change-drupal-theme.html</link>
		<comments>http://blog.waterlin.org/articles/how-to-change-drupal-theme.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 09:38:37 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/how-to-change-drupal-theme.html</guid>
		<description><![CDATA[Drupal可以任意更换主题，主要把从网上下载的Drupal主题（官网模板下载站），扔到目录/themes/，然后在&#8220;管理后台&#8221; &#8211;&#62; Administrator &#8211;&#62; Themes里，启用这个主题即可。]]></description>
			<content:encoded><![CDATA[<p>Drupal可以任意更换主题，主要把从网上下载的Drupal主题（<a href="http://drupal.org/project/themes" target="_blank">官网模板下载站</a>），扔到目录/themes/，然后在<strong>&#8220;管理后台&#8221; &#8211;&gt; Administrator &#8211;&gt; Themes</strong>里，启用这个主题即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/how-to-change-drupal-theme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给Drupal安装所见即所得的编辑工具</title>
		<link>http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html</link>
		<comments>http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 05:10:16 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html</guid>
		<description><![CDATA[Drupal只是提供了一个高度可定制的系统，并没有附带很多功能。在默认配置下，发布内容时，Drupal是用纯文本编辑器，而大多数情况下，我们需要更方便的所见即所得的编辑工具，以及包括选择、上传图片等更多功能。可以用以下几个步骤来给Drupal安装、配置一个可视化编辑器： 1) 安装Wysiwyg模块，和一般的module的安装方法一样。 安装好了，需要进行适当的配置： Administer &#62; Site configuration &#62; Wysiwyg 2) Wysiwyg只是Drupal提供给各个可视化编辑器的API引擎，如果你没有安装任何编辑器，则需要安装一个。我这里选择TinyMCE，解压放到Drupal安装根目录下的sites/all/libraries/tinymce目录里。 如果没有libraries目录，则自己创建一个。 这个时候，再到Wysiwyg的设置里，就能选择TinyMCE作为编辑器了。 3) 选择TinyMCE作为编辑器后，需要到Administer &#8211;&#62; Site configuration &#8211;&#62; Input formats给用户分配适当的编辑器可视化功能选项。 这个时候，你再到Create content里，创建一个Blog entry看看，是不是有富文本编辑器了？ 4) 按上面的步骤配好的编辑器，在你需要插入图像的时候，会弹出如下的对话框： 看看，并没有选择图片的按钮！ 所以接下来，我们需要添加插入本地图片的功能。我们需要安装下面两个插件： (1) IMCE模块 安装成功后，记得到Administer &#8211;&#62; Site Configuration &#8211;&#62; IMCE里，给需要上传图片文件的用户分派IMCE权限。否则，这些用户依然没有办法上传图片。 (2) IMCE Wysiwyg bridge模块 这个模块的功能是桥接IMCE和Wysiwyg，注意，这个是TinyMCE with WYSIWYG API来负责的。 安装好IMCE Wysiwyg bridge以后，记得到在Wysiwyg的配置里对TinyMCE和IMCE进行配置： 在Administer &#8211;&#62; site Configuration &#8211;&#62; Wysiwyg里，点Edit，进到TinyMCE profile [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal只是提供了一个高度可定制的系统，并没有附带很多功能。在默认配置下，发布内容时，Drupal是用纯文本编辑器，而大多数情况下，我们需要更方便的所见即所得的编辑工具，以及包括选择、上传图片等更多功能。可以用以下几个步骤来给Drupal安装、配置一个可视化编辑器：</p>
<p>1) 安装<a href="http://drupal.org/project/wysiwyg" target="_blank" title="Wysiwyg">Wysiwyg</a>模块，和<a href="http://blog.waterlin.org/articles/installing-drupal-module.html" target="_blank">一般的module的安装方法</a>一样。</p>
<p>安装好了，需要进行适当的配置：</p>
<blockquote><p>Administer &gt; Site configuration &gt; Wysiwyg</p>
</blockquote>
<p>2) Wysiwyg只是Drupal提供给各个可视化编辑器的API引擎，如果你没有安装任何编辑器，则需要安装一个。我这里选择<a href="http://tinymce.moxiecode.com/download.php" target="_blank">TinyMCE</a>，解压放到Drupal安装根目录下的<strong>sites/all/libraries/tinymce</strong>目录里。</p>
<p>如果没有libraries目录，则自己创建一个。</p>
<p>这个时候，再到Wysiwyg的设置里，就能选择TinyMCE作为编辑器了。</p>
<p>3) 选择TinyMCE作为编辑器后，需要到<strong>Administer &#8211;&gt; Site configuration &#8211;&gt; Input formats</strong>给用户分配适当的编辑器可视化功能选项。</p>
<p>这个时候，你再到Create content里，创建一个Blog entry看看，是不是有富文本编辑器了？</p>
<p>4) 按上面的步骤配好的编辑器，在你需要插入图像的时候，会弹出如下的对话框：</p>
<p><img src="http://blog.waterlin.org/wp-content/uploads/250/25015/2009/07/tinymce.png" alt="TinyMCE.png" height="316"></p>
<p>看看，并没有选择图片的按钮！</p>
<p>所以接下来，我们需要添加插入本地图片的功能。我们需要安装下面两个插件：</p>
<p>(1) <a href="http://drupal.org/project/imce" target="_blank" title="IMCE">IMCE</a>模块</p>
<p>安装成功后，记得到<strong>Administer &#8211;&gt; Site Configuration &#8211;&gt; IMCE</strong>里，给需要上传图片文件的用户分派IMCE权限。否则，这些用户依然没有办法上传图片。</p>
<p>(2) <a href="http://drupal.org/project/imce_wysiwyg" target="_blank" title="IMCE Wysiwyg bridge">IMCE Wysiwyg bridge</a>模块</p>
<p>这个模块的功能是桥接IMCE和Wysiwyg，注意，这个是TinyMCE with WYSIWYG API来负责的。</p>
<p>安装好<a href="http://drupal.org/project/imce_wysiwyg" target="_blank">IMCE Wysiwyg bridge</a>以后，记得到在Wysiwyg的配置里对TinyMCE和IMCE进行配置：</p>
<p><img src="http://blog.waterlin.org/files/2009/07/edit-tinymce-properties.png" alt="Edit_TinyMCE_properties.png" height="164"></p>
<p>在<strong>Administer &#8211;&gt; site Configuration &#8211;&gt; Wysiwyg</strong>里，点Edit，进到TinyMCE profile for Filtered HTML页面里，点<strong>Buttons and plugins</strong>，把IMCE勾上。</p>
<p>现在来测试一下这个上传图片的功能：</p>
<p>在富文本编辑器里点击&#8221;选择图片&#8221;按钮后，会弹出如下对话框：</p>
<p><img src="http://blog.waterlin.org/files/2009/07/insert-image.png" alt="insert_image.png" height="360"></p>
<p>点击红色圆圈里的按钮后，就会弹出上传图片的对话框：</p>
<p><a href="http://blog.waterlin.org/files/2009/07/upload-image.png"><img src="http://blog.waterlin.org/files/2009/07/zrtn-002p4236a70e-tn.jpg" height="220"></a></p>
<p>上传完图片后，选择这个图片，再点<strong>Send to TinyMCE</strong>，这样，就可以在富文本编辑器里看到这张图片了：</p>
<p><a href="http://blog.waterlin.org/files/2009/07/after-upload-image.png"><img src="http://blog.waterlin.org/files/2009/07/zrtn-001n1f25b767-tn.jpg" height="157"></a></p>
<p>上传的文件默认会放在<strong>sites/default/files</strong>里。</p>
<p><strong>注意：</strong></p>
<p>如果你碰上了Drupal会自动帮你把换行符取消掉，或者你添加进来的图片不能在浏览的时候显示，那很有可能是下面这两个问题。请仔细查一查下面两个地方的Filters:</p>
<p>1) 检查一下<strong>Administer &#8211;&gt; site Configuration &#8211;&gt; Wysiwyg</strong>里的相关input format有没有问题。</p>
<p>2) 检查一下<strong>Administer &#8211;&gt; site Configuration &#8211;&gt; Input formats</strong>，看看这里面的Filters有没有把图片、换行等标识代码给过滤掉。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/add-full-text-editor-to-drupal.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用Drupal来做项目管理</title>
		<link>http://blog.waterlin.org/articles/using-drupal-to-manage-project.html</link>
		<comments>http://blog.waterlin.org/articles/using-drupal-to-manage-project.html#comments</comments>
		<pubDate>Tue, 14 Jul 2009 09:08:32 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/using-drupal-to-manage-project.html</guid>
		<description><![CDATA[自己平时写了不少小玩意，或者换句话说，是很多小项目。这些小玩意，分散在硬盘的各个角落里，管理、查找起来相当不容易，尤其是一些修复bug的工作，用文本的方式不太好记录。 其实完全可以利用Drupal来进行项目管理工作，并且可以作为bug tracker系统来用，并且还支持多人协同开发的管理。 在Drupal里进行项目管理，需要安装下面两个模块： 1) project模块 2) Project issue tracking模块 注意，安装这两个模块，可能需要Views模块，需要Devel模块以及需要Comment_upload模块。 新建一个developer的role来负责与project有关的工作，所有的开发人员都可以放到这个角色当中。 通过User Management里灵活地进行管理权限地分配，控制这些帐号的权限，从而达到安全管理项目的要求。 当然，如果你喜欢用其它bug管理工具，你依然可以在Drupal里结合它们。比如，Bugbits模块就是把Drupal和Mantis集成起来使用。]]></description>
			<content:encoded><![CDATA[<p>自己平时写了不少小玩意，或者换句话说，是很多小项目。这些小玩意，分散在硬盘的各个角落里，管理、查找起来相当不容易，尤其是一些修复bug的工作，用文本的方式不太好记录。</p>
<p>其实完全可以利用<a href="http://drupal.org/" target="_blank">Drupal</a>来进行项目管理工作，并且可以作为bug tracker系统来用，并且还支持多人协同开发的管理。</p>
<p>在Drupal里进行项目管理，需要安装下面两个模块：</p>
<p>1) <a href="http://drupal.org/project/project" target="_blank">project</a>模块</p>
<p>2) <a href="http://drupal.org/project/project_issue" target="_blank">Project issue tracking</a>模块</p>
<p>注意，安装这两个模块，可能需要<a href="http://drupal.org/project/views" target="_blank">Views</a>模块，需要<a href="http://drupal.org/project/devel" target="_blank">Devel</a>模块以及需要<a href="http://drupal.org/project/comment_upload" target="_blank">Comment_upload</a>模块。</p>
<p>新建一个developer的role来负责与project有关的工作，所有的开发人员都可以放到这个角色当中。</p>
<p>通过User Management里灵活地进行管理权限地分配，控制这些帐号的权限，从而达到安全管理项目的要求。</p>
<p>当然，如果你喜欢用其它bug管理工具，你依然可以在Drupal里结合它们。比如，<a href="http://drupal.org/project/bugbits" target="_blank">Bugbits</a>模块就是把Drupal和<a href="http://www.mantisbt.org/" target="_blank">Mantis</a>集成起来使用。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/using-drupal-to-manage-project.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

