drupal 6 - podstawy -

Download Drupal 6 - podstawy -

If you can't read please download the document

Upload: grzegorz-bartman

Post on 16-Apr-2017

1.370 views

Category:

Technology


0 download

TRANSCRIPT

Drupal basics

Part 1

Training plan

page /

Web Pages architecture

About Drupal

Drupal installation

Installation of modules

Translations

Content management

Menu management

Blocks management

Themes management

Web page types (1)

page /

Web pagesStatic (HTML, CSS)Dynamic(PHP, ASP, JSP, Ruby, etc)

Web page types (2)

page /

Web pagesStatic (HTML, CSS)Dynamic(PHP, ASP, JSP, Ruby, etc)

PHP

page /

PHP is a general-purpose scripting language originally designed for web development to produce dynamic web pages.

PHP was originally created by Rasmus Lerdorf in 1995.

While PHP originally stood for "Personal Home Page", it is now said to stand for "PHP: Hypertext Preprocessor", a recursive acronym.

Last stable release: 5.3.7 (August 18, 2011;)

More: http://en.wikipedia.org/wiki/PHP, http://php.net/

PHP code

page /

PHP Test

PHP web pages architecture

page /

Web Server(Apache, IIS, nginx)Database server(MySQL)Web BrowserPHP interpreterPHP files

Page is requested

Dynamic web page

PHP code interpretation

page /

PHP Test

PHP Test Hi Joe

PHP file on serverHTML content sent to the browser

PHP web pages architecture

page /

Web Server(Apache, IIS, nginx)Database server(MySQL)DrupalWeb BrowserPHP interpreterPHP files

Page is requested

Dynamic web page

Drupal

page /

Drupal is a free and open source content management system (CMS) and content management framework (CMF) written in PHP and distributed under the GNU General Public License.

It is used as a back-end system for at least 1.5% of all websites worldwide ranging from personal blogs to corporate, political, and government sites including whitehouse.gov and data.gov.uk.

It is also used for knowledge management and business collaboration.

Source: Wikipedia

Other open source CMS

page /

Google Trends

page /

Drupal installation (1)

page /

Requirements:Web server (Apache)

Database (MySQL) - what is needed is the database name, user name and password

Drupal core: http://drupal.org/project/drupal - unzip the files to a directory on the server.

Drupal installation (2)

page /

Use only stable releases on production servers

Older versions

Drupal installation (3)

page /

Drupal installation page.

Drupal installation (4)

page /

Create directory files in sites/default

Copy sites/default/default.settings.php to sites/default/settings.php

Change file settings.php and directory files permissions so that it is writable by the web server (Linux command: chmod 777 files settings.php)

Click: try again

Drupal installation (5)

page /

Database connection parameters.

Drupal installation (5)

page /

Database advanced options

Database host change if the database server is on another computer.

Change if database serveruse non standard port

Change if you haveanother Drupal installationIn this database. We do not recommend sharing a database between Multiple Drupal installations

Drupal installation (6)

page /

Site configuration

Administrator name. We recommend using the name admin

Drupal installation (7)

page /

Site configuration

For security reasons should be enabled

Drupal installation (8)

page /

Drupal installation complete

Drupal installation (9)

page /

Drupal after installation

Drupal installation (10)

page /

Practice:Do the installation again. Remove tables from the database (use PHPMyAdmin) and delete the files from server.

Drupal files and directories (1)

page /

Drupal directories structure

Drupal files and directories (2)

page /

includes

misc

modules core modules

profiles installation profiles

scripts

sites in this directory you can put additional modules and themesallmodulescontrib modules downloaded from www.drupal.org

custom_project custom modules dedicated for this project

custom_universal custom universal modules

developer developer modules, don't needed on production server

themes

themes core themes

cron.php - file is used to run periodic tasks such as indexing data to search and calculation of statistics

index.php main file

install.php installation file

update.php run this file after update modules or Drupal core

Administration page

page /

Modules

Menus

Blocks

Content

Users

Site information

Site information

page /

Name displayed in page header

These fields are displayed in different places, depending on used theme

Footer messages: for example: contact information

Modules page

page /

Page: admin/build/modules

Package name

Status (enabled or disabled)

Module name

Module version

Module description

Depedencies

Installing a new module (1)

page /

Installing module Administration menu

Go to http://drupal.org/project/admin_menu

Download recommended version for Drupal 6.x

Extract files into sites/all/modules/contrib

Go to page admin/build/modules

Enable module

New module on module list page

Installing a new module (2)

page /

Administration menu

Confirmation message

Module status

Practice

page /

Download and install module Module Filter

TIP: You can use the site www.drupalmodules.com to find the module

Module page

page /

If you had problem with module try to search solutions on module page

Try module without installation

Find similar modules

Content

page /

What is a NODE?A node is a piece of content. Drupal assigns each piece of content an ID number called a node ID (nid).

Each node has a title and body. Administrator can view a list of nodes by title.

Contents are divided into types (node types). Default node types: page and story

Create first node (1)

page /

Go to page: node/add

Create new Story node

Title

Body

Split button split content into two parts: Teaser and Body

Create first node (2)

page /

Node publishing options

Published: each node have status published or unpublished. You don't need to delete node if you don't want to publish it on website

Promoted to front page

Sticky

Create first node (3)

page /

Node view

Title

Date and author

Content (body)

Comment link

Node ID (nid) in URL

Edit link

Practice

page /

Create 5 Story nodesTest node 1 (published, promoted to front page, sticky)

Test node 2 (published, promoted to front page, sticky)

Test node 3 (published, promoted to front page)

Test node 4 (published, promoted to front page)

Test node 5 (published, promoted to front page)

Default front page

page /

Display all nodes with attrubute: published on front page

Sorting by:Sticky

Publish date

Sticky nodes

Content management page

page /

Page: admin/content/node

Filter options

Actions

Type

Status

Edit link

Title

Page vs Story

page /

Page and Story default attributes

Story

Page

New content type (1)

page /

Page: admin/content/types

Create new content type link

New content type (2)

page /

Page: admin/content/types/add

Displayed name

Type: identificator in database

Content type description

New content type (3)

page /

Page: admin/content/types/add

Title field label

Body field label

New content type (4)

page /

Page: admin/content/types/add

Note:Users with the administer nodes permission will be able to override these options.

Create new version on every edit user can restore older version of node.

New content type (5)

page /

Page: admin/content/types/add

Comments disabled

New content type (6)

page /

New conent type - Car

New content type (7)

page /

Page: node/add/car

Labels

Summary

page /

What you should know after this stage?Installing

Create new content

Edit and delete content

Create new content type

Blocks (1)

page /

Block is information that can be inserted in a region (left or right column, header, footer, under content number of regions depends on theme)

Deafult blocks:Menu (navigation, primary links, secondary links)

Users online

Blocks (2)

page /

Block

Blocks (3)

page /

Page: admin/build/block

Region: right sidebar

Region: left sidebar

Blocks position settings

Create custom block

Create custom block (1)

page /

Page: admin/build/block/add

Block description. Used on page admin/build/block

Block title

Block content

Create custom block (2)

page /

Page: admin/build/block/add

Allow users to control block visibility

Show block for specific roles

Show block on specific pages

Create custom block (3)

page /

Page: admin/build/block

New block

Delete link

Configure link

Region

Create custom block (4)

page /

Custom block in right sidebar

Input formats (1)

page /

Text transformationINPUTOUTPUT

Input formats (2)

page /

Filtered HTMLAllowed HTML tags:

  1. DrupalDrupal

    Input formats (3)

    page /

    Page: admin/settings/filters

    Default format all roles may use this format

    Configure options

    Create new format

    Input formats (4)

    page /

    Page: admin/settings/filters/1/configure

    Change allowed HTML tags

    Filter modules

    page /

    Latex filter: http://drupal.org/project/latex_filter

    Video filter: http://drupal.org/project/video_filter

    BB Code: http://drupal.org/project/bbcode

    Smiles (emoticons): http://drupal.org/project/smileys

    PEAR Wiki Filter: http://drupal.org/project/pearwiki_filter

    More at http://drupalmodules.com/

    Menus

    page /

    Page: admin/build/menu

    Create new menu

    Drupal default menus

    Add node to menu (1)

    page /

    Page: node/*/edit

    Menu settings

    Add node to menu (2)

    page /

    Link in menu Primary links

    Primary links management

    page /

    Edit and delete links

    Change order drag and drop

    Save configuration after change order

    Add new item

    Edit menu description

    Page: admin/build/menu-customize/primary-links

    Summary

    page /

    What you should know after this stage?Installing

    Content management

    Blocks management

    Menu management

    Practice create this site

    page /

    Pages in menu

    Blocks

    News on front page

    Title

    Themes

    page /

    Page: admin/build/themes

    Enabled theme configuration

    All themes configuration

    Default theme

    Enabled theme

    Themes configuration

    page /

    Page: admin/build/themes/settings

    Global settings or selected theme settings

    Configuration options

    Garland theme configuration

    page /

    Page:admin/build/themes/settings/garland

    Some themes has special settings, like color scheme in Garland

    Installing new theme

    page /

    Go to http://drupal.org/project/corolla and download theme for Drupal 6.x

    Extract files into sites/all/themes

    Go to admin/build/themes and set theme Corolla as default

    New theme

    New theme - Corolla

    page /

    Corolla blocks settings

    page /

    Block settings for each enabled theme

    New region names other than in Garland

    Corolla new blocks settings

    page /

    Practice

    page /

    Go to http://drupal.org/project/Themes

    Chose any theme and download it

    Install new theme

    Change some theme settings and blocks settings

    Administration theme

    page /

    Drupal allow to set different theme for administration pages

    Go to http://drupal.org/project/rootcandy, download and extract theme into sites/all/themes

    Go to admin/settings/admin and set administration theme to RootCandy (Dark)

    Administration themes

    page /

    Other administration themes:http://drupal.org/project/seven

    http://drupal.org/project/rubik

    http://drupal.org/project/polpo

    http://drupal.org/project/berylizer

    http://drupal.org/project/fruity

    http://drupal.org/project/nerdalistic

    http://drupal.org/project/strix

    Administration module (alternative to Administration menu): http://drupal.org/project/admin

    Summary

    page /

    What you should know after this stage?Installing

    Content management

    Blocks management

    Menu management

    Theme management

    Now you can create your own web page :)

    strona /

    Thank you for your attention

    Contact:E-mail: [email protected]: +48 882 515 514