SlideShare una empresa de Scribd logo
1 de 48
Descargar para leer sin conexión
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”

Más contenido relacionado

Destacado

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
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Más 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
 

Más 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
 

Último

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
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 

Último (20)

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
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 

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”