This thread is a discussion for the wiki article: Export Entries
   
 
Export Entries
Posted: 07 February 2010 05:12 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  10-02-2002

In EE v2.0.1pb01, I’ve modified the code on this page to get it working on my Beta build.

The index template within the export template group became:

{exp:channel:entries channel="default_site" limit="999" rdf="off"}
TITLE
: {title}
AUTHOR
: {author}
DATE
: {entry_date format='%m/%d/%Y %h:%i:%s %A'}
STATUS
: publish
ALLOW COMMENTS
: 0
CONVERT BREAKS
: 0
{categories}CATEGORY
: {category_name}{/categories}
-----
BODY:
{body}
-----
EXTENDED BODY:
{extended}
-----
{embed="export/comments" the_entry_id="{entry_id}"}
--------
{/exp:channel:entries}

In the comments template within the same export template group, I used the following, but I did not enable PHP in the template since there is no PHP in the updated code.

{exp:comment:entries channel="default_site" entry_id="{embed:the_entry_id}" sort="asc"}COMMENT:
AUTHOR: {name}
URL
: {url}
DATE
: {comment_date format="%m/%d/%Y %h:%i:%s %A"}
{comment}
----- {/exp:comment:entries}

I followed the same steps outlined mentioned in the original instructions beyond that, ie viewing the index page and viewing source and saving that.

Note: I’ve updated the above code since the original submission. In my initial attempt to import my entries, it failed. I looked through the original spec for the Movable Type Export and there were some inconsistent values in the previous code. Even after using the above code, I did a find and replace to remove some extra line returns. I successfully imported roughly 150 entries using it.

 Signature 

———-
work: jmx2.com
blog: SuperGeekery
twitter: johnmorton
email:

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120304 Total Logged-in Users: 79
Total Topics: 126423 Total Anonymous Users: 33
Total Replies: 664846 Total Guests: 390
Total Posts: 791269    
Members ( View Memberlist )