Skip to Content

blogspot migration templates

Alaa's picture

this simple blogger template dumps your blogspot content and comments data in a php array structure, I'll soon turn this into a migrate to drupal script


< ?php 
$item=array();
< Blogger>
$iid = '< $BlogItemNumber$>';

$item[$iid]['title']='< $BlogItemTitle$>';
$item[$iid]['body']='< $BlogItemBody$>';
$item[$iid]['date']='< $BlogItemDateTime$>';
$item[$iid]['number']='< $BlogItemNumber$>';
$item[$iid]['permalink']='< $BlogItemPermalinkURL$>';
$item[$iid]['comment']=array();

< BlogItemComments>
$cid='< $BlogCommentNumber$>';

$item[$iid]['comment'][$cid]['number']='< $BlogCommentNumber$>';
$item[$iid]['comment'][$cid]['body']='< $BlogCommentBody$>';
$item[$iid]['comment'][$cid]['author']='< $BlogCommentAuthor$>';
$item[$iid]['comment'][$cid]['date']='< $BlogCommentDateTime$>';
< /BlogItemComments>
< /Blogger>
?>

<pre>
< ?php var_dump($item) ?>
</pre>

Comments

whirlpool's picture

cool

this probably better the csv idea


Pronco's picture

blogger to drupal

Yeah sure no one has done it already?

Never used it but it might help you if you can get your blogger stuff into xml format

it might help you write a module to import from blogger


I used to be indecisive .. but now I'm not so sure

Alaa's picture

I don't like the two steps idea

I don't like the two steps idea.

as for import module, it does not import comments as far as I can tell, comments need to be added immediatly after the node_save() call since node_save() returns the nid.

Alaa


"i`m feeling for the 2nd time like alice in wonderland reading el wafd"

ikhnaton2's picture

Import solution with the comments

I'll test it on my own local drupal and give u the feedback soon.

Rami Sedhom

ikhnaton2's picture

el 3afarit

Is there ghosted in this thread coz I'm receiving many emails telling me that this thread had been updated while it's not!!!!! WOOOOOOOOOH ;D

MSameer's picture

Alaa disabled [mod_security|h

I'm getting them as well

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | blog