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.
Problem/Motivation
YAML form submissions paths should include the YAML form id.
Proposed resolution
This would allow blocks to target to a specific YAML form's submissions. For example, this change would allow an evaluation form to be appended to a YAML form's submission.
The below route...
/admin/structure/yamlform/results/manage/{yamlform_submission}
...will be changed to...
/admin/structure/yamlform/manage/{yamlform}/submission/{yamlform_submission}
Remaining tasks
- Update routes.yml
- Update YamlForm::urlRouteParameters($rel) to include yamlform id.
- Update \Drupal\yamlform\YamlFormRequest::getRouteParameters to include YAML form ID.
- Update submission information and navigation.
- Fix broken tests.
Development Notes
- Branch Name: 2773729-add-yamlform-id-to-submission-paths
- Commit message: Issue #2773729: Add YAML form ID to submission paths
Comment | File | Size | Author |
---|---|---|---|
#10 | Screen Shot 2016-07-31 at 4.35.22 PM.png | 152.74 KB | jrockowitz |
#6 | add_yaml_form_id_to-2773729-6.patch | 27.23 KB | jrockowitz |
#4 | add_yaml_form_id_to-2773729-3.patch | 21.74 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #9
kclarkson CreditAttribution: kclarkson commentedJust downloaded the most recent dev version of the module.
-Ran an update.php
-Cleared Cache
-Submitted a New submission
-Note: I am using the Application Templated form that comes with the module
URL to submission is still: admin/structure/yamlform/results/manage/11
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedI am seeing the new URL pattern. See the below screenshot.
Can you please try clearing your cache again?
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #12
kclarkson CreditAttribution: kclarkson commentedyes the url is working now. Sorry for the issue change :)
Comment #13
jrockowitz CreditAttribution: jrockowitz as a volunteer commented