SlideShare une entreprise Scribd logo
1  sur  48
Télécharger pour lire hors ligne
1
Drupal – Content Types, Contrib
Modules – views etc
YIPL Dev Team
31 October 2011
2
Agenda
• Must have Drupal Modules
• Recipe Brochure website
• Creating and configuring Content types
• Using Views to list content
3
Must have Drupal Modules
• In Drupal core
– Fields (already on)
– Image Styles (images module)
• Absolute Essential
– Views
– Panels
– Backup and Migrate
– Token (for pathauto and others)
4
Must have Drupal Modules 2
• Node Related
– WYSIWYG – Ckeditor
– IMCE
– WYSIWYG IMCE Bridge
– Workbench?
• Optional Addon
– Context
– Features
– Views Slideshow (homepage animation)
5
Must have Drupal Modules 2
• SEO
– Pathauto
– Page Title
– Nodewords
– XML Sitemap
– Global Redirect
– Google Analytics
– Search 404??
6
Module and usage
• Information architecture is translated in to content
types and links (node reference) between them.
• CCK (now fields) and other related modules (like node
reference + related modules) are used.
• Views are used to show the content in desired format
(query generator)
• Other modules like panels are used to give customized
display of views and other things.
7
A recipe brochure website
• Information Architecture below:
●
Static page
– Title (required)
– Body (required)
●
News
– Title (required)
– Body (required)
– Image(optional)
– Tags/Category (optional)
8
A recipe brochure website 2
• Image Gallery with 2 content types
●
Gallery (1 gallery contains multiple Images)
• Image
– Title (required)
– Image(required)
• Gallery and image linked with node reference
(use node reference url)
• Some Views – Latest News, Galleries etc
• User Management and permission granting.
9
Content type for static page
• It is already there in form of “Basic Page”
• Make sure you are logged in (as admin)
• Click “Structure>>Content Types”
• Click “Edit” under “Basic Page”
10
Basic Page settings
• If you want to change title into “Headline”
or something you can do it.
• You can change other settings if needed.
11
Field Settings
• If you needed other fields (which is not
needed now), you can change it from
manage fields tab.
12
Field labels and other settings
• If you click “edit” under operation of body
field you can change its label and settings.
13
Basic page is fine
• Basic page is good and serves its purpose
as built in core Drupal.
• In Drupal there are two forms for content
type/node to be displayed:
– Teaser
– Full Node
• So settings for fields can be based on
display format.
14
Translating specs to content types
• Each new kind of content should be a content
type.
• Each new information unit can be a field.
• Fields are sharable.
(http://drupal.org/node/311138)
• Some Drupal facts to consider
– Each content type is a node type (nid)
– Each content/node is created by one user (uid)
– Content types can be related with node ref
– Media (images etc) are handled by Drupal
15
Brochure site rough data model
• Below is a rough data model for the site.
• Remember things to consider (prev slide)
16
Create News Content Type
• Goto Structure>>Content Types>>+ Add
Content Type
17
Create News Content Type 2
• Name content type news and other things:
18
Create News Content Type 3
• Check publishing options
19
Create News Content Type 4
• Check display options
20
Create News Content Type 4
• Check comment settings
21
Create News Content Type 5
• Check Menu Settings
• Then click “Save and add fields”
• No Menus as “News” don't have any link
22
Create News Content Type 6
• Content type created, now add fields.
23
Create News Content Type 7
• Add image field for “News Image”.
24
Create News Content Type 8
• News photo field settings.
25
Create News Content Type 9
• Configure settings for image field.
• Decide if image is required to create news.
26
Create News Content Type 10
• Configure image size settings
27
Create News Content Type 11
• Other image related settings
28
Create News Content Type 12
• Choose default files if any “Save settings”
• Creating content type with image complete
29
Order of fields (drag and drop)
• Fields can be ordered by drag and drop.
30
Manage display fields
• Configure how to show fields in teaser and
default (full node) view
31
Other things to consider
• Comments are field-able
• Comment fields and display can also be
configured.
• Field type should be select as per the need
example, date of birth will be a date field and
Gender can be a select box with male and
female.
• Now new content of type news can be
added.
32
Add content changed
• News can now be added to the website.
33
Create News content
• Other settings same as page/node
submission settings.
34
News Created
• Remember the dimensions of the image
uploaded.
35
Need of Views
• Now this is a list and to list nodes, users etc
we need the views module.
• Views module is a query generator and list
maker which shows content in a predefined
format like table, list etc.
• Views can be downloaded from
http://drupal.org/project/views , need ctools
• From drush: drush dl views; drush en views
views_ui (will download ctools as well)
36
Latest 5 news page and block
• To create a view go to: Structure>>Views
37
Create a view for News
• How to add a new view.
38
Add view for News
• Add a new view “latest_news” with
following settings:
39
Add view for News 2
• Provide a link and create a block
40
Add View for News 3
• Full views scary interface ;)
• Click save and run from here for now.
41
Now there is new page
• There is a menu item in menu for News.
42
Some Views Jargon
• Views is a query generation with display
formatting.
• Display could be simple HTML list, table (data
grid) or complicated like views slide-show
• Single view can have multiple displays
– Attachment – Attached to other view(s)
– Block – Rendered as a block, shown in block region
– Page – Has a URL, may even have a Menu Link
– Feed – RSS feed for feed readers to consume
43
Configure News block
• Goto Blocks (Structure >> Blocks)
• Click “Configure” besides “ - View:
latest_news then, add title as below:
• Then click “Save Block”
44
Place the news block
• Place the latest news block on sidebar first
as shown below (and click “Save Blocks”):
45
Latest News block placed
• News block is placed at “Sidebar first”
46
Image gallery with content types
• Gallery is a content type.
• Picture is another content type.
• One gallery has many pictures.
• One picture can belong to only one gallery.
• 1:m relationship
• How to show this in Drupal?
– Node Reference
47
48
Self Study and Practice
• Add tags to News
• Image gallery
• Home page with panels
• Events with Date filters (conditions, calender,
previous events, future events etc)
• Team page
• RSS feeds with views
• Module assignment: change “Apply” in views
filter to “Search”

Contenu connexe

En vedette

Git intro hands on windows with msysgit
Git intro hands on windows with msysgitGit intro hands on windows with msysgit
Git intro hands on windows with msysgitGeshan Manandhar
 
Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4Geshan Manandhar
 
Embrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareEmbrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareGeshan Manandhar
 
Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016Geshan Manandhar
 
Message Queues a basic overview
Message Queues a basic overviewMessage Queues a basic overview
Message Queues a basic overviewGeshan Manandhar
 

En vedette (7)

Git intro hands on windows with msysgit
Git intro hands on windows with msysgitGit intro hands on windows with msysgit
Git intro hands on windows with msysgit
 
A simplified Gitflow
A simplified GitflowA simplified Gitflow
A simplified Gitflow
 
Drupal introduction
Drupal introductionDrupal introduction
Drupal introduction
 
Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4
 
Embrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareEmbrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment software
 
Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016
 
Message Queues a basic overview
Message Queues a basic overviewMessage Queues a basic overview
Message Queues a basic overview
 

Similaire à Drupal 7 basic setup and contrib modules for a brochure website

Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Anil Sagar
 
Streamlined Drupal 8: Site Building Strategies for Tight Deadlines
Streamlined Drupal 8: Site Building Strategies for Tight DeadlinesStreamlined Drupal 8: Site Building Strategies for Tight Deadlines
Streamlined Drupal 8: Site Building Strategies for Tight DeadlinesPantheon
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreSuzanne Dergacheva
 
Drupal theming - a practical approach (European Drupal Days 2015)
Drupal theming - a practical approach (European Drupal Days 2015)Drupal theming - a practical approach (European Drupal Days 2015)
Drupal theming - a practical approach (European Drupal Days 2015)Eugenio Minardi
 
OpenCms Days 2014 - Responsive bootstrap templates reloaded
OpenCms Days 2014 - Responsive bootstrap templates reloadedOpenCms Days 2014 - Responsive bootstrap templates reloaded
OpenCms Days 2014 - Responsive bootstrap templates reloadedAlkacon Software GmbH & Co. KG
 
Get Up and Running Quickly with Drupal Distributions
Get Up and Running Quickly with Drupal DistributionsGet Up and Running Quickly with Drupal Distributions
Get Up and Running Quickly with Drupal DistributionsMelissa Piper
 
OpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containersOpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containersAlkacon Software GmbH & Co. KG
 
Drupal Theming for Developers
Drupal Theming for DevelopersDrupal Theming for Developers
Drupal Theming for DevelopersIan Carnaghan
 
Drupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDrupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDavid Lanier
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Acquia
 
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinCreating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinSuzanne Dergacheva
 
Basic site building with drupal 7
Basic site building with drupal 7Basic site building with drupal 7
Basic site building with drupal 7Roald Umandal
 
10 steps to becoming a panels pro
10 steps to becoming a panels pro10 steps to becoming a panels pro
10 steps to becoming a panels proGreen For All
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalRod Martin
 
Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8Acquia
 
Drupal training-1-in-mumbai
Drupal training-1-in-mumbaiDrupal training-1-in-mumbai
Drupal training-1-in-mumbaivibrantuser
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelonahernanibf
 

Similaire à Drupal 7 basic setup and contrib modules for a brochure website (20)

Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2Blisstering drupal module development ppt v1.2
Blisstering drupal module development ppt v1.2
 
Streamlined Drupal 8: Site Building Strategies for Tight Deadlines
Streamlined Drupal 8: Site Building Strategies for Tight DeadlinesStreamlined Drupal 8: Site Building Strategies for Tight Deadlines
Streamlined Drupal 8: Site Building Strategies for Tight Deadlines
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
 
Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs
 
Drupal theming - a practical approach (European Drupal Days 2015)
Drupal theming - a practical approach (European Drupal Days 2015)Drupal theming - a practical approach (European Drupal Days 2015)
Drupal theming - a practical approach (European Drupal Days 2015)
 
OpenCms Days 2014 - Responsive bootstrap templates reloaded
OpenCms Days 2014 - Responsive bootstrap templates reloadedOpenCms Days 2014 - Responsive bootstrap templates reloaded
OpenCms Days 2014 - Responsive bootstrap templates reloaded
 
Get Up and Running Quickly with Drupal Distributions
Get Up and Running Quickly with Drupal DistributionsGet Up and Running Quickly with Drupal Distributions
Get Up and Running Quickly with Drupal Distributions
 
OpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containersOpenCms Days 2015 Modern templates with nested containers
OpenCms Days 2015 Modern templates with nested containers
 
Drupal_cubet seminar
Drupal_cubet seminarDrupal_cubet seminar
Drupal_cubet seminar
 
Drupal Theming for Developers
Drupal Theming for DevelopersDrupal Theming for Developers
Drupal Theming for Developers
 
Drupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 versionDrupal upgrades and migrations. BAD Camp 2013 version
Drupal upgrades and migrations. BAD Camp 2013 version
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2
 
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon DublinCreating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
 
Basic site building with drupal 7
Basic site building with drupal 7Basic site building with drupal 7
Basic site building with drupal 7
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
 
10 steps to becoming a panels pro
10 steps to becoming a panels pro10 steps to becoming a panels pro
10 steps to becoming a panels pro
 
Absolute Beginners Guide to Drupal
Absolute Beginners Guide to DrupalAbsolute Beginners Guide to Drupal
Absolute Beginners Guide to Drupal
 
Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8Everything You Need to Know About the Top Changes in Drupal 8
Everything You Need to Know About the Top Changes in Drupal 8
 
Drupal training-1-in-mumbai
Drupal training-1-in-mumbaiDrupal training-1-in-mumbai
Drupal training-1-in-mumbai
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelona
 

Plus de Geshan Manandhar

Are logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practicesAre logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practicesGeshan Manandhar
 
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...Geshan Manandhar
 
Moving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learningsMoving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learningsGeshan Manandhar
 
Adopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business valueAdopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business valueGeshan Manandhar
 
Things i wished i knew as a junior developer
Things i wished i knew as a junior developerThings i wished i knew as a junior developer
Things i wished i knew as a junior developerGeshan Manandhar
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themesGeshan Manandhar
 
02 Php Vars Op Control Etc
02 Php Vars Op Control Etc02 Php Vars Op Control Etc
02 Php Vars Op Control EtcGeshan Manandhar
 
07 Php Mysql Update Delete
07 Php Mysql Update Delete07 Php Mysql Update Delete
07 Php Mysql Update DeleteGeshan Manandhar
 
03 Php Array String Functions
03 Php Array String Functions03 Php Array String Functions
03 Php Array String FunctionsGeshan Manandhar
 
06 Php Mysql Connect Query
06 Php Mysql Connect Query06 Php Mysql Connect Query
06 Php Mysql Connect QueryGeshan Manandhar
 
05 File Handling Upload Mysql
05 File Handling Upload Mysql05 File Handling Upload Mysql
05 File Handling Upload MysqlGeshan Manandhar
 
08 Php Mysql Complex Queries Functions
08 Php Mysql Complex Queries Functions08 Php Mysql Complex Queries Functions
08 Php Mysql Complex Queries FunctionsGeshan Manandhar
 

Plus de Geshan Manandhar (15)

Are logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practicesAre logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practices
 
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
 
Moving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learningsMoving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learnings
 
Adopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business valueAdopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business value
 
Things i wished i knew as a junior developer
Things i wished i knew as a junior developerThings i wished i knew as a junior developer
Things i wished i knew as a junior developer
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themes
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
09 Oo Php Register
09 Oo Php Register09 Oo Php Register
09 Oo Php Register
 
10 Email Etc
10 Email Etc10 Email Etc
10 Email Etc
 
02 Php Vars Op Control Etc
02 Php Vars Op Control Etc02 Php Vars Op Control Etc
02 Php Vars Op Control Etc
 
07 Php Mysql Update Delete
07 Php Mysql Update Delete07 Php Mysql Update Delete
07 Php Mysql Update Delete
 
03 Php Array String Functions
03 Php Array String Functions03 Php Array String Functions
03 Php Array String Functions
 
06 Php Mysql Connect Query
06 Php Mysql Connect Query06 Php Mysql Connect Query
06 Php Mysql Connect Query
 
05 File Handling Upload Mysql
05 File Handling Upload Mysql05 File Handling Upload Mysql
05 File Handling Upload Mysql
 
08 Php Mysql Complex Queries Functions
08 Php Mysql Complex Queries Functions08 Php Mysql Complex Queries Functions
08 Php Mysql Complex Queries Functions
 

Dernier

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Dernier (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Drupal 7 basic setup and contrib modules for a brochure website

  • 1. 1 Drupal – Content Types, Contrib Modules – views etc YIPL Dev Team 31 October 2011
  • 2. 2 Agenda • Must have Drupal Modules • Recipe Brochure website • Creating and configuring Content types • Using Views to list content
  • 3. 3 Must have Drupal Modules • In Drupal core – Fields (already on) – Image Styles (images module) • Absolute Essential – Views – Panels – Backup and Migrate – Token (for pathauto and others)
  • 4. 4 Must have Drupal Modules 2 • Node Related – WYSIWYG – Ckeditor – IMCE – WYSIWYG IMCE Bridge – Workbench? • Optional Addon – Context – Features – Views Slideshow (homepage animation)
  • 5. 5 Must have Drupal Modules 2 • SEO – Pathauto – Page Title – Nodewords – XML Sitemap – Global Redirect – Google Analytics – Search 404??
  • 6. 6 Module and usage • Information architecture is translated in to content types and links (node reference) between them. • CCK (now fields) and other related modules (like node reference + related modules) are used. • Views are used to show the content in desired format (query generator) • Other modules like panels are used to give customized display of views and other things.
  • 7. 7 A recipe brochure website • Information Architecture below: ● Static page – Title (required) – Body (required) ● News – Title (required) – Body (required) – Image(optional) – Tags/Category (optional)
  • 8. 8 A recipe brochure website 2 • Image Gallery with 2 content types ● Gallery (1 gallery contains multiple Images) • Image – Title (required) – Image(required) • Gallery and image linked with node reference (use node reference url) • Some Views – Latest News, Galleries etc • User Management and permission granting.
  • 9. 9 Content type for static page • It is already there in form of “Basic Page” • Make sure you are logged in (as admin) • Click “Structure>>Content Types” • Click “Edit” under “Basic Page”
  • 10. 10 Basic Page settings • If you want to change title into “Headline” or something you can do it. • You can change other settings if needed.
  • 11. 11 Field Settings • If you needed other fields (which is not needed now), you can change it from manage fields tab.
  • 12. 12 Field labels and other settings • If you click “edit” under operation of body field you can change its label and settings.
  • 13. 13 Basic page is fine • Basic page is good and serves its purpose as built in core Drupal. • In Drupal there are two forms for content type/node to be displayed: – Teaser – Full Node • So settings for fields can be based on display format.
  • 14. 14 Translating specs to content types • Each new kind of content should be a content type. • Each new information unit can be a field. • Fields are sharable. (http://drupal.org/node/311138) • Some Drupal facts to consider – Each content type is a node type (nid) – Each content/node is created by one user (uid) – Content types can be related with node ref – Media (images etc) are handled by Drupal
  • 15. 15 Brochure site rough data model • Below is a rough data model for the site. • Remember things to consider (prev slide)
  • 16. 16 Create News Content Type • Goto Structure>>Content Types>>+ Add Content Type
  • 17. 17 Create News Content Type 2 • Name content type news and other things:
  • 18. 18 Create News Content Type 3 • Check publishing options
  • 19. 19 Create News Content Type 4 • Check display options
  • 20. 20 Create News Content Type 4 • Check comment settings
  • 21. 21 Create News Content Type 5 • Check Menu Settings • Then click “Save and add fields” • No Menus as “News” don't have any link
  • 22. 22 Create News Content Type 6 • Content type created, now add fields.
  • 23. 23 Create News Content Type 7 • Add image field for “News Image”.
  • 24. 24 Create News Content Type 8 • News photo field settings.
  • 25. 25 Create News Content Type 9 • Configure settings for image field. • Decide if image is required to create news.
  • 26. 26 Create News Content Type 10 • Configure image size settings
  • 27. 27 Create News Content Type 11 • Other image related settings
  • 28. 28 Create News Content Type 12 • Choose default files if any “Save settings” • Creating content type with image complete
  • 29. 29 Order of fields (drag and drop) • Fields can be ordered by drag and drop.
  • 30. 30 Manage display fields • Configure how to show fields in teaser and default (full node) view
  • 31. 31 Other things to consider • Comments are field-able • Comment fields and display can also be configured. • Field type should be select as per the need example, date of birth will be a date field and Gender can be a select box with male and female. • Now new content of type news can be added.
  • 32. 32 Add content changed • News can now be added to the website.
  • 33. 33 Create News content • Other settings same as page/node submission settings.
  • 34. 34 News Created • Remember the dimensions of the image uploaded.
  • 35. 35 Need of Views • Now this is a list and to list nodes, users etc we need the views module. • Views module is a query generator and list maker which shows content in a predefined format like table, list etc. • Views can be downloaded from http://drupal.org/project/views , need ctools • From drush: drush dl views; drush en views views_ui (will download ctools as well)
  • 36. 36 Latest 5 news page and block • To create a view go to: Structure>>Views
  • 37. 37 Create a view for News • How to add a new view.
  • 38. 38 Add view for News • Add a new view “latest_news” with following settings:
  • 39. 39 Add view for News 2 • Provide a link and create a block
  • 40. 40 Add View for News 3 • Full views scary interface ;) • Click save and run from here for now.
  • 41. 41 Now there is new page • There is a menu item in menu for News.
  • 42. 42 Some Views Jargon • Views is a query generation with display formatting. • Display could be simple HTML list, table (data grid) or complicated like views slide-show • Single view can have multiple displays – Attachment – Attached to other view(s) – Block – Rendered as a block, shown in block region – Page – Has a URL, may even have a Menu Link – Feed – RSS feed for feed readers to consume
  • 43. 43 Configure News block • Goto Blocks (Structure >> Blocks) • Click “Configure” besides “ - View: latest_news then, add title as below: • Then click “Save Block”
  • 44. 44 Place the news block • Place the latest news block on sidebar first as shown below (and click “Save Blocks”):
  • 45. 45 Latest News block placed • News block is placed at “Sidebar first”
  • 46. 46 Image gallery with content types • Gallery is a content type. • Picture is another content type. • One gallery has many pictures. • One picture can belong to only one gallery. • 1:m relationship • How to show this in Drupal? – Node Reference
  • 47. 47
  • 48. 48 Self Study and Practice • Add tags to News • Image gallery • Home page with panels • Events with Date filters (conditions, calender, previous events, future events etc) • Team page • RSS feeds with views • Module assignment: change “Apply” in views filter to “Search”