SlideShare une entreprise Scribd logo
1  sur  25
Drupal 8: content
delivery tools
Oleksandr Medvediev
Oleksandr Medvediev
Drupal developer in ImageX
> 7 years in Drupal.
https://github.com/SanyokMedved
https://www.facebook.com/sanyok.medved
https://www.linkedin.com/in/medvedevalexandr
Reasons
Reasons
Agenda
Approaches to deal with content delivery
• Default Content
• Migrate
• Feeds
• Deploy
• Other tools
Default Content
Default content gives your module
and install profile a way to ship
default content as well as
configuration.
https://www.drupal.org/project/default_content
What can be done with it?
• Creating content using Drupal interface.
• Saving content into JSON files by entity type, entity id or as nodes with
references.
• Exporting content without writing excessive custom code.
• Using “drush only” way to export created content.
Default Content - pros and cons
Pros
• For creating content user doesn’t
need any programming skills.
• Using standard Drupal interface and
tools. Results can be seen right after
publishing.
• Very simple workflow.
• Minimum custom code.
• Saving referenced entities.
Cons
• Saving content in files in codebase as
part of custom module.
• Creating of duplicates of entities if
custom module is enabled again.
• Exported files with content are not
user-friendly (JSON/HAL).
• Nodes can’t be exported by bundle.
• Content can’t be rolled back.
Default Content. How to use?
Export single entity
$ drush default-content-export node 11
$ drush dce node 11
$ drush dce taxonomy_term 2 —
file=modules/custom/demo_module/content/taxonomy_te
rm/2.json
Default Content - Export referenced
content
Exports an entity and all its referenced entities
$ drush default-content-export-references node 123
$ drush dcer node 123
$ drush dcer node 123 —
folder=modules/custom/demo_module/content
Default Content - Structure of custom
module
Default Content - Additional modules
Default Content Deploy
This module (DCD) provides content deployment and allows development
and building sites without the need to transfer database between the sites.
$ drush dcdi —force-update
Default Content - Additional modules
Default content extra
Default Content Extra is a Drupal 8 only module that adds "extra",
experimental
functionality to the Default Content for D8 module
"path": {
"alias": “/my_awesome_path”
}
Drupal 8 Migrate
The Migrate API provides services for migrating data from a source system to
Drupal 8.
Drupal 8 Migrate - migration example
Drupal 8: Deploy - Content Staging
The Deploy module is designed to allow users to easily stage and preview
content for a Drupal site. Deploy automatically manages dependencies
between entities (like node references).
Drupal 8 - module Deploy
Drupal 8 - Deploy. How to use?
1.Enable Moderation on your Workspaces.
2.Add/Edit content in the Stage workspace.
3.Publish the Stage Workspace.
4.Content gets replicates to the Live Workspace.
Drupal 8 - Deploy. How it works?
Drupal 8 - Deploy. How it works?
Drupal 8 - Feeds
https://www.drupal.org/project/feeds
What can we done with it?
• One-off imports and periodic aggregation of content.
• Import or aggregate RSS/Atom feeds.
• Import or aggregate CSV files.
• Import or aggregate OPML files.
• Creating nodes, users, taxonomy terms or simple database records
from import.
• Granular mapping of input elements to Drupal content elements.
• Exportable configurations.
• Batched import for large files.
Drupal 8 - Feeds roadmap.
Current version - 8.x-3.0-alpha2.
Feeds 8.x roadmap:
• Investigate if Migrate components can be used in Feeds.
• Have an usable CSV parser, an usable XML parser and a working Feeds
Tamper module with at least one Tamper plugin.
• Support for huge data files.
• Chained imports.
• Rollback imports.
• Keep same content ids as in the source.
• Analytic report of import process.
Drupal 8 - Other tools
Recreate block content -
(https://www.drupal.org/project/recreate_block_content)
Fixed Block Content - https://www.drupal.org/project/fixed_block_content
Simple block - https://www.drupal.org/project/simple_block
Custom module
Summary
1. Analyze your task, define the aim and chose suitable tools and
workflow for it.
1. Less code solutions: Default Content, Deploy, Feeds.
1. Solutions requiring code: Migrate, Custom solutions.
1. One time operation, quick content preview, prototype, feature
testing with required content - Default content.
1. Content import on regular bases - Migration.
1. Additional content moderation workflow and different access
levels to it - Deploy content staging.
Questions?
Thank you for attention!

Contenu connexe

Tendances

DMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4ReportingDMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4Reporting
David Mann
 

Tendances (20)

Splitgraph: AHL talk
Splitgraph: AHL talkSplitgraph: AHL talk
Splitgraph: AHL talk
 
Sqlite
SqliteSqlite
Sqlite
 
U-SQL Learning Resources (SQLBits 2016)
U-SQL Learning Resources (SQLBits 2016)U-SQL Learning Resources (SQLBits 2016)
U-SQL Learning Resources (SQLBits 2016)
 
Coalmarch Duke presentation Scholars@duke
Coalmarch Duke presentation Scholars@dukeCoalmarch Duke presentation Scholars@duke
Coalmarch Duke presentation Scholars@duke
 
Math-Bridge Architecture
Math-Bridge ArchitectureMath-Bridge Architecture
Math-Bridge Architecture
 
e-Learning Delivery System : The Challenges
e-Learning Delivery System : The Challengese-Learning Delivery System : The Challenges
e-Learning Delivery System : The Challenges
 
App auto crud
App auto crudApp auto crud
App auto crud
 
Sqlite virtual-tables written in Perl
Sqlite virtual-tables written in PerlSqlite virtual-tables written in Perl
Sqlite virtual-tables written in Perl
 
U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)
 
Why CouchDB
Why CouchDBWhy CouchDB
Why CouchDB
 
Introduction to ArangoDB (nosql matters Barcelona 2012)
Introduction to ArangoDB (nosql matters Barcelona 2012)Introduction to ArangoDB (nosql matters Barcelona 2012)
Introduction to ArangoDB (nosql matters Barcelona 2012)
 
SilverStripe From a Developer's Perspective
SilverStripe From a Developer's PerspectiveSilverStripe From a Developer's Perspective
SilverStripe From a Developer's Perspective
 
DMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4ReportingDMann-SQLDeveloper4Reporting
DMann-SQLDeveloper4Reporting
 
Couch db
Couch dbCouch db
Couch db
 
Drupal Content Management System
Drupal Content Management SystemDrupal Content Management System
Drupal Content Management System
 
Introducing U-SQL (SQLPASS 2016)
Introducing U-SQL (SQLPASS 2016)Introducing U-SQL (SQLPASS 2016)
Introducing U-SQL (SQLPASS 2016)
 
Revision
RevisionRevision
Revision
 
Sql implementations
Sql implementationsSql implementations
Sql implementations
 
Asp folders and web configurations
Asp folders and web configurationsAsp folders and web configurations
Asp folders and web configurations
 
Introduction to SQLite: The Most Popular Database in the World
Introduction to SQLite: The Most Popular Database in the WorldIntroduction to SQLite: The Most Popular Database in the World
Introduction to SQLite: The Most Popular Database in the World
 

Similaire à Oleksandr Medvediev - Content delivery tools in Drupal 8.

Drupal module development
Drupal module developmentDrupal module development
Drupal module development
Rachit Gupta
 
Drupal: Reusing functionality
Drupal: Reusing functionalityDrupal: Reusing functionality
Drupal: Reusing functionality
Raymond Muilwijk
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
Lauren Roth
 
Linked Data Publishing with Drupal (SWIB13 workshop)
Linked Data Publishing with Drupal (SWIB13 workshop)Linked Data Publishing with Drupal (SWIB13 workshop)
Linked Data Publishing with Drupal (SWIB13 workshop)
Joachim Neubert
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
Drupalcon Paris
 

Similaire à Oleksandr Medvediev - Content delivery tools in Drupal 8. (20)

Drupal module development
Drupal module developmentDrupal module development
Drupal module development
 
Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7Taking your site from Drupal 6 to Drupal 7
Taking your site from Drupal 6 to Drupal 7
 
Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs Drupal Skils Lab 302Labs
Drupal Skils Lab 302Labs
 
Drupal: Reusing functionality
Drupal: Reusing functionalityDrupal: Reusing functionality
Drupal: Reusing functionality
 
Intro to Drupal Module Developement
Intro to Drupal Module DevelopementIntro to Drupal Module Developement
Intro to Drupal Module Developement
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
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
 
Drupal Overview For Techies
Drupal Overview For TechiesDrupal Overview For Techies
Drupal Overview For Techies
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
Drupal Migrations in 2018
Drupal Migrations in 2018Drupal Migrations in 2018
Drupal Migrations in 2018
 
Linked Data Publishing with Drupal (SWIB13 workshop)
Linked Data Publishing with Drupal (SWIB13 workshop)Linked Data Publishing with Drupal (SWIB13 workshop)
Linked Data Publishing with Drupal (SWIB13 workshop)
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Drupal_cubet seminar
Drupal_cubet seminarDrupal_cubet seminar
Drupal_cubet seminar
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...Building a Drupal Distribution using Features, Drush Make, Installation Profi...
Building a Drupal Distribution using Features, Drush Make, Installation Profi...
 
D7 as D8
D7 as D8D7 as D8
D7 as D8
 
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
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
 
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
 
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
 

Plus de DrupalCamp Kyiv

FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
DrupalCamp Kyiv
 

Plus de DrupalCamp Kyiv (20)

Speed up the site building with Drupal's Bootstrap Layout Builder
Speed up the site building with Drupal's Bootstrap Layout BuilderSpeed up the site building with Drupal's Bootstrap Layout Builder
Speed up the site building with Drupal's Bootstrap Layout Builder
 
Performance Monitoring with Google Lighthouse
Performance Monitoring with Google LighthousePerformance Monitoring with Google Lighthouse
Performance Monitoring with Google Lighthouse
 
Oleg Bogut - Decoupled Drupal: how to build stable solution with JSON:API, Re...
Oleg Bogut - Decoupled Drupal: how to build stable solution with JSON:API, Re...Oleg Bogut - Decoupled Drupal: how to build stable solution with JSON:API, Re...
Oleg Bogut - Decoupled Drupal: how to build stable solution with JSON:API, Re...
 
Acquia BLT for the Win, or How to speed up the project setup, development an...
Acquia BLT for the Win, or  How to speed up the project setup, development an...Acquia BLT for the Win, or  How to speed up the project setup, development an...
Acquia BLT for the Win, or How to speed up the project setup, development an...
 
Upgrading to Drupal 9
Upgrading to Drupal 9Upgrading to Drupal 9
Upgrading to Drupal 9
 
THE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REALTHE INTERNET OF THINGS IS GETTING REAL
THE INTERNET OF THINGS IS GETTING REAL
 
FRONT-END COMPONENTS IN DRUPAL THEME. "KAIZEN" - DRUPAL 8 THEME FROM SKILLD
FRONT-END COMPONENTS IN DRUPAL THEME. "KAIZEN" - DRUPAL 8 THEME FROM SKILLDFRONT-END COMPONENTS IN DRUPAL THEME. "KAIZEN" - DRUPAL 8 THEME FROM SKILLD
FRONT-END COMPONENTS IN DRUPAL THEME. "KAIZEN" - DRUPAL 8 THEME FROM SKILLD
 
DRUPAL AND ELASTICSEARCH
DRUPAL AND ELASTICSEARCHDRUPAL AND ELASTICSEARCH
DRUPAL AND ELASTICSEARCH
 
WHAT WE LEARNED FROM OPEN SOCIAL IN 3 YEARS, MOVING FROM AN AGENCY TO A PRODU...
WHAT WE LEARNED FROM OPEN SOCIAL IN 3 YEARS, MOVING FROM AN AGENCY TO A PRODU...WHAT WE LEARNED FROM OPEN SOCIAL IN 3 YEARS, MOVING FROM AN AGENCY TO A PRODU...
WHAT WE LEARNED FROM OPEN SOCIAL IN 3 YEARS, MOVING FROM AN AGENCY TO A PRODU...
 
Blackfire Workshop
Blackfire WorkshopBlackfire Workshop
Blackfire Workshop
 
DRUPAL 8 STORAGES OVERVIEW
DRUPAL 8 STORAGES OVERVIEWDRUPAL 8 STORAGES OVERVIEW
DRUPAL 8 STORAGES OVERVIEW
 
ONE MORE TIME ABOUT CODE STANDARDS AND BEST PRACTICES
ONE MORE TIME ABOUT CODE STANDARDS AND BEST PRACTICESONE MORE TIME ABOUT CODE STANDARDS AND BEST PRACTICES
ONE MORE TIME ABOUT CODE STANDARDS AND BEST PRACTICES
 
1-1 MEETING: STEP-BY-STEP-HOW-TO
1-1 MEETING: STEP-BY-STEP-HOW-TO1-1 MEETING: STEP-BY-STEP-HOW-TO
1-1 MEETING: STEP-BY-STEP-HOW-TO
 
UX DURING MODULE INSTALLATION AND CONFIGURATION
UX DURING MODULE INSTALLATION AND CONFIGURATIONUX DURING MODULE INSTALLATION AND CONFIGURATION
UX DURING MODULE INSTALLATION AND CONFIGURATION
 
SWITCHING FROM QA ENGINEER TO PROJECT MANAGER - LEVEL UP OR DOWN?
SWITCHING FROM QA ENGINEER TO PROJECT MANAGER - LEVEL UP OR DOWN?SWITCHING FROM QA ENGINEER TO PROJECT MANAGER - LEVEL UP OR DOWN?
SWITCHING FROM QA ENGINEER TO PROJECT MANAGER - LEVEL UP OR DOWN?
 
TECHNOLOGIES-POWERED WEB AND THE POST-BROWSER ERA
TECHNOLOGIES-POWERED WEB AND THE POST-BROWSER ERATECHNOLOGIES-POWERED WEB AND THE POST-BROWSER ERA
TECHNOLOGIES-POWERED WEB AND THE POST-BROWSER ERA
 
PROTECTED CONTENT: END-TO-END PGP ENCRYPTION FOR DRUPAL
PROTECTED CONTENT: END-TO-END PGP ENCRYPTION FOR DRUPALPROTECTED CONTENT: END-TO-END PGP ENCRYPTION FOR DRUPAL
PROTECTED CONTENT: END-TO-END PGP ENCRYPTION FOR DRUPAL
 
DRUPAL AUDITS MADE FASTR
DRUPAL AUDITS MADE FASTRDRUPAL AUDITS MADE FASTR
DRUPAL AUDITS MADE FASTR
 
FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
FROM DISTRO TO CUSTOM - HOW WE CREATE GREAT COMMUNITIES FOR EVERY ORGANIZATIO...
 
SEARCH API: TIPS AND TRICKS - FROM BEGINNING TO CUSTOM SOLUTIONS
SEARCH API: TIPS AND TRICKS - FROM BEGINNING TO CUSTOM SOLUTIONSSEARCH API: TIPS AND TRICKS - FROM BEGINNING TO CUSTOM SOLUTIONS
SEARCH API: TIPS AND TRICKS - FROM BEGINNING TO CUSTOM SOLUTIONS
 

Dernier

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
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

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...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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...
 

Oleksandr Medvediev - Content delivery tools in Drupal 8.

  • 1. Drupal 8: content delivery tools Oleksandr Medvediev
  • 2. Oleksandr Medvediev Drupal developer in ImageX > 7 years in Drupal. https://github.com/SanyokMedved https://www.facebook.com/sanyok.medved https://www.linkedin.com/in/medvedevalexandr
  • 5. Agenda Approaches to deal with content delivery • Default Content • Migrate • Feeds • Deploy • Other tools
  • 6. Default Content Default content gives your module and install profile a way to ship default content as well as configuration. https://www.drupal.org/project/default_content What can be done with it? • Creating content using Drupal interface. • Saving content into JSON files by entity type, entity id or as nodes with references. • Exporting content without writing excessive custom code. • Using “drush only” way to export created content.
  • 7. Default Content - pros and cons Pros • For creating content user doesn’t need any programming skills. • Using standard Drupal interface and tools. Results can be seen right after publishing. • Very simple workflow. • Minimum custom code. • Saving referenced entities. Cons • Saving content in files in codebase as part of custom module. • Creating of duplicates of entities if custom module is enabled again. • Exported files with content are not user-friendly (JSON/HAL). • Nodes can’t be exported by bundle. • Content can’t be rolled back.
  • 8. Default Content. How to use? Export single entity $ drush default-content-export node 11 $ drush dce node 11 $ drush dce taxonomy_term 2 — file=modules/custom/demo_module/content/taxonomy_te rm/2.json
  • 9. Default Content - Export referenced content Exports an entity and all its referenced entities $ drush default-content-export-references node 123 $ drush dcer node 123 $ drush dcer node 123 — folder=modules/custom/demo_module/content
  • 10. Default Content - Structure of custom module
  • 11. Default Content - Additional modules Default Content Deploy This module (DCD) provides content deployment and allows development and building sites without the need to transfer database between the sites. $ drush dcdi —force-update
  • 12. Default Content - Additional modules Default content extra Default Content Extra is a Drupal 8 only module that adds "extra", experimental functionality to the Default Content for D8 module "path": { "alias": “/my_awesome_path” }
  • 13. Drupal 8 Migrate The Migrate API provides services for migrating data from a source system to Drupal 8.
  • 14. Drupal 8 Migrate - migration example
  • 15. Drupal 8: Deploy - Content Staging The Deploy module is designed to allow users to easily stage and preview content for a Drupal site. Deploy automatically manages dependencies between entities (like node references).
  • 16. Drupal 8 - module Deploy
  • 17. Drupal 8 - Deploy. How to use? 1.Enable Moderation on your Workspaces. 2.Add/Edit content in the Stage workspace. 3.Publish the Stage Workspace. 4.Content gets replicates to the Live Workspace.
  • 18. Drupal 8 - Deploy. How it works?
  • 19. Drupal 8 - Deploy. How it works?
  • 20. Drupal 8 - Feeds https://www.drupal.org/project/feeds What can we done with it? • One-off imports and periodic aggregation of content. • Import or aggregate RSS/Atom feeds. • Import or aggregate CSV files. • Import or aggregate OPML files. • Creating nodes, users, taxonomy terms or simple database records from import. • Granular mapping of input elements to Drupal content elements. • Exportable configurations. • Batched import for large files.
  • 21. Drupal 8 - Feeds roadmap. Current version - 8.x-3.0-alpha2. Feeds 8.x roadmap: • Investigate if Migrate components can be used in Feeds. • Have an usable CSV parser, an usable XML parser and a working Feeds Tamper module with at least one Tamper plugin. • Support for huge data files. • Chained imports. • Rollback imports. • Keep same content ids as in the source. • Analytic report of import process.
  • 22. Drupal 8 - Other tools Recreate block content - (https://www.drupal.org/project/recreate_block_content) Fixed Block Content - https://www.drupal.org/project/fixed_block_content Simple block - https://www.drupal.org/project/simple_block Custom module
  • 23. Summary 1. Analyze your task, define the aim and chose suitable tools and workflow for it. 1. Less code solutions: Default Content, Deploy, Feeds. 1. Solutions requiring code: Migrate, Custom solutions. 1. One time operation, quick content preview, prototype, feature testing with required content - Default content. 1. Content import on regular bases - Migration. 1. Additional content moderation workflow and different access levels to it - Deploy content staging.
  • 25. Thank you for attention!

Notes de l'éditeur

  1. COVER 1 – A sample for the cover
  2. CONTENT 1 – A sample for the content page
  3. CONTENT 1 – A sample for the content page
  4. CONTENT 1 – A sample for the content page
  5. CONTENT 1 – A sample for the content page
  6. CONTENT 1 – A sample for the content page
  7. CONTENT 1 – A sample for the content page
  8. CONTENT 1 – A sample for the content page
  9. CONTENT 1 – A sample for the content page
  10. CONTENT 1 – A sample for the content page
  11. CONTENT 1 – A sample for the content page
  12. CONTENT 1 – A sample for the content page
  13. CONTENT 1 – A sample for the content page
  14. CONTENT 1 – A sample for the content page
  15. CONTENT 1 – A sample for the content page
  16. CONTENT 1 – A sample for the content page
  17. CONTENT 1 – A sample for the content page
  18. CONTENT 1 – A sample for the content page
  19. CONTENT 1 – A sample for the content page
  20. CONTENT 1 – A sample for the content page
  21. CONTENT 1 – A sample for the content page
  22. CONTENT 1 – A sample for the content page
  23. CONTENT 1 – A sample for the content page
  24. CONTENT 1 – A sample for the content page
  25. CONTENT 1 – A sample for the content page