Ich bin gerade auf Folgendes gestoßen:
Eine Reihe von regexp-basierten Transformationen anwenden, wie z. B. das Ersetzen von BBCode-Tags durch Markdown
Es wurde zuletzt 2016 aktualisiert, ich bin mir nicht sicher, ob es noch eine relevante Option ist.
Ist das noch relevant? Im Drupal-Importer-Skript sehe ich Code wie:
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 „Gefällt mir“