I'm actually surprised this feature request doesn't already exist.

It would be pretty useful to have a way to a) create a machine name for each template mapping and b) export a mapping to code using features, eg using ctools export functionality.

CommentFileSizeAuthor
#4 support_ctools_export-1835886-4.patch1.77 KBtharna

Comments

nicholasthompson’s picture

This might not be THAT easy as the module uses an autoincrementing ID to store the templates. These are quite hard to export & import. It's better to use machine names...

dpfitzsi’s picture

+1 I need this functionality as well.

alison’s picture

Issue summary: View changes

+1 me too!

tharna’s picture

StatusFileSize
new1.77 KB

Just did a quick patch to add basic ctools export support.

dpfitzsi’s picture

Tested the patch and it commits cleanly on simplytest.me. I exported a test template with no trouble at all. Thanks Tharna for this, it's a very valuable contribution to node_convert!

tharna’s picture

No problem :)
I'll try to find some time to add proper machine names and the import part too.

dpfitzsi’s picture

That would be amazing. I look forward to the patch!

alcroito’s picture

Status: Active » Fixed

Support for ctools exportables has been added to the repo, a DEV version should be generated in about 12 hours.

Didn't use Tharna's patch though, because I was already in the progress of writing a more full-featured implementation.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.