Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config:export:content:type] Title field label setting not exported #3109

Closed
colans opened this issue Jan 19, 2017 · 4 comments · Fixed by #4083
Closed

[config:export:content:type] Title field label setting not exported #3109

colans opened this issue Jan 19, 2017 · 4 comments · Fixed by #4083

Comments

@colans
Copy link

colans commented Jan 19, 2017

Problem/Motivation

On running the drupal config:export:content:type command, deleting the content type, and then importing exported content type configuration, the title field label gets set to the default "Title" even though it was set to something else before export.

How to reproduce

  1. Create a content type from the Web UI.
  2. On the Edit form, change the Title field label setting from Title to Banana.
  3. Run drupal config:export:content:type to export it.
  4. Include it in your module's config/install directory.
  5. Delete the content type from the Web UI.
  6. Uninstall your module.
  7. Re-install it.
  8. Edit the newly created content type.
  9. Notice that the Title field label is set to Title instead of Banana.

Version info

  • Drupal version: 8.2.3
  • Console version: 1.0.0-rc14
  • Console Launcher version: 1.0.0-rc13

Solution

Include the missing core.base_field_override.node.CONTENT_TYPE.title.yml in the export as it doesn't seem to be included.

Workaround

Run drush cex -y, copy the file from there, and include it with your other YAML files for the content type.

@worthwhileindustries
Copy link

I can't even seem to get that far....? What am I doing wrong here. Why is it asking about a module??

root@e4411300c0fa:/var/www/html/web# ../vendor/bin/drupal config:export:content:type region
 Enter the module name [authorization]:
 > 

Version info

Drupal version: 8.2.6
Console version: 1.0.0-rc16

@colans
Copy link
Author

colans commented Mar 28, 2017

@worthwhileindustries : That's the module where you'd like the configuration housed. So when you enable the module, this configuration gets imported.

@worthwhileindustries
Copy link

Thanks for clarifying that. I guess I can copy from a module. Not sure why there is no option to export to sync or other directory AFAIK. Your workaround seems to work.

@enzolutions
Copy link
Contributor

Resolved with PR #4083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants