drupal intro 2010
DESCRIPTION
General introduction to Drupal and Drupal 7 for IT managersTRANSCRIPT
I n f o r m a t i c s
Drupal CMSHans Rossel www.koba.be
I n f o r m a t i c s
Wat is Drupal
CMFContent Management
Framework
http://api.drupal.org
hooks, callbacks & overrides
CMFContent Management
Framework
http://api.drupal.org
hooks, callbacks & overrides
(W)CMSContent Management Systeem
www.drupal.org
www.drupal.com
www.drupal.be
I n f o r m a t i c s
Situering: CMS concurrenten Gesloten: Tridion, Sharepoint, Documentum,
Stellent Open source
− Java: Alfresco, Liferay, OpenCMS
− Python: Plone (Zope webserver, ZODB)
− Php: Joomla (Mambo) Wordpress Typo3
− Asp: Dotnetnuke
I n f o r m a t i c s
Bron: Cmswire Open Source CMS Market Share Report (2009)
I n f o r m a t i c s
I n f o r m a t i c s
I n f o r m a t i c s
Trends Open Source CMSwww.google.com/trends en www.indeed.com/jobtrends
I n f o r m a t i c s
I n f o r m a t i c s
Gartner: Drupal in Visionair quadrant
• Nikos Drakos, Research Director at Gartner:
• "Drupal is in the Visionaries quadrant because of its use of the open source model to drive adoption and popularity, while providing enterprise services via organizations such as Acquia. Its strong contentcentric, community and web application foundation is being rapidly extended with hundreds of modules, includiny for collaboration and social interaction support."
I n f o r m a t i c s
Referenties Media/Entertainment
• VRT, VTM, VT4, Vitaya, RTBF
• Sony BMG Music, Universal Music Group, Warner Bros, 20th Century Fox, Michael Jackson, Eric Clapton and Robbie Williams, Grammy awards, Emmy awards
• The Examiner, The Economist, Le Figaro, Edipresse, Infoworld, IFRA
• Studio Brussel, Radio Netherlands Worldwide, Australian Broadcast Company, BBC, CNN, Reuters
• UitinVlaanderen, FARO
• Virgin, Slate, Monthy Python and Lucas Arts
I n f o r m a t i c s
NGO, Gov & edu
• Human Rights watch, Amnesty
• World Food Programme, World Bank, United Nations, Europese Unie
• Witte Huis, New York state senate, US Department of Commerce, Belgische Premier, Belgische Monarchie, FOD Financiën, the French government, the Dutch government, the Australian Prime Minister and the British Government, London en Athene.
• Universiteit Gent, Duke University, Strayer University, Portland University, MIT, Stanford University and Harvard
• NASA (http://themis.asu.edu/)
• Linux Foundation, JAVA.net en Internet Systems Consortium
I n f o r m a t i c s
Enterprises using Drupal
• Symantec, Nokia, AHOLD, Randstad, Sony Ericsson, Mattel, Nvidia, Rackspace, AT&T, FUJI film, General Motors, Intel, Fujifilm, Fedex, IBM, Cap Gemini, Accenture, Procter & Gamble en Google (mlab)
• Zenito (svmb/admb)
Meer referenties: http://www.buytaert.net/tag/drupalsites
I n f o r m a t i c s
Voordelen Drupal
• Open Source GPLv2: broncode vrij downloadbaar en aanpasbaar• Geen licentiekosten.
• Geen Vendor LockIn. Veel bedrijven. Geen “eenmans” Open Source CMS
• Grote community & sterke groei: veel support, testen, activiteit (vgl Plone)
• Uptodate, mee met nieuwe ontwikkelingen• Php = meest gebruikte webprogrammeertaal
• Uitvoerig getest: 3.2 miljoen keer/jaar gedownload, grote sites gebruiken het
• 5500 Modules = Veel kostefficiënte uitbreidingen http://drupal.org/project/Modules
I n f o r m a t i c s
Troeven Drupal● Kwaliteit code & modulaire uitbreidbaarheid
– Heel flexibel framework (CMF) met goede stabiele architectuur en code heel geschikt voor maatwerk
– Uitgebreide en uitvoerig gedocumenteerde API (api.drupal.org)
• Web 2.0 & Sociale aspecten– “Online community” aspecten al vanaf het prille begin ingebouwd: taxonomie, user rollen, comments
– Volwassen functionaliteiten
• Volledig Open Source GPLv2 (geen “dual licence”)– Alle modules vrij downloadbaar (vgl. Joomla), community edition is full option (vgl. Alfresco, SugarCRM)
– Activiteit en info gecentraliseerd op www.drupal.org (vgl Joomla)
• Enterprise ready– Steeds meer grote referenties => uitvoerig getest, gedocumenteerde integratiemogelijkheden,
performance, scaling, caching
– Commerciële ondersteuning van het project Acquia, Drupal Association, Lullabot, Developmentseed, ...
• Community & ecosysteem– Grote en open community gebaseerd op Open Source principes van samenwerken (vgl Joomla:
http://buytaert.net/joomlavsdrupalbusinessmodelsandcommercialecosystem).
– Veel ontwikkelaars, veel support.
• Made in Belgium
I n f o r m a t i c s
Integratie Drupal
• DMS: Document management– Beperkte reeks modules voor doorzoeken van pdf, word, excel
– Integratie met Alfresco via CMIS.
• CRM: Contact Relationship Management– Integratie met CiviCRM, SugarCRM, …
• Knowledge Management Portal (Intranet)– Open Atrium Distributie (Wereldbank Intranet) en LDAP integratie modules
• Project Management– Drupal Modules: Storm, Casetracker, Project
• Webshop– Ubercart/Drupalcommerce module of integratie met Magento
• Webservices– SOAP, Rest, XMLRPC, Services module.
I n f o r m a t i c s
Geschiedenis 1999 Dries Buytaert Recente versies focus
− 4.7: Form API, admin interface− 5: Mature & Stable, CCK, Views− 6: Multilingual support, theming layer− 7: Usability (image), Unit testing, php5.2.6,
Semantic web, fields API− 8: Product vs Framework, staging,
http://buytaert.net/8stepsfordrupal8
I n f o r m a t i c s
Omvang Drupal project > 5500 Modules (= plugins, extensies) > 880.000 pagina's en > 400.000 users op drupal.org Drupal core werd 3.2 miljoen keer gedownload in 2009 en draagt
meer dan 300.000 actieve websites (http://drupal.org/project/usage)
Twee delen− Core: >700 ontwikkelaars (D6), 62 duizend lijnen code (=15 persoonjaren
= 837 duizend dollar, bron ohloh.net).
− Contributed: >1300 ontwikkelaars, 2.6 miljoen lijnen code (=765 persoonjaren = 42 miljoen dollar, bron ohloh.net)
42 talen, >1000 gratis Themes (meer vb Templatemonster, ...) 2 jaarlijkse Drupalcons (SF: 3000 deelnemers),
wereldwijd regelmatig Drupalcamps (50500 deelnemers)
I n f o r m a t i c s
Groei
I n f o r m a t i c s
Community
• Internationaal– www.drupal.org– http://planet.drupal.org: Blogs– http://groups.drupal.org: Werkgroepen
• België– http://drupal.be/support: Bedrijven
I n f o r m a t i c s
Drupal 7: Nieuw
• Betere installer• Paswoord encryptie: betere bescherming
van rainbow tables• Ingebouwde automatische module en
theme installer en updater• Verbeterde meertaligheid• Verbeterde tijdzone support• PHP stream wrappers• Javascript overlays (jquery ui in core)
I n f o r m a t i c s
Drupal 7: Usability & UX
• Wat?– Gebruiksvriendelijkheid
“Given two functionally equivalent content management systems, the simplest one should be selected.” (http://buytaert.net/ockhamsrazorprincipleofcontentmanagementsystems)
– Reactie op “van developers voor developers” imago & tests in 2008 van University Minnesota (http://buytaert.net/firstresultsfromusabilitytesting)
– Mark Bolton: Redesign van drupal.org en UX Drupal 7.
– Drupal Gardens, hosted Drupal 7 van Acquia voor microsites (vgl wordpress.com)
• Voordeel– Makkelijker om met Drupal te werken
– The winners will be those who combine "reach" with "rich features": marktuitbreiding naar lowend.
I n f o r m a t i c s
Drupal 7: Database laag
• Wat?– Drupal gebruikt nu de php pdo (php data objects)
database abstractielaag
• Voordeel?– Drupal zal niet enkel op MySQL/PostGreSQL kunnen
draaien maar ook op MSSQL, Oracle, SQLite, …
– Microsoft (hoofdsponsor Drupalcon SF 2010) reageerde positief en sponsorde alvast de afwerking van de MSSQL pdo en de corresponderende Drupal module
– Master slave en transaction support
– Enterprise markt
I n f o r m a t i c s
Drupal 7: Unit testing
• Wat? – Automatische tests: http://drupal.org/node/363580#comment2665246
– 18202 tests automatisch uitgevoerd
– http://qa.drupal.org/pifr/test/35713
• Voordeel– Mensen dienen triviale zaken niet meer te testen
– Stabieler en professioneler systeem (Enterprise markt)
– Snellere ontwikkeling van nieuwe zaken
I n f o r m a t i c s
Drupal 7: Semantic web
• Wat?– Het toevoegen van betekenis (semantiek) aan data door machines wordt
gedaan door deze met ontologieën, beschrijvingen van concepten en de relaties daartussen, in metadata uit te breiden. Zo kunnen er automatisch relaties tussen concepten gelegd worden. Het W3C heeft hiervoor onder andere de RDFstandaard (Resource Description Framework) ontwikkeld.
– Automatisch toevoegen van RDFa data aan de html van Drupal: auteursinformatie, indiendatum, ...
• Voordeel?– Met SPARQL & FOAF verbanden leggen tussen data op internet
– Drupal bevat de recentste ontwikkelingen van het internet
– SEO: zoekmachines houden van RDF
I n f o r m a t i c s
Drupal 7: Fields in core
• Wat?– CCK in core, was een van de basiscomponenten van
uitgebreidere sites
• Voordeel?– Stabielere basis– Conceptueel geabstraheerd: fields op content,
taxonomie, users, elk object door module gedefinieerd (hoeft niet in mysql te zitten)
– Vb The Examiner: MongoDB dank zij Fields API– Combinatie met Views3 query builder is zeer
krachtig.s
I n f o r m a t i c s
Drupal als ProductDistributies & Installatieprofielen
Probleem:
• Een basisinstallatie van Drupal heeft geen fulloption mogelijkheden (lowend kritiek).
• Drupal mag niet te zwaar zijn, enkel noodzakelijke in core, moet vooral bruikbaar zijn als framework (highend kritiek).
Oplossing: Distributies/Installatieprofielen aangepast aan doelgroep
• Open Atrium
• Acquia Drupal
• Pressflow
• Mediamosa
• Managing News
I n f o r m a t i c s
Drupal 7 Demo
I n f o r m a t i c s
Systeemvereisten
Standaard Apache > MySQL 5.0.15 > Php 5.2 (+pdo) RAM > 30MB min
Alternatieven Lighttpd
IIS mits aanpassingen voor php
PostgreSQL
MSSQL, Oracle via php PDO.
I n f o r m a t i c s
Basisfunctionaliteiten Zoekfunctie RSS Meertaligheid Statistieken Loginsysteem met rollen Reactiesysteem SEO vriendelijke urls Taxonomie
I n f o r m a t i c s
Basiselementen Users Nodes Blokken Menu Taxonomy CCK Views
I n f o r m a t i c s
I n f o r m a t i c s
I n f o r m a t i c s
CCK Fields
I n f o r m a t i c s
I n f o r m a t i c s
I n f o r m a t i c s
I n f o r m a t i c s
Navigatie