{"id":311,"date":"2006-09-23T13:04:00","date_gmt":"2006-09-23T13:04:00","guid":{"rendered":"http:\/\/new.tola.me.uk\/blog\/2006\/09\/23\/drupal-blogroll-and-blog-import-from-livejournal\/"},"modified":"2006-09-23T13:04:00","modified_gmt":"2006-09-23T13:04:00","slug":"drupal-blogroll-and-blog-import-from-livejournal","status":"publish","type":"post","link":"https:\/\/tola.me.uk\/blog\/2006\/09\/23\/drupal-blogroll-and-blog-import-from-livejournal\/","title":{"rendered":"Drupal blogroll and blog import from LiveJournal"},"content":{"rendered":"<p>I need some help with Drupal&#8230;<\/p>\n<h3>Blogroll Friends list Block<br \/><\/h3>\n<p>This is the simpler of the two problems. I use the Drupal aggregator module to create a blogroll of blogs I read at http:\/\/tola.me.uk\/friends. On the front page of my website I&#8217;d like a &#8220;friends&#8221; block on the right hand side which lists the names of all the feeds in my blogroll with a link to respective websites. So far I can only see how to make a block which displays recent blogroll posts.<\/p>\n<p>Do I need to write my own PHP block to do this (I&#8217;ve found a function in the aggregator API which does something similar and I&#8217;ve nearly figured out how to tweak it) or can I do it more simply with a view which presents itself as a block? Surely this is a pretty standard thing to want to do, list feed sources.<\/p>\n<h3>Import Blog from LiveJournal<\/h3>\n<p>I&#8217;ve asked this on Drupal forums but had no reply yet, so I thought I&#8217;d throw it to a wider audience.<br \/>I&#8217;d like to import nearly three years worth (219 entries) of my LiveJournal to my new Drupal powered blog. LiveJournal allow you to export entries as either CSV or XML files, a month of entries per file (that&#8217;s 33 files for me).<\/p>\n<p>There is a page entitled <a href=\"http:\/\/drupal.org\/node\/1257\" rel=\"nofollow\">Migrating from LiveJournal<\/a> on the Drupal web site, but I think it may be slightly out of date. It offers three methods of migration:<\/p>\n<p>1) Use IFRAMEs &#8211; not really what I want<br \/> 2) Using <a href=\"http:\/\/drupal.org\/project\/node_import\" rel=\"nofollow\">Node Import<\/a> &#8211; by using an RSS feed it says that the actual content will still be hosted at LiveJournal, which isn&#8217;t what I want. I think it&#8217;s also now out of date because contrary to what it says, RSS feeds are now available to all LiveJournal users.<br \/> 3) Use the Livejournal Module to import the raw data into Drupal &#8211; This sounds like the best method. Unfortunately, the module is no longer available or maintained.<\/p>\n<p>I&#8217;m now thinking that my best option is to use the <a href=\"http:\/\/drupal.org\/project\/node_import\" rel=\"nofollow\">Node Import<\/a> module to try and import the CSV or XML files, but I have no idea how to do it and the documentation for that module doesn&#8217;t mention supporting the blog post content type. Alternatively, the new <a href=\"http:\/\/drupal.org\/project\/importexportapi\" rel=\"nofollow\">Import\/Export API<\/a> module might do this?<\/p>\n<p>If I can use the Node Import module, What XML format do the blog posts need to be in to be imported and what date format do they need to use?<\/p>\n<p> I don&#8217;t think I will be able to preserve all LiveJournal features like &#8220;tags&#8221; because they don&#8217;t appear in the exported XML files, but I&#8217;d quite like to convert all instances of a custom [lj user=&#8221;joebloggs&#8221;] tag with an [a href=&#8221;http:\/\/joebloggs.livejournal.com&#8221;] tag. This makes me wonder if I should somehow utilize the RSS feed of the blog which already has this conversion done, as well as other useful things like a link to the original LiveJournal post and comments.<\/p>\n<p>If I have to write my own module to do this in Drupal 4.7, might this be a good use of XSLT? I&#8217;ve been meaning to play with that for a while.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I need some help with Drupal&#8230; Blogroll Friends list Block This is the simpler of the two problems. I use the Drupal aggregator module to create a blogroll of blogs I read at http:\/\/tola.me.uk\/friends. On the front page of my website I&#8217;d like a &#8220;friends&#8221; block on the right hand side which lists the names &hellip; <a href=\"https:\/\/tola.me.uk\/blog\/2006\/09\/23\/drupal-blogroll-and-blog-import-from-livejournal\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Drupal blogroll and blog import from LiveJournal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-technology"],"_links":{"self":[{"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":0,"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"wp:attachment":[{"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tola.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}