SlideShare una empresa de Scribd logo
1 de 24
Descargar para leer sin conexión
DrupalCamp Taipei 2012




迷人的有「型」網站

 Harry
版型大哉問?
                                                    體驗設計


                  構
                 架
                訊
    內容         資
( 文字、聲音、影像 )                              人為因素


          視覺設計

                          交互設計
                                        網頁
                                           標   準

                  瀏覽器 / 裝置
               IE, Chrome, Firefox...
                 Iphone, Android...
網站穿上美麗新衣的抉擇
●
    常見的設計流程模式
    1. 從寫好的 HTML, CSS 套入 Drupal 。
    2. 有計劃性的團隊協作。




       1            VS              2
找現成的版型來用 ?
●
    很快樂馬上可以變裝
●
    有現成風格
●
    有 Starter, Functional 之類的版型
    但是,
    有些功能設定一大堆,設不出來就不行 ...
    有些看起來沒樣式 ...
    風格不符合所要 ?
總之,我要像這樣 ...
你需要知道一些基礎知識
●
    資源
    –   How the Drupal theme system works
        http://drupal.org/theme-guide/6-7
    –   學習如何製造網站 (HTML, CSS, JavaScript)
        https://developer.mozilla.org/zh-TW/learn
    –   PHP?
版型檔案組織
Vigor theme 誕生

http://drupal.org/sandbox/Hipfox/1671832

      ● Easy to modify architecture.
      ● A little bit of simple design.

      ● Optional enabled Formalize.

      ● Theme Registry Rebuild.

      ● There is no complex functions.
版型註冊 - 我在這裡


vigor.info   ( 檔案位置 sites/themes/vigor/vigor.info)


       name = Vigor
       core = 7.x
       engine = phptemplate

       達成第一步,信不信可以開始用呢?
產生網頁

    page.tpl.php                            ( 檔案位置 sites/themes/vigor/page.tpl.php)

<body onload="window.defaultStatus='css Zen Garden: The Beauty in CSS Design';" id="css-zen-garden">

<div id="container">
 <div id="intro">
 ………
 </div>

 <!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
 <!-- Add a background image to each and use width and height to control sizing, place with absolute positioning -->
 <div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div>
 <div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>

</body>




HTML Source code: http://www.csszengarden.com/zengarden-sample.html
看起來像這樣
如何變成這樣 ?
穿衣服
vigor.info             ( 檔案位置 sites/themes/vigor/vigor.info)
                       ( 檔案位置 sites/themes/vigor/124.css)


        name = Vigor
        core = 7.x
        engine = phptemplate

        stylesheets[all][] = 124.css

CSS source: http://www.csszengarden.com/?cssfile=124/124.css
但,這網頁是釘死的
                 需要注入活力

●
    在 .tpl.php 檔案中,加一些 php
    –   <?php print $title; ?>
    –   <?php print render($page['content']); ?>
    –   ……
●
    總之,利用 php 和內容管理系統銜接
思考 ?
●
    版型可以竄改內容?
●
    切圖、套版,怎麼協作較好?
●
    同時進行網站建構和美術設計?
●
    不同單元,不同風格?


●
    你問我答 ...
Harry @ 網絡行動
http://netivism.com.tw/

Más contenido relacionado

Destacado

Dunder mifflin digital strategy rev
Dunder mifflin digital strategy   revDunder mifflin digital strategy   rev
Dunder mifflin digital strategy revJoe Antonelli
 
Presentatie Kamp
Presentatie KampPresentatie Kamp
Presentatie Kamp_JULIE
 
香港六合彩-六合彩
香港六合彩-六合彩香港六合彩-六合彩
香港六合彩-六合彩httjwwq
 
香港六合彩<六合彩
香港六合彩<六合彩香港六合彩<六合彩
香港六合彩<六合彩httjwwq
 
3D Pixels Products Presentation
3D Pixels Products Presentation3D Pixels Products Presentation
3D Pixels Products PresentationMEHDIMAX
 
六合彩-香港六合彩
六合彩-香港六合彩六合彩-香港六合彩
六合彩-香港六合彩httjwwq
 
Presentatie Kamp
Presentatie KampPresentatie Kamp
Presentatie Kamp_JULIE
 
六合彩-香港六合彩
六合彩-香港六合彩六合彩-香港六合彩
六合彩-香港六合彩httjwwq
 
How to Run an Open Source Project
How to Run an Open Source ProjectHow to Run an Open Source Project
How to Run an Open Source ProjectSebastiaan Deckers
 
Convencent a Lonely Planet que fessin una revista
Convencent a Lonely Planet que fessin una revistaConvencent a Lonely Planet que fessin una revista
Convencent a Lonely Planet que fessin una revistaOriol Soler
 

Destacado (19)

Ara China Eng
Ara China EngAra China Eng
Ara China Eng
 
Dunder mifflin digital strategy rev
Dunder mifflin digital strategy   revDunder mifflin digital strategy   rev
Dunder mifflin digital strategy rev
 
Presentatie Kamp
Presentatie KampPresentatie Kamp
Presentatie Kamp
 
香港六合彩-六合彩
香港六合彩-六合彩香港六合彩-六合彩
香港六合彩-六合彩
 
香港六合彩<六合彩
香港六合彩<六合彩香港六合彩<六合彩
香港六合彩<六合彩
 
About sebastiaan
About sebastiaanAbout sebastiaan
About sebastiaan
 
3D Pixels Products Presentation
3D Pixels Products Presentation3D Pixels Products Presentation
3D Pixels Products Presentation
 
Professional Open Source
Professional Open SourceProfessional Open Source
Professional Open Source
 
六合彩-香港六合彩
六合彩-香港六合彩六合彩-香港六合彩
六合彩-香港六合彩
 
Presentatie Kamp
Presentatie KampPresentatie Kamp
Presentatie Kamp
 
六合彩-香港六合彩
六合彩-香港六合彩六合彩-香港六合彩
六合彩-香港六合彩
 
How to Run an Open Source Project
How to Run an Open Source ProjectHow to Run an Open Source Project
How to Run an Open Source Project
 
lcjvsl
lcjvsllcjvsl
lcjvsl
 
Convencent a Lonely Planet que fessin una revista
Convencent a Lonely Planet que fessin una revistaConvencent a Lonely Planet que fessin una revista
Convencent a Lonely Planet que fessin una revista
 
Git and git hub
Git and git hubGit and git hub
Git and git hub
 
Promise pattern
Promise patternPromise pattern
Promise pattern
 
RMP Infotec 2012 Presentation
RMP Infotec 2012 PresentationRMP Infotec 2012 Presentation
RMP Infotec 2012 Presentation
 
Den mobile revolusjonen
Den mobile revolusjonenDen mobile revolusjonen
Den mobile revolusjonen
 
Nou Cuina
Nou CuinaNou Cuina
Nou Cuina
 

Similar a DrupalCamp Taipei 2012 迷人的有「型」網站

模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京Joseph Chiang
 
Drupal 版型設計 - 瞭解版型程式
Drupal 版型設計 - 瞭解版型程式Drupal 版型設計 - 瞭解版型程式
Drupal 版型設計 - 瞭解版型程式Chris Wu
 
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development FundamentalsExam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development FundamentalsChieh Lin
 
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗Drupal Taiwan
 
深入剖析浏览器
深入剖析浏览器深入剖析浏览器
深入剖析浏览器jay li
 
Html5和css3入门
Html5和css3入门Html5和css3入门
Html5和css3入门Xiujun Ma
 
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...Souyi Yang
 
Css schema by_sofish
Css schema by_sofishCss schema by_sofish
Css schema by_sofishWebrebuild
 
支付宝CSS构架
支付宝CSS构架支付宝CSS构架
支付宝CSS构架Sofish Lin
 
Qq.com前端架构实践与思考
Qq.com前端架构实践与思考Qq.com前端架构实践与思考
Qq.com前端架构实践与思考greengnn
 
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談Drupal Taiwan
 
20120516 axure rp prototype design outline
20120516 axure rp prototype design outline20120516 axure rp prototype design outline
20120516 axure rp prototype design outlineturtleknight
 
Koubei banquet 34
Koubei banquet 34Koubei banquet 34
Koubei banquet 34Koubei UED
 
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)Adam Wang
 
互联网创业服务器运维工具集
互联网创业服务器运维工具集互联网创业服务器运维工具集
互联网创业服务器运维工具集zhen chen
 
Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Joseph Chiang
 
Drupal performance (in DrupalCamp Taipei)
Drupal performance (in DrupalCamp Taipei)Drupal performance (in DrupalCamp Taipei)
Drupal performance (in DrupalCamp Taipei)jimyhuang
 
Responsive Web Design [rebuild as design]
Responsive Web Design [rebuild as design]Responsive Web Design [rebuild as design]
Responsive Web Design [rebuild as design]Benny Chak
 

Similar a DrupalCamp Taipei 2012 迷人的有「型」網站 (20)

模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京
 
Drupal 版型設計 - 瞭解版型程式
Drupal 版型設計 - 瞭解版型程式Drupal 版型設計 - 瞭解版型程式
Drupal 版型設計 - 瞭解版型程式
 
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development FundamentalsExam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development Fundamentals
 
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗
[DCTPE2010] 從企劃到開發維護的 Drupal 專案經驗
 
深入剖析浏览器
深入剖析浏览器深入剖析浏览器
深入剖析浏览器
 
Html5和css3入门
Html5和css3入门Html5和css3入门
Html5和css3入门
 
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...
Drupal 是好的生財工具嗎?網站標案經驗分享 台灣i運動資訊平台(Drupal as a Cash Cow for Prodution House? ...
 
Django step0
Django step0Django step0
Django step0
 
Css schema by_sofish
Css schema by_sofishCss schema by_sofish
Css schema by_sofish
 
支付宝CSS构架
支付宝CSS构架支付宝CSS构架
支付宝CSS构架
 
Qq.com前端架构实践与思考
Qq.com前端架构实践与思考Qq.com前端架构实践与思考
Qq.com前端架构实践与思考
 
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談
[DCTPE2011] 11) Drupal 是好的生財工具嗎? 2. 中小型網站製作公司/工作室座談
 
20120516 axure rp prototype design outline
20120516 axure rp prototype design outline20120516 axure rp prototype design outline
20120516 axure rp prototype design outline
 
Frontend Beginner
Frontend BeginnerFrontend Beginner
Frontend Beginner
 
Koubei banquet 34
Koubei banquet 34Koubei banquet 34
Koubei banquet 34
 
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)
無名小站首頁改版 - 漸進增強與CSS3 (Wretch and Progressive Enhancement)
 
互联网创业服务器运维工具集
互联网创业服务器运维工具集互联网创业服务器运维工具集
互联网创业服务器运维工具集
 
Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練
 
Drupal performance (in DrupalCamp Taipei)
Drupal performance (in DrupalCamp Taipei)Drupal performance (in DrupalCamp Taipei)
Drupal performance (in DrupalCamp Taipei)
 
Responsive Web Design [rebuild as design]
Responsive Web Design [rebuild as design]Responsive Web Design [rebuild as design]
Responsive Web Design [rebuild as design]
 

DrupalCamp Taipei 2012 迷人的有「型」網站

  • 2. 版型大哉問? 體驗設計 構 架 訊 內容 資 ( 文字、聲音、影像 ) 人為因素 視覺設計 交互設計 網頁 標 準 瀏覽器 / 裝置 IE, Chrome, Firefox... Iphone, Android...
  • 3. 網站穿上美麗新衣的抉擇 ● 常見的設計流程模式 1. 從寫好的 HTML, CSS 套入 Drupal 。 2. 有計劃性的團隊協作。 1 VS 2
  • 4. 找現成的版型來用 ? ● 很快樂馬上可以變裝 ● 有現成風格 ● 有 Starter, Functional 之類的版型 但是, 有些功能設定一大堆,設不出來就不行 ... 有些看起來沒樣式 ... 風格不符合所要 ?
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. 你需要知道一些基礎知識 ● 資源 – How the Drupal theme system works http://drupal.org/theme-guide/6-7 – 學習如何製造網站 (HTML, CSS, JavaScript) https://developer.mozilla.org/zh-TW/learn – PHP?
  • 16. Vigor theme 誕生 http://drupal.org/sandbox/Hipfox/1671832 ● Easy to modify architecture. ● A little bit of simple design. ● Optional enabled Formalize. ● Theme Registry Rebuild. ● There is no complex functions.
  • 17. 版型註冊 - 我在這裡 vigor.info ( 檔案位置 sites/themes/vigor/vigor.info) name = Vigor core = 7.x engine = phptemplate 達成第一步,信不信可以開始用呢?
  • 18. 產生網頁 page.tpl.php ( 檔案位置 sites/themes/vigor/page.tpl.php) <body onload="window.defaultStatus='css Zen Garden: The Beauty in CSS Design';" id="css-zen-garden"> <div id="container"> <div id="intro"> ……… </div> <!-- These extra divs/spans may be used as catch-alls to add extra imagery. --> <!-- Add a background image to each and use width and height to control sizing, place with absolute positioning --> <div id="extraDiv1"><span></span></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div> <div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div> </body> HTML Source code: http://www.csszengarden.com/zengarden-sample.html
  • 21. 穿衣服 vigor.info ( 檔案位置 sites/themes/vigor/vigor.info) ( 檔案位置 sites/themes/vigor/124.css) name = Vigor core = 7.x engine = phptemplate stylesheets[all][] = 124.css CSS source: http://www.csszengarden.com/?cssfile=124/124.css
  • 22. 但,這網頁是釘死的 需要注入活力 ● 在 .tpl.php 檔案中,加一些 php – <?php print $title; ?> – <?php print render($page['content']); ?> – …… ● 總之,利用 php 和內容管理系統銜接
  • 23. 思考 ? ● 版型可以竄改內容? ● 切圖、套版,怎麼協作較好? ● 同時進行網站建構和美術設計? ● 不同單元,不同風格? ● 你問我答 ...