When you export a node convert template in ... say a Feature, when the feature is enabled, the node convert template is not listed in the advanced action configuration "Template" form field. I looked at the code and this is because it's looking directly at the node_convert_templates table and has no idea about any of the CTools exported templates.
The advanced actions is using the "nctid" primary key as the index value for the template to use, which makes sense except the exported templates do not have this key. It would seem that the UUID module could be used to create this unique ID then node_convert_convert_action_form() could use node_convert_load_all_templates() to list exported node convert templates as well as ones existing only in the database.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix-2358179-show-exported-templates.patch | 783 bytes | shadysamir |
Comments
Comment #1
shadysamir CreditAttribution: shadysamir commentedThis patch replaces direct database query with node_convert_load_all_templates() in node_convert_convert_action_form
Comment #2
shadysamir CreditAttribution: shadysamir commentedComment #3
Derimagia CreditAttribution: Derimagia at Mindgrub Technologies commentedWorks for me. Without this, node convert templates loaded from features are unable to be converted to. This is a major issue.
Comment #4
JakeRogers CreditAttribution: JakeRogers commentedLine numbers are incorrect and patch does NOT work...at least for me!
Comment #5
jennypanighetti CreditAttribution: jennypanighetti commentedThe patch applied for me, but re-creating the Feature still did not make the templates editable or act as actions. I had to manually copy the INSERT statements from the `node_convert_templates` and `actions` tables.