SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Drupal in 3 hours
(php, MySQL, CSS)


Tomislav Hengl
ISRIC — World Soil Information, Wageningen University




                                                        Internal training, 16 May 2011, Wageningen
Programme

  BLOCK 1 (45 mins): Introduction to Drupal (design, main
  principles, basic and extended functionality, theming and
  customization);
  BLOCK 2 (30 mins): Technical issues behind Drupal —
  php, MySQL, CSS;
  BLOCK 3 (20 mins): Installing Drupal and first steps;
  BLOCK 4 (45 mins): Using Drupal to manage
  international research groups and events
  (geomorphometry.org);
  BLOCK 5 (45 mins): Using drupal to collect and serve soil
  data (soilprofiles.org);



                                       Internal training, 16 May 2011, Wageningen
Disclaimer



       This course focuses on using Drupal; you will NOT learn
       how to script in php.




  1
      Download and install programs, follow exercises.
                                                         Internal training, 16 May 2011, Wageningen
Disclaimer



       This course focuses on using Drupal; you will NOT learn
       how to script in php.
       The idea is to help you find your way (documentation,
       tutorials) and make first steps.




  1
      Download and install programs, follow exercises.
                                                         Internal training, 16 May 2011, Wageningen
Disclaimer



       This course focuses on using Drupal; you will NOT learn
       how to script in php.
       The idea is to help you find your way (documentation,
       tutorials) and make first steps.
       You can follow this training actively1 or passively.




  1
      Download and install programs, follow exercises.
                                                         Internal training, 16 May 2011, Wageningen
Disclaimer



       This course focuses on using Drupal; you will NOT learn
       how to script in php.
       The idea is to help you find your way (documentation,
       tutorials) and make first steps.
       You can follow this training actively1 or passively.
       This is NOT an R training course.




  1
      Download and install programs, follow exercises.
                                                         Internal training, 16 May 2011, Wageningen
The open source movement


Open Source solutions2 :
       Operating systems: Linux
       Databases: SQL
       Scientific writing: LTEX
                          A

       Spatial analysis: GRASS GIS, SAGA GIS
       Statistical computing: R
       Content management: Drupal




  2
      http://www.gnu.org/philosophy/fsfs/rms-essays.pdf
                                              Internal training, 16 May 2011, Wageningen
Drupal — basic facts

       Drupal is a OS CMS written in PHP (created by Dries
       Buytaert).
       It is used as a back-end system for at least 1.5% of all
       websites worldwide3 .
       There is an active community of users and developers
       (DrupalCon Events).
       Probably more suited for Academic work than e.g.:
       WordPress, WikiMedia and/or Plone;
       Three major parts: (1) Content (MySQL database), (2)
       Functionality (Modules), (3) Style (Themes).


  3
      http://en.wikipedia.org/wiki/Drupal
                                                Internal training, 16 May 2011, Wageningen
Dries Buytaert




                 Internal training, 16 May 2011, Wageningen
Google trends




                Internal training, 16 May 2011, Wageningen
US Government uses it!




                         Internal training, 16 May 2011, Wageningen
Drupal structure

   Content:
        User-inserted textual content
        Multimedia (files)
        Website traffic (metadata)
   Functionality:
        Basic modules
        User-contributed modules
        Embedded (PHP) scripts
   Style / layout:
        Themes
        Cascading Style Sheets (CSS)
        Blocks




                                        Internal training, 16 May 2011, Wageningen
Audiences


   Passive end-users (they do not even know that they use
   Drupal!);
   Active end-users (they need to know how to create content);
   Website administrators (they need to know how to install,
   customize, extend and fix functionality);
   Developers (they need to know PHP and other programming
   languages);
   Support staff (they need to know how to fix problems);




                                         Internal training, 16 May 2011, Wageningen
PHP



      PHP4 is a general-purpose language for web development
      (scripts).
      PHP script =⇒ Web server =⇒ HTML content
      Installed on more than 20 million websites and 1 million web
      servers.
      PHP has hundreds of base functions and thousands more via
      extensions.




 4
     ‘Personal Home Page Tools’.
                                              Internal training, 16 May 2011, Wageningen
PHP example

<html>
<head>
< t i t l e>L a s t u p d a t e d PHP S c r i p t</ t i t l e>
</head>

<?
$ l a s t m o d i f i e d = f i l e m t i m e ( ”e x a m p l e 7 . php3 ” ) ;
p r i n t ( ”L a s t M o d i f i e d ” ) ;
p r i n t ( date ( ”m/ j / y h : i ” , $ l a s t m o d i f i e d ) ) ;
?>

</body>
</ html>



                                                       Internal training, 16 May 2011, Wageningen
CSS examples

<html>
<head>
<s t y l e type=” t e x t / c s s ”>
body { background −image : u r l ( ' p a p e r . g i f ' ) ; }
</ s t y l e>
</head>

<body>
<h1>H e l l o World !</h1>
</body>

</ html>



                                                Internal training, 16 May 2011, Wageningen
Where to get help?



The big idea of FOSS is that you try to learn things yourself!
    There are many open access Tutorials.
    I often teach myself things by watching videos and slides.
    You might buy some of the extensive Drupal books.
    You might hire some web-programming guru that specializes
    in Drupal (the creator?).




                                             Internal training, 16 May 2011, Wageningen
Teach-yourself




                 Internal training, 16 May 2011, Wageningen
Drupal marketplace




                     Internal training, 16 May 2011, Wageningen
Software




   Google Chrome or Firefox web browser;
   FileZilla file transfer to server;
   WinEdt code editing;
   R download content from a website;




                                        Internal training, 16 May 2011, Wageningen
Requirements




   Disk space / RAM (FTP access);
   Web server (Apache, MySQL);
   PHP support;
   Read/write access;




                                    Internal training, 16 May 2011, Wageningen
Video tutorial




                 Internal training, 16 May 2011, Wageningen
Migration of content




There are several possibilities:
        Migrate from a passive website to a CMS;
        Migrate from a CMS to CMS5 ;
        Migrate from a server to a server (backup_migrate);




   5
       E.g” http://drupal.org/node/43178
           .:
                                              Internal training, 16 May 2011, Wageningen
Drupal modules




                 Internal training, 16 May 2011, Wageningen
Set-up an ODBC driver




                        Internal training, 16 May 2011, Wageningen
Specify connection




                     Internal training, 16 May 2011, Wageningen
Connecting to Drupal MySQL DB
> library(RODBC)
> geomorph.conn <- odbcConnect(dsn="geomorphometry.org")
> odbcGetInfo(geomorph.conn)
                       DBMS_Name
                         "MySQL"
                        DBMS_Ver
                    "5.1.56-log"
                 Driver_ODBC_Ver
                         "03.51"
                Data_Source_Name
            "geomorphometry.org"
                     Driver_Name
                   "myodbc5.dll"
                      Driver_Ver
                    "05.01.0008"
                        ODBC_Ver
                    "03.80.0000"
                     Server_Name
  "lin18.mojsite.com via TCP/IP"



                                                 Internal training, 16 May 2011, Wageningen
Open Soil Profiles




                    Internal training, 16 May 2011, Wageningen
Web forms




            Internal training, 16 May 2011, Wageningen
Final notes



   Drupal is one of the fastest growing OS CMS.
   It has an extensive society that have contributed over 8k
   modules.
   It is stable, reliable and secure (although there are some
   smaller threats).
   You can teach yourself Drupal (PHP). . . the issue is only how
   much and what.




                                            Internal training, 16 May 2011, Wageningen
Literature (advanced)




   Using Drupal by Angela Byron
   Learning Drupal 6 Module Development by Matt Butcher.
   Pro Drupal Development by John K. VanDyk and Matt
   Westgate.




                                     Internal training, 16 May 2011, Wageningen

Weitere ähnliche Inhalte

Ähnlich wie Drupal course hengl

[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?Wong Hoi Sing Edison
 
XOOPS 2.5.x Debugging with FirePHP/FireBug
XOOPS 2.5.x Debugging with FirePHP/FireBugXOOPS 2.5.x Debugging with FirePHP/FireBug
XOOPS 2.5.x Debugging with FirePHP/FireBugxoopsproject
 
Introduction to PHP (SDPHP)
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)Eric Johnson
 
Karma Code Less Teach More
Karma Code Less Teach MoreKarma Code Less Teach More
Karma Code Less Teach MoreBryan Berry
 
Drupal 8 preview_slideshow
Drupal 8 preview_slideshowDrupal 8 preview_slideshow
Drupal 8 preview_slideshowTee Malapela
 
Building A Platform From Open Source At Yahoo
Building A Platform From Open Source At YahooBuilding A Platform From Open Source At Yahoo
Building A Platform From Open Source At YahooDustin Whittle
 
Drupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime CollegeDrupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime Collegeguest08bc36
 
Drupal Experience Sharing At Prime College
Drupal Experience Sharing At Prime CollegeDrupal Experience Sharing At Prime College
Drupal Experience Sharing At Prime CollegeGeshan Manandhar
 
Open Source in Higher Education 2007
Open Source in Higher Education 2007Open Source in Higher Education 2007
Open Source in Higher Education 2007ssorden
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMANAND PRAKASH
 
Top 10 open source technologies for enterprise/Business web application devel...
Top 10 open source technologies for enterprise/Business web application devel...Top 10 open source technologies for enterprise/Business web application devel...
Top 10 open source technologies for enterprise/Business web application devel...Techcronus Business Solutions Pvt. Ltd.
 

Ähnlich wie Drupal course hengl (20)

Lis651n12a.a4
Lis651n12a.a4Lis651n12a.a4
Lis651n12a.a4
 
Lis651n12a.a4
Lis651n12a.a4Lis651n12a.a4
Lis651n12a.a4
 
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
 
XOOPS 2.5.x Debugging with FirePHP/FireBug
XOOPS 2.5.x Debugging with FirePHP/FireBugXOOPS 2.5.x Debugging with FirePHP/FireBug
XOOPS 2.5.x Debugging with FirePHP/FireBug
 
Drupal introduction
Drupal introductionDrupal introduction
Drupal introduction
 
PHPExcel and OPENXML4J
PHPExcel and OPENXML4JPHPExcel and OPENXML4J
PHPExcel and OPENXML4J
 
Introduction to PHP (SDPHP)
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
 
lamp.pptx
lamp.pptxlamp.pptx
lamp.pptx
 
JOOMLA
JOOMLAJOOMLA
JOOMLA
 
Drupal in-depth
Drupal in-depthDrupal in-depth
Drupal in-depth
 
Karma Code Less Teach More
Karma Code Less Teach MoreKarma Code Less Teach More
Karma Code Less Teach More
 
Drupal 8 preview_slideshow
Drupal 8 preview_slideshowDrupal 8 preview_slideshow
Drupal 8 preview_slideshow
 
Building A Platform From Open Source At Yahoo
Building A Platform From Open Source At YahooBuilding A Platform From Open Source At Yahoo
Building A Platform From Open Source At Yahoo
 
Drupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime CollegeDrupal Experience Sharing at Prime College
Drupal Experience Sharing at Prime College
 
Drupal Experience Sharing At Prime College
Drupal Experience Sharing At Prime CollegeDrupal Experience Sharing At Prime College
Drupal Experience Sharing At Prime College
 
Joomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPPJoomla Manual in Compatible with XAMPP
Joomla Manual in Compatible with XAMPP
 
Open Source in Higher Education 2007
Open Source in Higher Education 2007Open Source in Higher Education 2007
Open Source in Higher Education 2007
 
LVPHP.org
LVPHP.orgLVPHP.org
LVPHP.org
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
 
Top 10 open source technologies for enterprise/Business web application devel...
Top 10 open source technologies for enterprise/Business web application devel...Top 10 open source technologies for enterprise/Business web application devel...
Top 10 open source technologies for enterprise/Business web application devel...
 

Mehr von Tomislav Hengl

Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Tomislav Hengl
 
Open Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataOpen Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataTomislav Hengl
 
Space-time data workshop at IfGI
Space-time data workshop at IfGISpace-time data workshop at IfGI
Space-time data workshop at IfGITomislav Hengl
 
Global soilmap at_afsis_hengl
Global soilmap at_afsis_henglGlobal soilmap at_afsis_hengl
Global soilmap at_afsis_henglTomislav Hengl
 
Spatial interpolation comparison
Spatial interpolation comparisonSpatial interpolation comparison
Spatial interpolation comparisonTomislav Hengl
 
DSM training - preparing auxiliary data
DSM training - preparing auxiliary dataDSM training - preparing auxiliary data
DSM training - preparing auxiliary dataTomislav Hengl
 

Mehr von Tomislav Hengl (9)

Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)Introducing GSIF (seminar at Lamont campus)
Introducing GSIF (seminar at Lamont campus)
 
SAGA GIS 2.0.7
SAGA GIS 2.0.7SAGA GIS 2.0.7
SAGA GIS 2.0.7
 
Open Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile dataOpen Soil Profiles - testbed data portal for storing soil profile data
Open Soil Profiles - testbed data portal for storing soil profile data
 
Space-time data workshop at IfGI
Space-time data workshop at IfGISpace-time data workshop at IfGI
Space-time data workshop at IfGI
 
Global soilmap at_afsis_hengl
Global soilmap at_afsis_henglGlobal soilmap at_afsis_hengl
Global soilmap at_afsis_hengl
 
Spatial interpolation comparison
Spatial interpolation comparisonSpatial interpolation comparison
Spatial interpolation comparison
 
DSM training - preparing auxiliary data
DSM training - preparing auxiliary dataDSM training - preparing auxiliary data
DSM training - preparing auxiliary data
 
R crash course
R crash courseR crash course
R crash course
 
Latex crash course
Latex crash courseLatex crash course
Latex crash course
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

Drupal course hengl

  • 1. Drupal in 3 hours (php, MySQL, CSS) Tomislav Hengl ISRIC — World Soil Information, Wageningen University Internal training, 16 May 2011, Wageningen
  • 2. Programme BLOCK 1 (45 mins): Introduction to Drupal (design, main principles, basic and extended functionality, theming and customization); BLOCK 2 (30 mins): Technical issues behind Drupal — php, MySQL, CSS; BLOCK 3 (20 mins): Installing Drupal and first steps; BLOCK 4 (45 mins): Using Drupal to manage international research groups and events (geomorphometry.org); BLOCK 5 (45 mins): Using drupal to collect and serve soil data (soilprofiles.org); Internal training, 16 May 2011, Wageningen
  • 3. Disclaimer This course focuses on using Drupal; you will NOT learn how to script in php. 1 Download and install programs, follow exercises. Internal training, 16 May 2011, Wageningen
  • 4. Disclaimer This course focuses on using Drupal; you will NOT learn how to script in php. The idea is to help you find your way (documentation, tutorials) and make first steps. 1 Download and install programs, follow exercises. Internal training, 16 May 2011, Wageningen
  • 5. Disclaimer This course focuses on using Drupal; you will NOT learn how to script in php. The idea is to help you find your way (documentation, tutorials) and make first steps. You can follow this training actively1 or passively. 1 Download and install programs, follow exercises. Internal training, 16 May 2011, Wageningen
  • 6. Disclaimer This course focuses on using Drupal; you will NOT learn how to script in php. The idea is to help you find your way (documentation, tutorials) and make first steps. You can follow this training actively1 or passively. This is NOT an R training course. 1 Download and install programs, follow exercises. Internal training, 16 May 2011, Wageningen
  • 7. The open source movement Open Source solutions2 : Operating systems: Linux Databases: SQL Scientific writing: LTEX A Spatial analysis: GRASS GIS, SAGA GIS Statistical computing: R Content management: Drupal 2 http://www.gnu.org/philosophy/fsfs/rms-essays.pdf Internal training, 16 May 2011, Wageningen
  • 8. Drupal — basic facts Drupal is a OS CMS written in PHP (created by Dries Buytaert). It is used as a back-end system for at least 1.5% of all websites worldwide3 . There is an active community of users and developers (DrupalCon Events). Probably more suited for Academic work than e.g.: WordPress, WikiMedia and/or Plone; Three major parts: (1) Content (MySQL database), (2) Functionality (Modules), (3) Style (Themes). 3 http://en.wikipedia.org/wiki/Drupal Internal training, 16 May 2011, Wageningen
  • 9. Dries Buytaert Internal training, 16 May 2011, Wageningen
  • 10. Google trends Internal training, 16 May 2011, Wageningen
  • 11. US Government uses it! Internal training, 16 May 2011, Wageningen
  • 12. Drupal structure Content: User-inserted textual content Multimedia (files) Website traffic (metadata) Functionality: Basic modules User-contributed modules Embedded (PHP) scripts Style / layout: Themes Cascading Style Sheets (CSS) Blocks Internal training, 16 May 2011, Wageningen
  • 13. Audiences Passive end-users (they do not even know that they use Drupal!); Active end-users (they need to know how to create content); Website administrators (they need to know how to install, customize, extend and fix functionality); Developers (they need to know PHP and other programming languages); Support staff (they need to know how to fix problems); Internal training, 16 May 2011, Wageningen
  • 14. PHP PHP4 is a general-purpose language for web development (scripts). PHP script =⇒ Web server =⇒ HTML content Installed on more than 20 million websites and 1 million web servers. PHP has hundreds of base functions and thousands more via extensions. 4 ‘Personal Home Page Tools’. Internal training, 16 May 2011, Wageningen
  • 15. PHP example <html> <head> < t i t l e>L a s t u p d a t e d PHP S c r i p t</ t i t l e> </head> <? $ l a s t m o d i f i e d = f i l e m t i m e ( ”e x a m p l e 7 . php3 ” ) ; p r i n t ( ”L a s t M o d i f i e d ” ) ; p r i n t ( date ( ”m/ j / y h : i ” , $ l a s t m o d i f i e d ) ) ; ?> </body> </ html> Internal training, 16 May 2011, Wageningen
  • 16. CSS examples <html> <head> <s t y l e type=” t e x t / c s s ”> body { background −image : u r l ( ' p a p e r . g i f ' ) ; } </ s t y l e> </head> <body> <h1>H e l l o World !</h1> </body> </ html> Internal training, 16 May 2011, Wageningen
  • 17. Where to get help? The big idea of FOSS is that you try to learn things yourself! There are many open access Tutorials. I often teach myself things by watching videos and slides. You might buy some of the extensive Drupal books. You might hire some web-programming guru that specializes in Drupal (the creator?). Internal training, 16 May 2011, Wageningen
  • 18. Teach-yourself Internal training, 16 May 2011, Wageningen
  • 19. Drupal marketplace Internal training, 16 May 2011, Wageningen
  • 20. Software Google Chrome or Firefox web browser; FileZilla file transfer to server; WinEdt code editing; R download content from a website; Internal training, 16 May 2011, Wageningen
  • 21. Requirements Disk space / RAM (FTP access); Web server (Apache, MySQL); PHP support; Read/write access; Internal training, 16 May 2011, Wageningen
  • 22. Video tutorial Internal training, 16 May 2011, Wageningen
  • 23. Migration of content There are several possibilities: Migrate from a passive website to a CMS; Migrate from a CMS to CMS5 ; Migrate from a server to a server (backup_migrate); 5 E.g” http://drupal.org/node/43178 .: Internal training, 16 May 2011, Wageningen
  • 24. Drupal modules Internal training, 16 May 2011, Wageningen
  • 25. Set-up an ODBC driver Internal training, 16 May 2011, Wageningen
  • 26. Specify connection Internal training, 16 May 2011, Wageningen
  • 27. Connecting to Drupal MySQL DB > library(RODBC) > geomorph.conn <- odbcConnect(dsn="geomorphometry.org") > odbcGetInfo(geomorph.conn) DBMS_Name "MySQL" DBMS_Ver "5.1.56-log" Driver_ODBC_Ver "03.51" Data_Source_Name "geomorphometry.org" Driver_Name "myodbc5.dll" Driver_Ver "05.01.0008" ODBC_Ver "03.80.0000" Server_Name "lin18.mojsite.com via TCP/IP" Internal training, 16 May 2011, Wageningen
  • 28. Open Soil Profiles Internal training, 16 May 2011, Wageningen
  • 29. Web forms Internal training, 16 May 2011, Wageningen
  • 30. Final notes Drupal is one of the fastest growing OS CMS. It has an extensive society that have contributed over 8k modules. It is stable, reliable and secure (although there are some smaller threats). You can teach yourself Drupal (PHP). . . the issue is only how much and what. Internal training, 16 May 2011, Wageningen
  • 31. Literature (advanced) Using Drupal by Angela Byron Learning Drupal 6 Module Development by Matt Butcher. Pro Drupal Development by John K. VanDyk and Matt Westgate. Internal training, 16 May 2011, Wageningen