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.
I am using version 7.x-1.1 to convert some old nodes (type: project) to the new node type (new_project). The old content type only had a body field, a file upload and some taxonomy fields. I created a template for the conversion from "project" to "new_project" and assigned the fields to their new equivalents.
However, if I go to /node/123/convert and choose "new_project" as new bundle, on the next page all field options are set to discard (except for body field). What am I missing to have the other fields also select the template values?
I cleared Drupal and APC cache several times to no avail.
Comment | File | Size | Author |
---|---|---|---|
#3 | node_convert_with_template.zip | 1.13 KB | johaziel |
Comments
Comment #1
tea.time CreditAttribution: tea.time commentedI believe the template settings are only used if you go through the content listing (/admin/content). Select some nodes, and under Update Options choose "Convert template: [your template name]".
Comment #2
broonThanks for your clarification. I created a view and added VBO to do it. Then, the template is used as well (and working fine btw.). However, I still think it would be nice to have the template also working on single node conversion. Marking it as a feature request.
Comment #3
johaziel CreditAttribution: johaziel commentedHi
I made this small module to convert directly a node with a template
1. create your template for your content type
2. create a custom block, pane, or evrything else for your content type with a link like this :
/node/NODE_NID/convert-with-template/THE_TEMPLATE_ID
Make carreful if you want to edit your template because you have to make a new one so the ID will change
Jo
Comment #4
louisnagtegaal CreditAttribution: louisnagtegaal commentedIs there any progress on this? It seems rather odd to use a extra module for something that I feel should be default functionality.
Comment #5
DC_Marc CreditAttribution: DC_Marc commentedTried the module. Think it actually works. Either way, I agree this should be in Node_Convert by default.
Comment #6
alex.87 CreditAttribution: alex.87 commentedAny solution on this yet?