Skip to content

Commit 818b66b

Browse files
committed
Yet another commit
1 parent d4af067 commit 818b66b

34 files changed

Lines changed: 2073 additions & 1123 deletions

modules/os2forms_fordelingskomponent_examples/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Go to `/admin/structure/webform?category=Fordelingskomponent` to see the example
1212

1313
## Updating the examples
1414

15+
All example webforms have IDs that match the regular expressions `/^os2forms_fdk_/` or `/^o2f_fdk_/`, i.e. if you want
16+
to create a new example webform it must be have an ID like `os2forms_fdk_my_example`, say.
17+
1518
Run
1619

1720
``` shell
1821
drush os2forms_fordelingskomponent_examples:export-examples
1922
```
2023

21-
to update all example forms.
24+
to export all example webforms.
2225

2326
Test the newly exported config by reinstalling the `os2forms_fordelingskomponent_examples` module
2427

@@ -30,6 +33,6 @@ drush pm:install os2forms_fordelingskomponent_examples
3033
Alternatively, import a single webform, e.g.
3134

3235
``` shell
33-
drush config:set --input-format=yaml webform.webform.os2_fdk_kp_anmoding '?' - < config/install/webform.webform.os2_fdk_kp_anmoding.yml
34-
# drush config:get webform.webform.os2_fdk_kp_anmoding
36+
drush config:set --input-format=yaml webform.webform.os2forms_fdk_kp_anmoding '?' - < config/install/webform.webform.os2forms_fdk_kp_anmoding.yml
37+
# drush config:get webform.webform.os2forms_fdk_kp_anmoding
3538
```

modules/os2forms_fordelingskomponent_examples/config/install/webform.webform.os2_fdk_kp_anmoding.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,20 @@ handlers:
263263
conditions: {}
264264
weight: 0
265265
settings:
266-
sf2900:
266+
distribution_context:
267267
kle_emne: 01.01.01
268268
handling_facet: ""
269-
attachment_element: attachment
270269
brugervendt_noegle: "What is “Brugervendt nøgle”?"
271270
titel: "Your document"
272271
beskrivelse: "This is a very important document"
273272

273+
distribution_object:
274274
# distribution_type: JOURNALPOST
275275
# distribution_type: DOKUMENT
276276
distribution_type: FORMULAR
277277

278+
# attachment_element: attachment
279+
278280
xml_template: |
279281
<?xml version="1.0" encoding="UTF-8"?>
280282
<Anmodning xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@@ -310,16 +312,14 @@ handlers:
310312
conditions: {}
311313
weight: 0
312314
settings:
313-
sf2900:
315+
distribution_context:
314316
kle_emne: 01.01.01
315317
handling_facet: ""
316-
attachment_element: attachment
317318
brugervendt_noegle: "What is “Brugervendt nøgle”?"
318319
titel: "Your document"
319320
beskrivelse: "This is a very important document"
320321

321-
# distribution_type: JOURNALPOST
322-
# distribution_type: DOKUMENT
322+
distribution_object:
323323
distribution_type: FORMULAR
324324

325325
xml_template: |
@@ -356,16 +356,14 @@ handlers:
356356
conditions: {}
357357
weight: 0
358358
settings:
359-
sf2900:
359+
distribution_context:
360360
kle_emne: 01.01.01
361361
handling_facet: ""
362-
attachment_element: attachment
363362
brugervendt_noegle: "What is “Brugervendt nøgle”?"
364363
titel: "Your document"
365364
beskrivelse: "This is a very important document"
366365

367-
# distribution_type: JOURNALPOST
368-
# distribution_type: DOKUMENT
366+
distribution_object:
369367
distribution_type: FORMULAR
370368

371369
xml_template: |

0 commit comments

Comments
 (0)