2013年9月20日 星期五

測試 google plus 嵌入語法

直接在文章中(html)貼上語法
<!-- Place this tag in your head or just before your close body tag. -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the widget to render. -->
<div class="g-post" data-href="https://plus.google.com/110359647288464417490/posts/ZgZPF5bg1yZ"></div>
 結果如下

2013年4月15日 星期一

[Drupal 7 Module] Pathauto



一般 Drupal 的文章網址通常為 http://your-drupal/node/id ,當然我們也可以自己手動設定該篇文章的路徑別名 (URL alias)。
image

2013年4月14日 星期日

[Drupal 7 Module] Wysiwyg + TinyMCE

Wysiwyg 英文就是 「what you see is what you get」,中文叫做「所見即所得」。
在 Drupal 要發表文章,預設是純文字介面。我們可以使用 Wysiwyg 模組,搭配其他線上文字編輯器,讓使用者能更方便的發表文章。

2013年4月13日 星期六

[Drupal 7 ] 安裝模組 Module

在 Drupal ,自己安裝的模組是放在 /sites/all/modules 下面。

所以若要安裝模組,可以

  1. 下載模組,解壓縮後放到 /sites/all/modules

  2. 線上安裝模組,方法就跟這篇 [Drupal 7] 安裝版型 Theme 是一樣的方式。image

[Drupal 7] 安裝版型 Theme

安裝版型有兩種方式:


第一種:


下載檔案後,解壓縮到 sites/all/themes 目錄下
以 ssh 登入主機,進入sites/all/themes 目錄下

  • wget http://ftp.drupal.org/files/projects/premium_corporate-7.x-1.3.tar.gz
  • tar zxvf premium_corporate-7.x-1.3.tar.gz (產生 premium_corporate 目錄 )
  • 外觀」/ 找到新增的版型 / 「啟用並設為預設


    image

2013年4月12日 星期五

[Drupal 7] 安裝


一、下載程式
wget http://ftp.drupal.org/files/projects/drupal-7.22.tar.gz


二、解壓縮
tar zxvf drupal-7.22.tar.gz


三、建立資料庫
mysql –uroot –ppassword  (進入 mysql)
create database drupal7; (建立資料庫 drupal7)


四、以瀏覽器連結開始安裝
1. 選擇 Standard
image