Drupal 安裝模組 & 設定

  •  安裝中文介面

1. -> module -> 勾選 locale  -> 儲存

2. 下載中文語言檔 (https://localize.drupal.org/translate/languages/zh-hant)

3. -> configuration(設定) -> translate interface -> import(右上角)

4. -> configuration(設定) -> language -> default (預設)  -> 儲存

  • 安裝外觀版型

a. 尋找版型: 外觀 » 更多可用的版型

b. 安裝版型:外觀 » 安裝新版型

c. 預設版型:外觀 » 啟用並設為預設 » 設定

d. 啟用或停用某些頁面元素的顯示。

    取消  網站名稱 & 網站口號

e. 更換logo & favico.ico:

    (1) 將logo.png和favico.ico圖檔放置在

    /site/all/themes/professional_theme 中,然後上傳

    (2) 上傳logo位置  /site/default/files

f. Professional Theme Settings

   Remove Theme Credit from the footer

g. 更換 Slide 1 2 3 slogan、圖片

h. remove permently Powered by Drupal link from footer

    首頁 » 管理 » 架構  » 頁尾由 Drupal 所提供  » 無

i. 版權

   (1) 外觀 » 啟用並設為預設 » 設定 Remove Theme Credit from the footer

   (2) 首頁 » 管理 » 架構 » 區塊 » 新增區塊

        區塊說明 * 填入 Custom footer

        區塊內容 *填入

       Copyrights <a href="https://www.amstarcreative.com">美星國際企業</a> .All right reserved.

j. 首頁 welcome to 的消除

   寫一篇article 就可以消了。

           » 設定 » 系統 » 網站資訊

將 預設的網站首頁   node 修該為想要顯示對應網頁的路徑 node/number  ,例如 https://www.amstar.tw/ip/node/2

就咱入node/2  

k. 清除快取

    首頁 » 管理 » 設定 » 開發 » 清除快取

corporateclean 外觀版型之修改路徑

幻燈圖片:/sites/all/themes/corporateclean/mpckup/

幻燈圖片文字說明:/sites/all/themes/corporateclean/page.tpl

區塊大小修改:/sites/all/themes/corporateclean/style

Line 84   #footer { clear:both; overflow:hidden; padding:20px 0 50px 0;}

        ->  #footer { clear:both; overflow:hidden; padding:20px 0 0px 0;}

Line 98   #footer-bottom { clear:both; overflow:hidden; padding:40px 0; }

       ->  #footer-bottom { clear:both; overflow:hidden; padding:0px 0; }

Line 402  #slider-controls-wrapper { padding:20px 0; display:none; }

       ->  #slider-controls-wrapper { padding:0px 0; display:none; }

Line 410  #slider-controls ul li a { width:17px; height:17px;   

corporateclean 內文(body) 黑底白字修改

    首頁 » 管理 » 設定 » 內容撰寫 » Wysiwyg profiles »  CKEditor » 編輯 »   css  » Editor CSS

選擇  Editor default CSS

安裝  Ligrary

https://ftp.drupal.org/files/projects/libraries-7.x-2.2.zip

  • 安裝連結屬性 Menu attributes

https://drupal.org/project/menu_attributes

  • 安裝Backup and restore

https://ftp.drupal.org/files/projects/backup_migrate-7.x-3.0.zip

  •   1. 設定基本頁面增加 Image field

首頁 » 管理 » 架構 » 內容類型 » 基本頁面

»  新增現有欄位    -   選擇既有欄位     -     Widget

     Image              field_image(Image)        圖片  

»  編輯

    Help text

    上傳一張圖片到這篇文章中。

    啟用 Alt 欄位

    啟用 Title 欄位

    預覽圖片樣式

    多值   1 – 10  (輸入的圖片數量)

    Upload destination   Public files

      2. 將圖片嵌入內文中並隱藏圖片之設定

» 架構 » 內容類型 » 管理顯示

標籤                         格式

上方 -> 隱藏             圖片 -> 隱藏

  • 編寫頁面

內容 » 新增內容 » 基本頁面

選單設定  設定選單連結  權重

  • 導覽列增加按鈕(母頁面 + 子頁面)

        先到 Block  - Nain navigation - configure - Menu levels - Maximum number of menu levels to display - Unlimited

母頁面  

架構 » 選單 » 主選單 » 新增連結

路徑    <front>

要勾選 展開的方式顯示 (該選單項目還有下層選單,子目錄才會跑出來)

其他網站連結在新頁頁顯示

Menu link attributes – target – New Window (_blank)

子頁面

內容 » 新增內容 » 基本頁面

選單設定  設定選單連結   上層項目(子目錄選母目錄)  

  • 安裝(勾選已內建的) contact & forum

Contact

1. 架構 » 聯絡表單 » 編輯  

    收件者 * 要填入您的收件地址

    自動回覆  謝謝您的來信。您的問題/意見我們將會很快地回覆。

2. 架構 » 選單 » 主選單 » 新增連結

    路徑 *  https://www.amstar.tw/ip/contact

3. Modules -> Contact -> Permission ->使用全站連絡表單這一項權限要全部勾選 (不加入會員也可連絡我們)

Forum 

1. Modules -> Forum -> Permission -> 有關forum的都要打勾

2. 架構 » 選單 » 主選單 » 新增連結

     路徑 *  https://www.amstar.tw/ip/forum

     勾選   展開的方式顯示

3. 架構 » 內容類型 » 新增內容類型  討論區主題 (機器可讀名稱:forum)

4. 新增討論版  -  架構 » 討論區  » 新增討論版

5. 刪除新增討論版 - 架構 » 討論區 » 操作 - 下面的編輯 - 最下面有儲存和刪除鈕。

  • 安裝media

1. 安裝 Media 和 Ctools modules (https://www.drupal.org/project/media)

    -> edit

    Allowed file extensions for uploaded files *

    jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp mp3 mov m4v mp4 mpeg avi ogg wmv swf ico

    https://www.drupal.org/project/ctools

2. Wysiwyg要勾選 media

  • 刪除已上傳的圖片影片等媒體(media)

» 內容  »  媒體(右上角)

  • 安裝Video

https://www.drupal.org/project/video

https://modulesunraveled.com/video-7x-210

https://www.youtube.com/watch?v=V2gmrcUsZik

1. Wysiwyg要勾選 video

2. 架構(Structure) »內容類型(Content types) »基本頁面 »管理欄位 »新增欄位

    » 新增欄位  Field type – Video    Widget - Video Upload

    » 欄位設定   Presets   Video preset (default)

3. 確定檔案 /sites/default/files/video 的permission 755

4. 修改主機檔案 Upload progress Not enabled

    Add apc.rfc1867 = 1 to your /etc/php.ini configuration.

    Change apc.rfc1867 = 1 to /etc/php.d/apcu.ini

5. 設定 » 媒體 » video  

    » 一般

    勾選 Bypass video conversion  &  Video convert on node submit

    » Number of thumbnails

       Number of thumbnails  3

    » Presets (https://cgit.drupalcode.org/video/tree/README.txt?id=refs/heads;id2=7.x-2.x)

       a. 勾選  Use preset dimensions for video conversion.

       b. Add preset

       Video output extension *   -   MP4 format

       Video codec *    -     libx264 video codec

       FFmpeg video preset   -   libx264 default

       Dimensions      -  640x480

       Audio codec *   -   Advanced Audio Coding

    » Scheduling

       Video transcode timeout  -  60

  • 論壇管理

架構 » 討論區 » 編輯討論版

  • 取消 顯示作者資料及日期

架構 » 內容類型 » 文章  »  編輯  » 顯示設定  

  • 防止機器人任意註冊

設定 » 帳號設定

註冊及取消帳號   誰可以註冊帳號?

只限管理員

  • 新增角色

使用者  » 權限(右上角) » 角色(右上角) » 新增角色

  • 啟動手冊(Book)

模組 » Book » 設置  --> 在手冊大綱內允許使用的內容類型 *  子頁面的內容類型 *

編寫手冊

內容 » 新增內容 » 選擇任何頁面都可以 » 手冊大綱

選擇 <建立一個新手冊>  作為這本手冊的標題

選擇 已經建立的標題  作為這個標題的子頁面

  • 增添 Membersify 內容類型

模組 » 權限

使用者 »  編輯

架構  » 內容類型  »  打開所有的內容類型 »  Membersify Settings  

勾選Restrict access

Allowed roles 勾選所有的role

(安裝此模組之後,再增添/修改角色(role)會有 Invalid_key 出現是正常)

等編寫內容再勾選 Override content type settings?  再核選Allowed roles 

  • 安裝  Metatag

模組 » Metatag » 設定 » Global  » Edit  » Advance

勾選 Robots

Allow search engines to index this page (assumed).
Allow search engines to follow links on this page (assumed).

ADVANCED SETTINGS(右上角)  » Master controls for all entities -> 要全部勾選

勾選 Output meta tags on admin pages

  • 安裝 Google Analytics

» 設定 » 系統 » Google Analytics

General settings

(Replace UA-XXXXXXXX-X with the Id of your Google Analytics Account)

  • 安裝Wysiwyg:

安裝文字編輯器(ckeditor):

  1. 新建立一個libraries檔案夾,下載最新的ckeditor_4.4.5_full,將ckeditor放於其中之後上傳

檔案路徑:/sites/all/libraries/ckeditor

  1. 修改wysiwyg 中ckeditor的ckeditor.inc

檔案路徑: /sites/all/modules/wysiwyg/editors/ckeditor.inc

Replace:

if (preg_match('@version:\'(?:CKEditor )?([\d\.]+)(?:.+revision:\'([\d]+))?@', $line, $version)) {

With

if (preg_match('@version:[\"|\'](?:CKEditor )?([\d\.]+)(?:.+revision:[\"|\']([\d]+))?@', $line, $version)) {

  1. WYSIWYG後臺設定:

Module - User interface - WYSIWYG - Configue

Text format - Edit

Basic setup – 中文

Buttons and plugins 選全部勾選

  1. 修改(https://www.drupal.org/files/issues/video-flter--undefined-index-2338423-1.patch )

檔案路徑:/site/all/modules/video_filter/video_filter.module

Line 322

//if ($video['attributes']) {

          if (!empty($video['attributes'])) {

  1. 設定(Configuration) » 內容撰寫(Content authoring) » 文字格式 (Text formats)

三個格式的設定都要勾選 Video Filter

Wysiwyg 的Buttons and plugins要勾選 Video Filter