Affects versions: None
Fix versions: integrated-0.9
Sprint:Team A Sprint 54, Team D Sprint 1, Team D Sprint 2
The content types should always be present. This issue should solve the problems when code is based on content types which are not available.
The requirements are using the following documentation on the Symfony website.
Here is explained how to `Load Resources` in your project. In the example is spoken about the Yaml loader. We prefer the Xml loader.
The directories added in INTEGRATED-1337 Closed can be registred with the CompilerPass. To check what kind of documents are set into the XML files, it’s an option to add the type of the document in the CompilerPass, see example.
The content types can’t be deleted in Integrated when they are added from the XML. The name of the `content type` can be changed by clicking on the edit button. The locked property shouldn’t be set in the Database. This will be build into the INTEGRATED-1339 Closed
The content type manager should read the XML files which are registred and add them to the database when not existing yet.
This manager is used several other files:
$definition->addMethodCall(’registerResource’, [ContentType:class, '@IntegratedContentBundle/Resources/config/integrated/content_types.xml']);
There is a possibility when there is already a content type added for example:
- id news
- class ContentType/Video
- label Video News
In the XML is added:
- id news
- class ContentType/News
- label News
What to do in this situation isn’t described in this document. Because the unique identifier is “id” the Content Type manager doesn’t do anything with this.