SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Drupal basics

   Part 2
Training plan
●   Taxonomy
●   Users management
●   Creating new content types with CCK module
●   Image management (imagecache, galleries)




                                                 page 2/57
Taxonomy
●   The taxonomy module allows you to categorize your content
    using both tags and administrator defined terms. It is a flexible
    tool for classifying content with many advanced features.
●   Taxonomy administration page: admin/content/taxonomy


    Create new
    vocabulary




    List of vocabularies




                                                                page 3/57
Create vocabulary
Vocabulary name: Car brand




 Content type: Car




 Settings




                                         page 4/57
Add term to vocabulary
                             Add term




Term name




Advanced options:
parents, synonims,
related terms




                                         page 5/57
Create content with taxonomy



Taxonomy options:
Car brand




                                        page 6/57
Create content with taxonomy



Taxonomy options:
Car brand




                                        page 7/57
Taxonomy term page



Term name




Nodes assigned
to term




 Page: taxonomy/term/1

                                       page 8/57
Practice
●Create vocabulary Color for content type Car and
add some terms (black, red, blue, silver, etc...).
User must select one option.
●Create vocabulary Body type for content type Car

and add some terms (hatchback, coupe, etc...).
User must select one option.
●Create vocabulary Car Equipment for content type

Car and add some terms (ABS, Alarm, Electric
Windows, Traction Control, etc...). User can select
one or more options.
●Add some Cars (nodes) and assign taxonomy

options

                                               page 9/57
More practice
●Create content type News: enabled comments,
published on front page
●Create vocabulary News category and add some

terms (Business, Sport, Technology, etc...). User
can select one option
●Create vocabulary News tags and enable option

„Tags”
●Create 5 news nodes, assign News category and

ad tags




                                              page 10/57
Page taxonomy/term/TID
●taxonomy/term/[TID] – display nodes assigned to
term [TID]
●taxonomy/term/[TID1]+[TID2]+[TID3] – display

nodes assigned to term [TID1] or [TID2] or [TID3]
●taxonomy/term/[TID1],[TID2] – display nodes

assigned to term [TID1] and [TID2]




                                              page 11/57
Term hierarchy (1)
●Terms can have hierarchy (parent - children)




Select parent




                                                page 12/57
Term hierarchy (2)




Hierarchy of terms




                          page 13/57
Users – basic informations

●In Drupal you can create users accounts
●Each user has name and numeric identificator

(uid)
●After installation Drupal has one user –

administrator (uid = 1)
●Administrator has access to all options

●You can assign roles to user

●You can assign permissions to roles




                                            page 14/57
Users – roles - permissions

                               Roles
                      (anonymous, authenticated,
                          moderator, editor)




                                                        Permission
      Users                                        (access user profiles,
(admin, joe, steve)                                 create story content,
                                                    access comments)




                                                                            page 15/57
Roles
●Default roles after installation
 ● anonymous user – all not logged in users

 ● authenticated user – all logged in users

●You can't delete default roles

●You can create unlimited number of new roles




                                           page 16/57
Create new role




 New role name


Page: admin/user/roles


                                           page 17/57
Role permissions


                                       Set permission to
                                       role:
                                       ●create page, story,

                                       car
                                       ●delete any

                                       page,story, car
                                       ●edit any page,

                                       story, car




Page: admin/user/permissions


                                                  page 18/57
Inheritance permissions
         Inheritance of logged-on user
         permissions.




                  No need to select if permissions are assigned
                  to the role „authenticated user”




Page: admin/user/permissions


                                                                  page 19/57
Users management
     Add new user




Filter options


Update options


Users list




     Page: admin/user/user


                                          page 20/57
Create new user


   Username, e-mail and
   password




   Status – if „blocked”
   user can't log in




   Assigned roles


Page: admin/user/user/create

                                             page 21/57
Users list




           User name           Assigned roles    Edit link




Page: admin/user/user/create

                                                             page 22/57
Practice

●Create roles and assign permissions:
 ● „car editor”, permissions: create, edit and

   delete car
 ● „story editor”, permissions: create, edit and

   delete story
●Create users:

 ● user2 – role „car editor”

 ● user3 – role „story editor”

●Log in as „user2” and „user3” and check

permissions


                                                   page 23/57
CCK

●CCK – Content Construction Kit
http://drupal.org/project/cck (Drupal 7 has this
module in core)
●Default node has title and body

●CCK allow to create additional fields for nodes

(text fields, files upload, select lists, checkboxes,
 references to other nodes and users)




                                                  page 24/57
Installing CCK (1)

●Go to http://drupal.org/project/cck, download
module and extract files into
sites/all/modules/contrib
●Go to admin/build/modules and enable

modules:
 ● Content

 ● Fieldgroup

 ● Node reference

 ● Number

 ● Option Widgets

 ● Text




                                                 page 25/57
Installing CCK (2)




                     page 26/57
Using CCK
●Go to edit content type Car: admin/content/node-
type/car

New options:
Manage fields and
Display fields




                                              page 27/57
CCK: Manage fields



Current node fields
(defaults). You can
change order of fields.




Create new field


Create new group of fields




                                          page 28/57
CCK: Creating new field (1)




Label     Field name (stored in database as              Field type and field
          identificator). Best practice: always insert   widget
          node type as field name prefix, example:
          field_story_author, field_page_information




                                                                                page 29/57
CCK: Creating new field (2)
Help text, displayed under field
on node add form




Required


Number of allowed values


Minimum and maximum value



Prefix and suffix. cc – cubic centimeters




                                            page 30/57
CCK: Creating new field (3)




New field




                                           Configure and Remove links


Page: admin/content/node-type/car/fields


                                                                   page 31/57
CCK: Creating new field (3)




New field




                                           Configure and Remove links


Page: admin/content/node-type/car/fields


                                                                   page 32/57
CCK: Creating new field (4)




New field on node add page




Page: node/add/car

                                          page 33/57
CCK: Creating new field (5)
Node view page: node/[nid]

Node title


Node body




 New field

                        Taxonomy terms




                                           page 34/57
CCK: Display fields (1)




               Label options    Display format   Exclude




Page: admin/content/node-type/car/display


                                                           page 35/57
CCK: Display fields (2)




●Display options:
  ● Label inline

  ● Format: 9 999




                          page 36/57
Practice

Create new fields for Car node type:
●

● Gears – integer, select list (options 4, 5, 6)

● Gearbox: - select list (options: manual,

  automatic)
● Kerb weight – integer, suffix „kg”

● Door count – integer, select list (options 3, 4, 5)




                                                 page 37/57
Extending CCK

   ●Add new field type: file upload
   ●Go to http://drupal.org/project/filefield, download

   and extract module into sites/all/modules/contrib
   ●Go to admin/build/modules and enable FileField

   module




FileField module




                                                    page 38/57
FileField module (1)
●Go to admin/content/node-type/car/fields and
add new field




                        Field type: File




                                                page 39/57
FileField module (2)




Allowed files extensions

File size restrictions




Number of values: set to
unlimited



                                                page 40/57
FileField module (3)
 ● Go to node/add/car and add content with files




File upload options




                                               page 41/57
FileField module (4)
Node view page




 Uploaded files




                                         page 42/57
Practice
●Create new field:
  ● Documents – field type: file upload, unlimited number of values

●Create new group of fields, label: Files, name group_car_files

●Insert fields „Manuals” and „Documents” into group „Files”




    Node add page
    Field group: Files




                                                                      page 43/57
Practice
●Create new group of fields, label: Details, name group_car_details
●Insert fields „Engine size”, „Gears”, „Gearbox”, „Kerb weight”,

„”Door count into group „Details”


    Group: Details




                                                                      page 44/57
Extending CCK: Images
 ●ImageField module provides an image upload field for CCK.
 ●Go to http://drupal.org/project/imagefield, download and extract

 files into sites/all/modules/contrib
 ●Go to admin/build/modules and enable module ImageField




ImageField module




                                                                     page 45/57
ImageField (1)
●Go to Content management → Content types → Edit Car →
Manage fields
●Create new field: Photos, field_car_photos




                                      Field type: File - Image




                                                                 page 46/57
ImageField (2)



Allowed image extensions




Image options: ALT, Title,
Default image



                                              page 47/57
ImageField (3)
Go to Content management → Create content →
Car




Photos upload options




                                         page 48/57
ImageField (4)




Node view page:
Uploaded photos




                                   page 49/57
ImageCache module
●ImageCache allows you to setup presets for image processing.
●Go to http://drupal.org/project/imagecache, download and extract

files into sites/all/modules/contrib
●Go to http://drupal.org/project/imageapi, download and extract

files into sites/all/modules/contrib
●Go to Site building → Modules and enable modules:

   ● ImageAPI

   ● ImageAPI GD2

   ● ImageCache

   ● ImageCache UI




                                                              page 50/57
ImageCache presets (1)
●Go to Site buliding → Imagecache
●Add new preset

●Add action: Scale




    Action: Scale




                                             page 51/57
ImageCache presets (2)
   Preset edit options   Name




Actions

New actions




                                Configure or delete action




                                                       page 52/57
Using ImageCache presets in CCK (1)
●Go to Content management → Content types → Edit Car → Display
fields
●Set options for Photos field:

  ● Teaser: hidden

  ● Full node: width400px image linked to node




                                      ImageCache preset




                                                                 page 53/57
Using ImageCache presets in CCK (2)
Create Car node and add some photos larger than 400px
●




    Now all images
    has the same
    width




                                                        page 54/57
Practice
●Create new ImageCache preset and assign it
for field Photos in Car node type
●Create new field in Story node type: Photos

(field_story_photos)
●Create new Car node and test preset

●Create new ImageCache preset

●Assign new preset for field Photos

field_story_photos
●Create new Story node and test preset




                                               page 55/57
Summary
 What you should know after this stage?
●Taxonomy

●User management

●Create custom fields for content

●Create ImageCache preset and use it in CCK

fields




                                              page 56/57
Thank you for your attention


             Contact:
E-mail: grzegorz.bartman@openbit.pl
       Tel: +48 882 515 514




                                      strona 57/57

Weitere ähnliche Inhalte

Was ist angesagt?

Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011
Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011
Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011camp_drupal_ua
 
Fronteers - Drupal 7 ux
Fronteers   - Drupal 7 uxFronteers   - Drupal 7 ux
Fronteers - Drupal 7 uxBojhan
 
OpenCms Days 2013 - Details of the OpenCms 9 detail pages
OpenCms Days 2013 - Details of the OpenCms 9 detail pagesOpenCms Days 2013 - Details of the OpenCms 9 detail pages
OpenCms Days 2013 - Details of the OpenCms 9 detail pagesAlkacon Software GmbH & Co. KG
 
OVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source TreeOVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source TreeChang W. Doh
 
GWT training session 2
GWT training session 2GWT training session 2
GWT training session 2SNEHAL MASNE
 
Introduction to Moodle Development
Introduction to Moodle DevelopmentIntroduction to Moodle Development
Introduction to Moodle Developmentmoorejon
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022NAVER D2
 
Chromium ui framework(shared)
Chromium ui framework(shared)Chromium ui framework(shared)
Chromium ui framework(shared)gnomekr
 
Rapid site production with Drupal
Rapid site production with DrupalRapid site production with Drupal
Rapid site production with DrupalRob Sawyer
 
Drupal module development training delhi
Drupal module development training delhiDrupal module development training delhi
Drupal module development training delhiunitedwebsoft
 
Drupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.xDrupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.xWong Hoi Sing Edison
 
Drupal 8 introduction to theming
Drupal 8  introduction to themingDrupal 8  introduction to theming
Drupal 8 introduction to themingBrahampal Singh
 
Debugging in drupal 8
Debugging in drupal 8Debugging in drupal 8
Debugging in drupal 8Allie Jones
 
Your first d8 module
Your first d8 moduleYour first d8 module
Your first d8 moduletedbow
 
WordPress Plugin Development 201
WordPress Plugin Development 201WordPress Plugin Development 201
WordPress Plugin Development 201ylefebvre
 
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8Vladimir Roudakov
 
Views plugins-in-d7-and-d8
Views plugins-in-d7-and-d8Views plugins-in-d7-and-d8
Views plugins-in-d7-and-d8Frank Holldorff
 

Was ist angesagt? (20)

Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011
Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011
Roman Chernov.Panels custom layouts.DrupalCampKyiv 2011
 
Fronteers - Drupal 7 ux
Fronteers   - Drupal 7 uxFronteers   - Drupal 7 ux
Fronteers - Drupal 7 ux
 
Drupal
DrupalDrupal
Drupal
 
OpenCms Days 2013 - Details of the OpenCms 9 detail pages
OpenCms Days 2013 - Details of the OpenCms 9 detail pagesOpenCms Days 2013 - Details of the OpenCms 9 detail pages
OpenCms Days 2013 - Details of the OpenCms 9 detail pages
 
OVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source TreeOVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source Tree
 
GWT training session 2
GWT training session 2GWT training session 2
GWT training session 2
 
Introduction to Moodle Development
Introduction to Moodle DevelopmentIntroduction to Moodle Development
Introduction to Moodle Development
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022
 
How Browser Works?
How Browser Works?How Browser Works?
How Browser Works?
 
Chromium ui framework(shared)
Chromium ui framework(shared)Chromium ui framework(shared)
Chromium ui framework(shared)
 
Rapid site production with Drupal
Rapid site production with DrupalRapid site production with Drupal
Rapid site production with Drupal
 
Drupal module development training delhi
Drupal module development training delhiDrupal module development training delhi
Drupal module development training delhi
 
Drupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.xDrupal in 5mins + Previewing Drupal 8.x
Drupal in 5mins + Previewing Drupal 8.x
 
Drupal 8 introduction to theming
Drupal 8  introduction to themingDrupal 8  introduction to theming
Drupal 8 introduction to theming
 
Debugging in drupal 8
Debugging in drupal 8Debugging in drupal 8
Debugging in drupal 8
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 
Your first d8 module
Your first d8 moduleYour first d8 module
Your first d8 module
 
WordPress Plugin Development 201
WordPress Plugin Development 201WordPress Plugin Development 201
WordPress Plugin Development 201
 
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
Brisbane Drupal meetup - 2016 Mar - Build module in Drupal 8
 
Views plugins-in-d7-and-d8
Views plugins-in-d7-and-d8Views plugins-in-d7-and-d8
Views plugins-in-d7-and-d8
 

Ähnlich wie Openbit szkolenie-drupal-podstawy 2

Xv ocd2010-jsharp
Xv ocd2010-jsharpXv ocd2010-jsharp
Xv ocd2010-jsharpJason Sharp
 
H4 Lab 02 X Page Advanced
H4 Lab 02   X Page AdvancedH4 Lab 02   X Page Advanced
H4 Lab 02 X Page Advanceddominion
 
Drupal User Profiles Sydney Meetup 0109
Drupal User Profiles Sydney Meetup 0109Drupal User Profiles Sydney Meetup 0109
Drupal User Profiles Sydney Meetup 0109theneemies
 
Creating effective ruby gems
Creating effective ruby gemsCreating effective ruby gems
Creating effective ruby gemsBen Zhang
 
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPages
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPagesBP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPages
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPagesPaul Withers
 
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections Communities
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections CommunitiesIBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections Communities
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections CommunitiesIBM Connections Developers
 
Magnolia CMS and Rails
Magnolia CMS and RailsMagnolia CMS and Rails
Magnolia CMS and RailsMagnolia
 
Extending CMS Made Simple
Extending CMS Made SimpleExtending CMS Made Simple
Extending CMS Made Simplecmsmssjg
 
Agilebuddy User Guide
Agilebuddy User GuideAgilebuddy User Guide
Agilebuddy User Guideagilebuddy
 
Distributed Docker Pipeline Architecture with CloudBees Jenkins Enterprise
Distributed Docker Pipeline Architecture with CloudBees Jenkins EnterpriseDistributed Docker Pipeline Architecture with CloudBees Jenkins Enterprise
Distributed Docker Pipeline Architecture with CloudBees Jenkins EnterpriseKurt Madel
 
Do it in code! A guide to creating a custom site structure plugin in WordPress.
Do it in code! A guide to creating a custom site structure plugin in WordPress.Do it in code! A guide to creating a custom site structure plugin in WordPress.
Do it in code! A guide to creating a custom site structure plugin in WordPress.Peter Hebert
 
Panels 3.0: The Powers Of Chaos Magic
Panels 3.0: The Powers Of Chaos MagicPanels 3.0: The Powers Of Chaos Magic
Panels 3.0: The Powers Of Chaos MagicChapter Three
 
XPages Workshop: Customizing OneUI
XPages Workshop: Customizing OneUIXPages Workshop: Customizing OneUI
XPages Workshop: Customizing OneUIMichael McGarel
 
Shared Shelf Admin tools training 2015
Shared Shelf Admin tools training 2015Shared Shelf Admin tools training 2015
Shared Shelf Admin tools training 2015ARTstor-Shared_Shelf
 
User guide
User guideUser guide
User guidefoxyhat
 
Standing up for the content creators: Site building and theming for the admin...
Standing up for the content creators: Site building and theming for the admin...Standing up for the content creators: Site building and theming for the admin...
Standing up for the content creators: Site building and theming for the admin...Jim Birch
 
Introduction to WordPress & Theme Development
Introduction to WordPress & Theme DevelopmentIntroduction to WordPress & Theme Development
Introduction to WordPress & Theme DevelopmentNajmul Haque
 
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...Howard Greenberg
 

Ähnlich wie Openbit szkolenie-drupal-podstawy 2 (20)

Xv ocd2010-jsharp
Xv ocd2010-jsharpXv ocd2010-jsharp
Xv ocd2010-jsharp
 
H4 Lab 02 X Page Advanced
H4 Lab 02   X Page AdvancedH4 Lab 02   X Page Advanced
H4 Lab 02 X Page Advanced
 
Drupal User Profiles Sydney Meetup 0109
Drupal User Profiles Sydney Meetup 0109Drupal User Profiles Sydney Meetup 0109
Drupal User Profiles Sydney Meetup 0109
 
Creating effective ruby gems
Creating effective ruby gemsCreating effective ruby gems
Creating effective ruby gems
 
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPages
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPagesBP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPages
BP206 It's Not Herculean: 12 Tasks Made Easier with IBM Domino XPages
 
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections Communities
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections CommunitiesIBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections Communities
IBM Connect 2014 - AD302: New Ways to Work With Your IBM Connections Communities
 
Magnolia CMS and Rails
Magnolia CMS and RailsMagnolia CMS and Rails
Magnolia CMS and Rails
 
Extending CMS Made Simple
Extending CMS Made SimpleExtending CMS Made Simple
Extending CMS Made Simple
 
Agilebuddy User Guide
Agilebuddy User GuideAgilebuddy User Guide
Agilebuddy User Guide
 
Distributed Docker Pipeline Architecture with CloudBees Jenkins Enterprise
Distributed Docker Pipeline Architecture with CloudBees Jenkins EnterpriseDistributed Docker Pipeline Architecture with CloudBees Jenkins Enterprise
Distributed Docker Pipeline Architecture with CloudBees Jenkins Enterprise
 
Drupal @ MediaCamp Athens
Drupal @ MediaCamp Athens Drupal @ MediaCamp Athens
Drupal @ MediaCamp Athens
 
Do it in code! A guide to creating a custom site structure plugin in WordPress.
Do it in code! A guide to creating a custom site structure plugin in WordPress.Do it in code! A guide to creating a custom site structure plugin in WordPress.
Do it in code! A guide to creating a custom site structure plugin in WordPress.
 
Panels 3.0: The Powers Of Chaos Magic
Panels 3.0: The Powers Of Chaos MagicPanels 3.0: The Powers Of Chaos Magic
Panels 3.0: The Powers Of Chaos Magic
 
XPages Workshop: Customizing OneUI
XPages Workshop: Customizing OneUIXPages Workshop: Customizing OneUI
XPages Workshop: Customizing OneUI
 
Shared Shelf Admin tools training 2015
Shared Shelf Admin tools training 2015Shared Shelf Admin tools training 2015
Shared Shelf Admin tools training 2015
 
User guide
User guideUser guide
User guide
 
Standing up for the content creators: Site building and theming for the admin...
Standing up for the content creators: Site building and theming for the admin...Standing up for the content creators: Site building and theming for the admin...
Standing up for the content creators: Site building and theming for the admin...
 
Introduction to WordPress & Theme Development
Introduction to WordPress & Theme DevelopmentIntroduction to WordPress & Theme Development
Introduction to WordPress & Theme Development
 
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...
Connect 2014 - BP202: Rapid XPages Development Using the Application Layout C...
 
Oopp Lab Work
Oopp Lab WorkOopp Lab Work
Oopp Lab Work
 

Mehr von Grzegorz Bartman

DrupalDay Podstawy Drupal 8
DrupalDay Podstawy Drupal 8DrupalDay Podstawy Drupal 8
DrupalDay Podstawy Drupal 8Grzegorz Bartman
 
Encje w drupalu - DrupalCamp Wroclaw 2015
Encje w drupalu - DrupalCamp Wroclaw 2015Encje w drupalu - DrupalCamp Wroclaw 2015
Encje w drupalu - DrupalCamp Wroclaw 2015Grzegorz Bartman
 
DrupalDay podstawy systemu Drupal (Wersja skrócona)
DrupalDay podstawy systemu Drupal (Wersja skrócona)DrupalDay podstawy systemu Drupal (Wersja skrócona)
DrupalDay podstawy systemu Drupal (Wersja skrócona)Grzegorz Bartman
 
Struktura i własności systemu zarządzania treścią Drupal
Struktura i własności systemu zarządzania treścią DrupalStruktura i własności systemu zarządzania treścią Drupal
Struktura i własności systemu zarządzania treścią DrupalGrzegorz Bartman
 
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014Grzegorz Bartman
 
DrupalDay & Drupal Global Training Days - Wprowadzenie do Drupala
DrupalDay & Drupal Global Training Days - Wprowadzenie do DrupalaDrupalDay & Drupal Global Training Days - Wprowadzenie do Drupala
DrupalDay & Drupal Global Training Days - Wprowadzenie do DrupalaGrzegorz Bartman
 
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?Grzegorz Bartman
 
Automatyzacja w tworzeniu aplikacji opartych Drupala
Automatyzacja w tworzeniu aplikacji opartych DrupalaAutomatyzacja w tworzeniu aplikacji opartych Drupala
Automatyzacja w tworzeniu aplikacji opartych DrupalaGrzegorz Bartman
 
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatu
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatuBazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatu
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatuGrzegorz Bartman
 
Wprowadzenie do pisania własnych modułów oraz do systemu menu.
Wprowadzenie do pisania własnych modułów oraz do systemu menu. Wprowadzenie do pisania własnych modułów oraz do systemu menu.
Wprowadzenie do pisania własnych modułów oraz do systemu menu. Grzegorz Bartman
 
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław Sobiecki
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław SobieckiPodstawy programowania w Drupalu - Drupal idzie na studia - Jarosław Sobiecki
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław SobieckiGrzegorz Bartman
 
WYSIWYG w Drupalu 7 - Tomasz Rychter
WYSIWYG w Drupalu 7 - Tomasz RychterWYSIWYG w Drupalu 7 - Tomasz Rychter
WYSIWYG w Drupalu 7 - Tomasz RychterGrzegorz Bartman
 
Podstawy SEO w Drupalu 7 - Jarosław Sobiecki
Podstawy SEO w Drupalu 7 - Jarosław SobieckiPodstawy SEO w Drupalu 7 - Jarosław Sobiecki
Podstawy SEO w Drupalu 7 - Jarosław SobieckiGrzegorz Bartman
 
Drupal Feeds - Wiktor Burbo
Drupal Feeds - Wiktor BurboDrupal Feeds - Wiktor Burbo
Drupal Feeds - Wiktor BurboGrzegorz Bartman
 
Drupal Context - Agnieszka Cupek
Drupal Context - Agnieszka CupekDrupal Context - Agnieszka Cupek
Drupal Context - Agnieszka CupekGrzegorz Bartman
 
Drupal Features - Agnieszka Piłasiewicz
Drupal Features - Agnieszka PiłasiewiczDrupal Features - Agnieszka Piłasiewicz
Drupal Features - Agnieszka PiłasiewiczGrzegorz Bartman
 
Drupal Rules - Drupal Idzie Na Studia - Jarosław Sobiecki
Drupal Rules - Drupal Idzie Na Studia - Jarosław SobieckiDrupal Rules - Drupal Idzie Na Studia - Jarosław Sobiecki
Drupal Rules - Drupal Idzie Na Studia - Jarosław SobieckiGrzegorz Bartman
 
Podstawowe informacje o szablonach w Drupalu [openBIT]
Podstawowe informacje o szablonach w Drupalu [openBIT]Podstawowe informacje o szablonach w Drupalu [openBIT]
Podstawowe informacje o szablonach w Drupalu [openBIT]Grzegorz Bartman
 
Openbit szkolenie-drupal-podstawy 2
Openbit szkolenie-drupal-podstawy 2Openbit szkolenie-drupal-podstawy 2
Openbit szkolenie-drupal-podstawy 2Grzegorz Bartman
 

Mehr von Grzegorz Bartman (20)

DrupalDay Podstawy Drupal 8
DrupalDay Podstawy Drupal 8DrupalDay Podstawy Drupal 8
DrupalDay Podstawy Drupal 8
 
Encje w drupalu - DrupalCamp Wroclaw 2015
Encje w drupalu - DrupalCamp Wroclaw 2015Encje w drupalu - DrupalCamp Wroclaw 2015
Encje w drupalu - DrupalCamp Wroclaw 2015
 
DrupalDay podstawy systemu Drupal (Wersja skrócona)
DrupalDay podstawy systemu Drupal (Wersja skrócona)DrupalDay podstawy systemu Drupal (Wersja skrócona)
DrupalDay podstawy systemu Drupal (Wersja skrócona)
 
Struktura i własności systemu zarządzania treścią Drupal
Struktura i własności systemu zarządzania treścią DrupalStruktura i własności systemu zarządzania treścią Drupal
Struktura i własności systemu zarządzania treścią Drupal
 
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014
Code driven development w Drupalu 7 | DrupalCamp Wrocław 2014
 
DrupalDay & Drupal Global Training Days - Wprowadzenie do Drupala
DrupalDay & Drupal Global Training Days - Wprowadzenie do DrupalaDrupalDay & Drupal Global Training Days - Wprowadzenie do Drupala
DrupalDay & Drupal Global Training Days - Wprowadzenie do Drupala
 
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?
Dlaczego Twoja kolejna aplikacja powinna bazować na platformie Drupal?
 
Automatyzacja w tworzeniu aplikacji opartych Drupala
Automatyzacja w tworzeniu aplikacji opartych DrupalaAutomatyzacja w tworzeniu aplikacji opartych Drupala
Automatyzacja w tworzeniu aplikacji opartych Drupala
 
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatu
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatuBazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatu
Bazy danych w Drupalu 7. Przygotowanie tabeli przechowującej wpisy chatu
 
Wprowadzenie do pisania własnych modułów oraz do systemu menu.
Wprowadzenie do pisania własnych modułów oraz do systemu menu. Wprowadzenie do pisania własnych modułów oraz do systemu menu.
Wprowadzenie do pisania własnych modułów oraz do systemu menu.
 
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław Sobiecki
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław SobieckiPodstawy programowania w Drupalu - Drupal idzie na studia - Jarosław Sobiecki
Podstawy programowania w Drupalu - Drupal idzie na studia - Jarosław Sobiecki
 
WYSIWYG w Drupalu 7 - Tomasz Rychter
WYSIWYG w Drupalu 7 - Tomasz RychterWYSIWYG w Drupalu 7 - Tomasz Rychter
WYSIWYG w Drupalu 7 - Tomasz Rychter
 
Podstawy SEO w Drupalu 7 - Jarosław Sobiecki
Podstawy SEO w Drupalu 7 - Jarosław SobieckiPodstawy SEO w Drupalu 7 - Jarosław Sobiecki
Podstawy SEO w Drupalu 7 - Jarosław Sobiecki
 
Drupal Feeds - Wiktor Burbo
Drupal Feeds - Wiktor BurboDrupal Feeds - Wiktor Burbo
Drupal Feeds - Wiktor Burbo
 
Drupal Context - Agnieszka Cupek
Drupal Context - Agnieszka CupekDrupal Context - Agnieszka Cupek
Drupal Context - Agnieszka Cupek
 
Drupal Features - Agnieszka Piłasiewicz
Drupal Features - Agnieszka PiłasiewiczDrupal Features - Agnieszka Piłasiewicz
Drupal Features - Agnieszka Piłasiewicz
 
Drupal Rules - Drupal Idzie Na Studia - Jarosław Sobiecki
Drupal Rules - Drupal Idzie Na Studia - Jarosław SobieckiDrupal Rules - Drupal Idzie Na Studia - Jarosław Sobiecki
Drupal Rules - Drupal Idzie Na Studia - Jarosław Sobiecki
 
Podstawowe informacje o szablonach w Drupalu [openBIT]
Podstawowe informacje o szablonach w Drupalu [openBIT]Podstawowe informacje o szablonach w Drupalu [openBIT]
Podstawowe informacje o szablonach w Drupalu [openBIT]
 
Drupal 7 training - Views
Drupal 7 training - ViewsDrupal 7 training - Views
Drupal 7 training - Views
 
Openbit szkolenie-drupal-podstawy 2
Openbit szkolenie-drupal-podstawy 2Openbit szkolenie-drupal-podstawy 2
Openbit szkolenie-drupal-podstawy 2
 

Kürzlich hochgeladen

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Kürzlich hochgeladen (20)

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

Openbit szkolenie-drupal-podstawy 2

  • 1. Drupal basics Part 2
  • 2. Training plan ● Taxonomy ● Users management ● Creating new content types with CCK module ● Image management (imagecache, galleries) page 2/57
  • 3. Taxonomy ● The taxonomy module allows you to categorize your content using both tags and administrator defined terms. It is a flexible tool for classifying content with many advanced features. ● Taxonomy administration page: admin/content/taxonomy Create new vocabulary List of vocabularies page 3/57
  • 4. Create vocabulary Vocabulary name: Car brand Content type: Car Settings page 4/57
  • 5. Add term to vocabulary Add term Term name Advanced options: parents, synonims, related terms page 5/57
  • 6. Create content with taxonomy Taxonomy options: Car brand page 6/57
  • 7. Create content with taxonomy Taxonomy options: Car brand page 7/57
  • 8. Taxonomy term page Term name Nodes assigned to term Page: taxonomy/term/1 page 8/57
  • 9. Practice ●Create vocabulary Color for content type Car and add some terms (black, red, blue, silver, etc...). User must select one option. ●Create vocabulary Body type for content type Car and add some terms (hatchback, coupe, etc...). User must select one option. ●Create vocabulary Car Equipment for content type Car and add some terms (ABS, Alarm, Electric Windows, Traction Control, etc...). User can select one or more options. ●Add some Cars (nodes) and assign taxonomy options page 9/57
  • 10. More practice ●Create content type News: enabled comments, published on front page ●Create vocabulary News category and add some terms (Business, Sport, Technology, etc...). User can select one option ●Create vocabulary News tags and enable option „Tags” ●Create 5 news nodes, assign News category and ad tags page 10/57
  • 11. Page taxonomy/term/TID ●taxonomy/term/[TID] – display nodes assigned to term [TID] ●taxonomy/term/[TID1]+[TID2]+[TID3] – display nodes assigned to term [TID1] or [TID2] or [TID3] ●taxonomy/term/[TID1],[TID2] – display nodes assigned to term [TID1] and [TID2] page 11/57
  • 12. Term hierarchy (1) ●Terms can have hierarchy (parent - children) Select parent page 12/57
  • 13. Term hierarchy (2) Hierarchy of terms page 13/57
  • 14. Users – basic informations ●In Drupal you can create users accounts ●Each user has name and numeric identificator (uid) ●After installation Drupal has one user – administrator (uid = 1) ●Administrator has access to all options ●You can assign roles to user ●You can assign permissions to roles page 14/57
  • 15. Users – roles - permissions Roles (anonymous, authenticated, moderator, editor) Permission Users (access user profiles, (admin, joe, steve) create story content, access comments) page 15/57
  • 16. Roles ●Default roles after installation ● anonymous user – all not logged in users ● authenticated user – all logged in users ●You can't delete default roles ●You can create unlimited number of new roles page 16/57
  • 17. Create new role New role name Page: admin/user/roles page 17/57
  • 18. Role permissions Set permission to role: ●create page, story, car ●delete any page,story, car ●edit any page, story, car Page: admin/user/permissions page 18/57
  • 19. Inheritance permissions Inheritance of logged-on user permissions. No need to select if permissions are assigned to the role „authenticated user” Page: admin/user/permissions page 19/57
  • 20. Users management Add new user Filter options Update options Users list Page: admin/user/user page 20/57
  • 21. Create new user Username, e-mail and password Status – if „blocked” user can't log in Assigned roles Page: admin/user/user/create page 21/57
  • 22. Users list User name Assigned roles Edit link Page: admin/user/user/create page 22/57
  • 23. Practice ●Create roles and assign permissions: ● „car editor”, permissions: create, edit and delete car ● „story editor”, permissions: create, edit and delete story ●Create users: ● user2 – role „car editor” ● user3 – role „story editor” ●Log in as „user2” and „user3” and check permissions page 23/57
  • 24. CCK ●CCK – Content Construction Kit http://drupal.org/project/cck (Drupal 7 has this module in core) ●Default node has title and body ●CCK allow to create additional fields for nodes (text fields, files upload, select lists, checkboxes, references to other nodes and users) page 24/57
  • 25. Installing CCK (1) ●Go to http://drupal.org/project/cck, download module and extract files into sites/all/modules/contrib ●Go to admin/build/modules and enable modules: ● Content ● Fieldgroup ● Node reference ● Number ● Option Widgets ● Text page 25/57
  • 26. Installing CCK (2) page 26/57
  • 27. Using CCK ●Go to edit content type Car: admin/content/node- type/car New options: Manage fields and Display fields page 27/57
  • 28. CCK: Manage fields Current node fields (defaults). You can change order of fields. Create new field Create new group of fields page 28/57
  • 29. CCK: Creating new field (1) Label Field name (stored in database as Field type and field identificator). Best practice: always insert widget node type as field name prefix, example: field_story_author, field_page_information page 29/57
  • 30. CCK: Creating new field (2) Help text, displayed under field on node add form Required Number of allowed values Minimum and maximum value Prefix and suffix. cc – cubic centimeters page 30/57
  • 31. CCK: Creating new field (3) New field Configure and Remove links Page: admin/content/node-type/car/fields page 31/57
  • 32. CCK: Creating new field (3) New field Configure and Remove links Page: admin/content/node-type/car/fields page 32/57
  • 33. CCK: Creating new field (4) New field on node add page Page: node/add/car page 33/57
  • 34. CCK: Creating new field (5) Node view page: node/[nid] Node title Node body New field Taxonomy terms page 34/57
  • 35. CCK: Display fields (1) Label options Display format Exclude Page: admin/content/node-type/car/display page 35/57
  • 36. CCK: Display fields (2) ●Display options: ● Label inline ● Format: 9 999 page 36/57
  • 37. Practice Create new fields for Car node type: ● ● Gears – integer, select list (options 4, 5, 6) ● Gearbox: - select list (options: manual, automatic) ● Kerb weight – integer, suffix „kg” ● Door count – integer, select list (options 3, 4, 5) page 37/57
  • 38. Extending CCK ●Add new field type: file upload ●Go to http://drupal.org/project/filefield, download and extract module into sites/all/modules/contrib ●Go to admin/build/modules and enable FileField module FileField module page 38/57
  • 39. FileField module (1) ●Go to admin/content/node-type/car/fields and add new field Field type: File page 39/57
  • 40. FileField module (2) Allowed files extensions File size restrictions Number of values: set to unlimited page 40/57
  • 41. FileField module (3) ● Go to node/add/car and add content with files File upload options page 41/57
  • 42. FileField module (4) Node view page Uploaded files page 42/57
  • 43. Practice ●Create new field: ● Documents – field type: file upload, unlimited number of values ●Create new group of fields, label: Files, name group_car_files ●Insert fields „Manuals” and „Documents” into group „Files” Node add page Field group: Files page 43/57
  • 44. Practice ●Create new group of fields, label: Details, name group_car_details ●Insert fields „Engine size”, „Gears”, „Gearbox”, „Kerb weight”, „”Door count into group „Details” Group: Details page 44/57
  • 45. Extending CCK: Images ●ImageField module provides an image upload field for CCK. ●Go to http://drupal.org/project/imagefield, download and extract files into sites/all/modules/contrib ●Go to admin/build/modules and enable module ImageField ImageField module page 45/57
  • 46. ImageField (1) ●Go to Content management → Content types → Edit Car → Manage fields ●Create new field: Photos, field_car_photos Field type: File - Image page 46/57
  • 47. ImageField (2) Allowed image extensions Image options: ALT, Title, Default image page 47/57
  • 48. ImageField (3) Go to Content management → Create content → Car Photos upload options page 48/57
  • 49. ImageField (4) Node view page: Uploaded photos page 49/57
  • 50. ImageCache module ●ImageCache allows you to setup presets for image processing. ●Go to http://drupal.org/project/imagecache, download and extract files into sites/all/modules/contrib ●Go to http://drupal.org/project/imageapi, download and extract files into sites/all/modules/contrib ●Go to Site building → Modules and enable modules: ● ImageAPI ● ImageAPI GD2 ● ImageCache ● ImageCache UI page 50/57
  • 51. ImageCache presets (1) ●Go to Site buliding → Imagecache ●Add new preset ●Add action: Scale Action: Scale page 51/57
  • 52. ImageCache presets (2) Preset edit options Name Actions New actions Configure or delete action page 52/57
  • 53. Using ImageCache presets in CCK (1) ●Go to Content management → Content types → Edit Car → Display fields ●Set options for Photos field: ● Teaser: hidden ● Full node: width400px image linked to node ImageCache preset page 53/57
  • 54. Using ImageCache presets in CCK (2) Create Car node and add some photos larger than 400px ● Now all images has the same width page 54/57
  • 55. Practice ●Create new ImageCache preset and assign it for field Photos in Car node type ●Create new field in Story node type: Photos (field_story_photos) ●Create new Car node and test preset ●Create new ImageCache preset ●Assign new preset for field Photos field_story_photos ●Create new Story node and test preset page 55/57
  • 56. Summary What you should know after this stage? ●Taxonomy ●User management ●Create custom fields for content ●Create ImageCache preset and use it in CCK fields page 56/57
  • 57. Thank you for your attention Contact: E-mail: grzegorz.bartman@openbit.pl Tel: +48 882 515 514 strona 57/57