Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment looks like it didn't change from d5 to d6, so the comment.inc from d6 can be copied to d5 with basically no modification. Patch attached.
Menu looks harder. There was a major change from d5 to d6, and it's easy to understand why - the d5 version looks pretty archaic... I will work on it, and see if I can come up with a patch.
Comment | File | Size | Author |
---|---|---|---|
#6 | d2d_menu-1657876-6.patch | 3.81 KB | naught101 |
migrate_d2d_d5_comment.patch | 1.59 KB | naught101 |
Comments
Comment #1
mikeryanComment #2
mikeryanCommitted, thanks!
Comment #3
naught101 CreditAttribution: naught101 commentedThat was only part of it. Rejigging. I have a working menu patch, but it's a bit useless without a menu_links patch, which looks a lot harder. I'll see if I can get it cracked this weekend.
Comment #4
bmherold CreditAttribution: bmherold commentedAny updates here? Just started working on a D5->D7 migration and trying to learn the ropes, but it looks like a lot of D5 prebuilt objects are missing. Thanks!
Comment #5
naught101 CreditAttribution: naught101 commentedThe old menu system is excruciatingly complex, and not directly translatable to the new (post d6) system. I started work on this, but then accidentally delete it, so I'll have to start again. I'll see if I can get to it in the next few weeks, but if someone else wants a go, they should.
Comment #6
naught101 CreditAttribution: naught101 commentedThis is apparently a bit over my head, so I'm posting a half-arsed patch for review.
This is just for menus, not for menu links. For some reason, the
$row
object isn't being populated with themenu_name
property, (Undefined property: stdClass::$menu_name File /home/naught101/Documents/coding/drupal/d7/sites/all/modules/migrate/includes/migration.inc, line 785(file: /home/naught101/Documents/coding/drupal/d7/sites/all/modules/migrate/includes/migration.inc, line 785)
) so the preg_replace line fails. This line is there because there are no menu_name (machine name) values in d5, so I'm creating one from the menu title.Comment #7
mikeryan