- π¨π¦Canada _randy
Bad form posting to a closed thread, however, there's been zero documentation that I can find that gives a really good example on how to use YAML Content module for importing a config page.
This is an example for those who come across this issue queue item.
I have a Config Page with a couple of Viewfield fields on it used as an admin page to show some live data. Pretty ubiquitous use of a config page.
Here's what I've done to make this work:
1. install the YAML Content module ( https://www.drupal.org/project/yaml_content β )
2. the custom module I have written has a /content folder within it.
3. I created the following yml file to populate a config page that has 2 viewfields on it. Named the yml file admin_dashboard.content.yml. The contents of the yml file is:
- entity: config_pages field_import_table_management: - target_id: admin_import_data display_id: block_1 langcode: und delta: 0 arguments: '' items_to_display: '' field_team_listing: - target_id: admin_listing display_id: block_1 langcode: und delta: 0 arguments: '' items_to_display: ''
I then import this via Drush like this:
drush yaml-content-import-module mymodule
where 'mymodule' is the custom module with the /content folder within it.
Hope this helps others so they're not fumbling around as I did for a few hours.