Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Drupal Camp Atlanta 2015 - No Code Content Migration
1. No Code Content Migration
Hector Iribarne @hectoriribarne
Track: Site Building
Level: Intermediate
Drupalcamp Atlanta | October 16-17, 2015
Kennesaw State University Conference Center
3333 Busbee Drive | Kennesaw, GA 30144
2. @hectoriribarne
Hector Iribarne (iribarne.com)
Drupal Site Architect & Developer
(since 2007)
Broward Drupal Users Group co-founder
(since 2010)
iribarne on Drupal.org and IRC
Currently working on Contentin and Contentout
(sandbox modules)
#DCATL
3. @hectoriribarne #DCATL
Prime Focus of Presentation:
Contentin module (for site builders)
● The Contentin module is at the core of the “No Code Content
Migration” approach for getting content into Drupal without
writing any code (leverages the Migrate module)
● The module is targeted for site builders (two-click import):
○ One click to dynamically register migrations from a CSV
file (Contentin module at work)
○ Second click to import registered migration (Migrate module
at work)
● Contentin sandbox:
https://www.drupal.org/sandbox/iribarne/2461615
○ git clone --branch 7.x-1.x http://git.drupal.org/sandbox/iribarne/2461615.git contentin
5. @hectoriribarne
DB
Simple CSV files
[(h)field,
(c)single-value fields]
Site 2
(D7)
Site 1
(D7)
Traditional “Code Approach”: No Code Content Migration:
Migrate
Code
(not covered)
Migrate Code
(Appendix A)
Hierarchical CSV
files
[(mh)field:subfield,
(mc)multi-value fields]
One-click
Contentout
migr8csv2article
migr8csv2page
1 2
mh
mc
mc
mc
h
c
c
c
Legend:
(h) header
(c) content
(mh) multi-value header
(mc) multi-value content
Modules
Demo number
#DCATL
Two-clicks
Contentin
Presentation in one slide
One file per content type
1
9. Steps to creating Site 1
(Create CSV files with
Contentout)
(module content out)
@hectoriribarne #DCATL
10. @hectoriribarne
Get the Contentout module from the Drupal sandbox:
● cd sites/all/modules/custom
● git clone --branch 7.x-1.x http://git.drupal.
org/sandbox/iribarne/2461613.git contentout
● Enable the Contentout module
● Go to Contentout on the admin menu: Configuration ->
Content authoring -> Content out
#DCATL
18. @hectoriribarne
Set-up the basics from contib for Site2:
● cd sites/all/modules
● mkdir custom
● mkdir contrib
● cd contrib
● drush dl module_filter admin_menu migrate
bundle_copy taxonomy_csv;drush en -y module_filter
admin_menu migrate migrate_ui bundle_copy
taxonomy_csv;drush dis -y overlay toolbar
#DCATL
19. @hectoriribarne
Copy Content Types and Taxonomies:
● Use the Bundle Copy module to copy your content types
over from Site1 to Site2
● Use the Taxonomy CSV module to copy your
taxonomies over from Site1 to Site2
#DCATL
20. @hectoriribarne
Get the Contentin module from the Drupal sandbox:
● Copy the CSV files from Site1 to Site2 (e.g. /data dir)
● cd sites/all/modules/custom
● git clone --branch 7.x-1.x http://git.drupal.
org/sandbox/iribarne/2461615.git contentin
● Enable the Contentin module
● Go to Contentout on the admin menu: Configuration ->
Content authoring -> Content in
#DCATL
29. @hectoriribarne
Current Focus -> Contentin module for Drupal 8 (work in progress):
Site 2
(D8)
Site 1
(D7)
Hierarchical CSV
files
[(mh)field:subfield,
(mc)multi-value fields]
One-click
D7 Contentout
1 2
mh
mc
mc
mc
Two-clicks
D8 Contentin
31. http://iribarne.com/contact
If you liked my presentation, follow
me on Twitter: @hectoriribarne
Go Fish:Details:
Hector
Iribarne
d.o. username:
iribarne
http://certifiedtorock.com/u/192646
#DCATL
33. Appendix A
Hector Iribarne @hectoriribarne
Drupalcamp Atlanta | October 16-17, 2015
Kennesaw State University Conference Center
3333 Busbee Drive | Kennesaw, GA 30144
41. @hectoriribarne
Set-up the basics from contib for Site1:
● cd sites/all/modules
● mkdir custom
● mkdir contrib
● cd contrib
● drush dl module_filter admin_menu migrate
bundle_copy taxonomy_csv;drush en -y module_filter
admin_menu migrate migrate_ui bundle_copy
taxonomy_csv;drush dis -y overlay toolbar
#DCATL
42. @hectoriribarne
Set-up the basics for custom:
● Create a data directory under the files folder
● Place CSV files article.csv and page.csv in the
sites/all/default/files/data directory
● Place custom modules migr8csv2article and
migr8csv2page in the sites/all/modules/custom
directory and enable the modules
#DCATL