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 created an additional settings page that lets the administrator select the default template for each content type. I was able to use this to set up RSVPs for Events.
Comment | File | Size | Author |
---|---|---|---|
#9 | webform_template-allowed_and_defaults-1430752-9-D7-4x.patch | 10.24 KB | xumepadismal |
webform_template_defaults.patch | 4.87 KB | jlyon |
Comments
Comment #1
rv0 CreditAttribution: rv0 commentedPatch has some coding style issues
is one of them
Ideally I would love to have a matrix style config that allows you to set one or more source types per destination type
(sorry , formatting will probably be ruined)
So setting this to needs work as it doesn't really have any use committing this when it will have to be rewritten later on.
Comment #2
abtm CreditAttribution: abtm commentedJust realised that I need the "template" or "default" feature for the webform module and went across #1689434: Six overlapping modules. Decided to try webform_template. After enabling the module and making the settings, I have two template options in the node (destination) creating form. (As I have only created two webform nodes.) I am wondering when I have 100 nodes of this type, when creating the 101st node would I have 100 template options in the select box?
Comment #3
rv0 CreditAttribution: rv0 commented@abtm
This seems only slightly on topic to this feature request.
Use a "template only" content type or custom coding (hook_form_alter) for your usecase.
Please create a seperate issue if you need more help with this, this is out of scope for this issue.
Comment #4
SGhosh CreditAttribution: SGhosh commentedThanks a lot for the patch. I am using version 7.x-1.2. Works awesome with a few minor changes -
Comment #5
rv0 CreditAttribution: rv0 commented@SGhosh
Why are you removing that function?
And please, use patch files instead of manually inserting large texts in the issue queue
Comment #6
SGhosh CreditAttribution: SGhosh commented@rv0
yep sorry about that. I found out later that function is being called somewhere else too.
And about not submitting a patch, following how patches area created for drupal modules I was supposed to first clone the project, however I didn't find one for version 7.x-1.2 so went ahead and pasted the code here. Will be more careful from next time though. Thanks.
Comment #7
rv0 CreditAttribution: rv0 commented@SGhosh
When writing patches always use latest dev. http://drupal.org/project/webform_template/git-instructions
Always provide some explanation about what and why you changed things.
In any case, this patch wont make it for the reasons stated earlier (grid approach)
Comment #7.0
rv0 CreditAttribution: rv0 commentedgrammar
Comment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthe patch no longer applies cleanly to Sept 15, 2015 - 7.x-4.0 version.
https://www.drupal.org/node/2568943
Comment #9
xumepadismal CreditAttribution: xumepadismal as a volunteer commentedI think we need to switch to the recommended channel…
This patch is an attempt to address #1. Clear caches is required after patching. Please review