大規模Drupal 7フォーラムの移行前評価

これを見つけました。

BBCodeタグをMarkdownに置き換えるなど、一連の正規表現ベースの変換を適用します。

これは2016年に最後に更新されたもので、まだ関連性のあるオプションかどうかはわかりません。


これはまだ関連性がありますか? Drupalインポータスクリプトでは、次のようなコードが見られます。

 create_posts(results, total: total_count, offset: offset) do |row|
        topic_mapping = topic_lookup_from_imported_post_id("nid:#{row['nid']}")
      end
 def create_permalinks
    puts '', 'creating permalinks...'

    Topic.listable_topics.find_each do |topic|
      begin
        tcf = topic.custom_fields
        if tcf && tcf['import_id']
          node_id = tcf['import_id'][/nid:(\d+)/, 1]
          slug = "/topic/#{node_id}"
          Permalink.create(url: slug, topic_id: topic.id)
        end
「いいね!」 1