EngineSummit 2010
1Importing to EE via DataGrab
Importing to
EE2 via
DataGrab
EngineSummit 2010
2Importing to EE via DataGrab
Old School Way
MT Export Format
MT IMPort UTility
EngineSummit 2010
5Importing to EE via DataGrab
New School Way
ANDREW WEAVER’s DATAGRAB
http://brandnewbox.co.uk/products/...
EngineSummit 2010
6Importing to EE via DataGrab
Features:Import data VIA RSS/ATOM, CSV & XML
Map data values to a channel’...
EngineSummit 2010
7Importing to EE via DataGrab
You need:A little PHPmyadmin exporting Know-HoW
understanding of RSS, XML,...
EngineSummit 2010
8Importing to EE via DataGrab
EE1 to EE2RSS content type
EngineSummit 2010
9Importing to EE via DataGrab
...
{exp:weblog:entries weblog="{master_weblog_name}" limit="999"
rdf="off...
EngineSummit 2010
10Importing to EE via DataGrab
<content:encoded><![CDATA[{body}]]></content:encoded>
Allow HTML or Not A...
EngineSummit 2010
11Importing to EE via DataGrab
{title} = default title field
{body} = body (textarea or wygwam or whatev...
EngineSummit 2010
12Importing to EE via DataGrab
Create proper
templates,
setup site, etc.
Import Types
Settings
http://domain.com/rss/
EngineSummit 2010
17Importing to EE via DataGrab
That's it!
EngineSummit 2010
18Importing to EE via DataGrab
Wordpress to
EE2 EntriesXML content type
WP's native export tool
EngineSummit 2010
20Importing to EE via DataGrab
<item>
<title>Title Content</title>
<link>http://yourdomain.com/?p=2</lin...
Path = Tags that lead to main repeating entry
Remember NOT to have trailing slash
Comments!
... currently for XML entries only
EngineSummit 2010
23Importing to EE via DataGrab
That's it!
EngineSummit 2010
24Importing to EE via DataGrab
Gallery
Module to
Channels
creates an exp_gallery_entries.csv file
upload this somewhere accessible by a browser on your server
EngineSummit 2010
26Importing to EE via DataGrab
"2";"1";"1";"3";"0";;;"filenameofsorts";".
jpg";"Title of Image";"Descrip...
EngineSummit 2010
27Importing to EE via DataGrab
Create a new channel called
“Gallery.” Create a new custom
field group ca...
EngineSummit 2010
28Importing to EE via DataGrab
{exp:channel:entries channel="gallery" limit="10" paginate="bottom" disab...
EngineSummit 2010
29Importing to EE via DataGrab
{exp:channel:entries channel="gallery" limit="1" disable="member_data|cat...
CSV Configuration Screen
EngineSummit 2010
32Importing to EE via DataGrab
Questions?
Importing to EE2 Using DataGrab
Importing to EE2 Using DataGrab
Importing to EE2 Using DataGrab
Importing to EE2 Using DataGrab
Importing to EE2 Using DataGrab
Importing to EE2 Using DataGrab
Upcoming SlideShare
Loading in …5
×

Importing to EE2 Using DataGrab

4,702 views

Published on

Sometimes we can't do a simple EE1 to EE2 upgrade.

Maybe you want a cleaner start but with the same entries.

Lea explains how, using Andrew Weaver's Data-Grab add-on, we can move our EE1 entries to EE2, how that process is similar from importing from other CMSs, and even how to export and import the Gallery module to channel entries.

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,702
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
27
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Importing to EE2 Using DataGrab

  1. 1. EngineSummit 2010 1Importing to EE via DataGrab Importing to EE2 via DataGrab
  2. 2. EngineSummit 2010 2Importing to EE via DataGrab Old School Way MT Export Format MT IMPort UTility
  3. 3. EngineSummit 2010 5Importing to EE via DataGrab New School Way ANDREW WEAVER’s DATAGRAB http://brandnewbox.co.uk/products/details/datagrab Commercial Add-on: £20.00
  4. 4. EngineSummit 2010 6Importing to EE via DataGrab Features:Import data VIA RSS/ATOM, CSV & XML Map data values to a channel’s custom fields Assign entries to an author Assign CATeGORIES to INDIVIDUAL ENTRIES Comment import!!!
  5. 5. EngineSummit 2010 7Importing to EE via DataGrab You need:A little PHPmyadmin exporting Know-HoW understanding of RSS, XML, or CSV familiarity with EE2 interface familiarity with EE2 templates & tags
  6. 6. EngineSummit 2010 8Importing to EE via DataGrab EE1 to EE2RSS content type
  7. 7. EngineSummit 2010 9Importing to EE via DataGrab ... {exp:weblog:entries weblog="{master_weblog_name}" limit="999" rdf="off" dynamic_start="on" disable="member_data|trackbacks"} <item> <title>{exp:xml_encode}{title}{/exp:xml_encode}</title> <link>{exp:xml_encode}{title_permalink="weblog/"}{/exp:xml_en- code}</link> <description>{exp:xml_encode}{body}{/exp:xml_encode}</descrip- tion> <dc:subject>{exp:xml_encode}{categories backspace="1"}{catego- ry_name}, {/categories}{/exp:xml_encode}</dc:subject> <content:encoded><![CDATA[{body}]]></content:encoded> <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</ dc:date> </item> {/exp:weblog:entries} ... RSS Template within EE1
  8. 8. EngineSummit 2010 10Importing to EE via DataGrab <content:encoded><![CDATA[{body}]]></content:encoded> Allow HTML or Not Allow...? ...depends on final EE2 content field type
  9. 9. EngineSummit 2010 11Importing to EE via DataGrab {title} = default title field {body} = body (textarea or wygwam or whatever) {gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"} = proper entry date Create channel & custom fields within EE2 that correspond to original
  10. 10. EngineSummit 2010 12Importing to EE via DataGrab Create proper templates, setup site, etc.
  11. 11. Import Types Settings http://domain.com/rss/
  12. 12. EngineSummit 2010 17Importing to EE via DataGrab That's it!
  13. 13. EngineSummit 2010 18Importing to EE via DataGrab Wordpress to EE2 EntriesXML content type
  14. 14. WP's native export tool
  15. 15. EngineSummit 2010 20Importing to EE via DataGrab <item> <title>Title Content</title> <link>http://yourdomain.com/?p=2</link> <pubDate>Tue, 04 Nov 2003 02:42:17 +0000</pubDate> <dc:creator><![CDATA[Ana]]></dc:creator> <category><![CDATA[Uncategorized]]></category> <category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category> <guid isPermaLink="false">http://yourdomain.com/?p=2</guid> <description></description> <content:encoded><![CDATA[Blog post content, blah blah blah]]></content:encoded> <excerpt:encoded><![CDATA[]]></excerpt:encoded> <wp:post_id>2</wp:post_id> <wp:post_date>2003-11-03 18:42:17</wp:post_date> <wp:post_date_gmt>2003-11-04 02:42:17</wp:post_date_gmt> <wp:comment_status>open</wp:comment_status> <wp:ping_status>open</wp:ping_status> <wp:post_name>this-is-the-url-title</wp:post_name> <wp:status>draft</wp:status> <wp:post_parent>0</wp:post_parent> <wp:menu_order>0</wp:menu_order> <wp:post_type>post</wp:post_type> <wp:post_password></wp:post_password> <wp:is_sticky>0</wp:is_sticky> <wp:comment> <wp:comment_id>2</wp:comment_id> <wp:comment_author><![CDATA[ Comment Person's Name ]]></wp:comment_author> <wp:comment_author_email>comment_author@gmail.com</wp:comment_author_email> <wp:comment_author_url>http://commentersdomain.com/</wp:comment_author_url> <wp:comment_author_IP>24.65.75.137</wp:comment_author_IP> <wp:comment_date>2003-11-03 11:51:36</wp:comment_date> <wp:comment_date_gmt>0000-00-00 00:00:00</wp:comment_date_gmt> <wp:comment_content><![CDATA[ This is sample comment content ]]></wp:comment_content> <wp:comment_approved>1</wp:comment_approved> <wp:comment_type></wp:comment_type> <wp:comment_parent>0</wp:comment_parent> <wp:comment_user_id>0</wp:comment_user_id> </wp:comment> </item>
  16. 16. Path = Tags that lead to main repeating entry Remember NOT to have trailing slash
  17. 17. Comments! ... currently for XML entries only
  18. 18. EngineSummit 2010 23Importing to EE via DataGrab That's it!
  19. 19. EngineSummit 2010 24Importing to EE via DataGrab Gallery Module to Channels
  20. 20. creates an exp_gallery_entries.csv file upload this somewhere accessible by a browser on your server
  21. 21. EngineSummit 2010 26Importing to EE via DataGrab "2";"1";"1";"3";"0";;;"filenameofsorts";". jpg";"Title of Image";"Description of what's happening aka the caption."; ;;;;;;"1481";"1252";"89";"75";"355" ;"300";"o";"1191974040";"2010-09-25 07:53:24";"n";"0";"0";"0";"183"
  22. 22. EngineSummit 2010 27Importing to EE via DataGrab Create a new channel called “Gallery.” Create a new custom field group called “Gallery Custom Fields.” The custom fields you need to create are: gallery-old-filename – Text field (select no formatting) gallery-image – File field gallery-description – Textarea field (select no formatting)
  23. 23. EngineSummit 2010 28Importing to EE via DataGrab {exp:channel:entries channel="gallery" limit="10" paginate="bottom" disable="member_ data|categories|trackbacks"} <div class="thumb"> {if gallery-old-filename} {exp:imgsizer:size src="/gallery/{gallery-old-filename}.jpg" width="100" height="75"} <a href="{permalink='gallery/'}"><img src="{sized}" width="{width}" height="{height}" title="{title}" /></a> {/exp:imgsizer:size} {if:else} {exp:imgsizer:size src="{gallery-image}" width="100" height="75"} <a href="{permalink='gallery/'}"><img src="{sized}" width="{width}" height="{height}" title="{title}" /></a> {/exp:imgsizer:size} {/if} <h3>{title}</h3> </div> {paginate} <p class="paginate"> <span class="pagecount">Page {current_page} of {total_pages} pages</span> {pagina- tion_links} </p> {/paginate} {/exp:channel:entries} Thumbnail/Index Template
  24. 24. EngineSummit 2010 29Importing to EE via DataGrab {exp:channel:entries channel="gallery" limit="1" disable="member_data|categories|pag ination|trackbacks"} {if gallery-old-filename} <img src="/gallery/{gallery-old-filename}.jpg" width="{width}" height="{height}" title="{title}" /> {if:else} <img src="{gallery-image}" width="{width}" height="{height}" title="{title}" /> {/if} <h3>{title}</h3> {if gallery-description}<p>{gallery-description}</p>{/if} {/exp:channel:entries} Individual Image Template
  25. 25. CSV Configuration Screen
  26. 26. EngineSummit 2010 32Importing to EE via DataGrab Questions?

×