Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291491

Add functionality to automatically remove Content and Field Mappings

$
0
0

At the moment RDF module does not support automated deletion of stored mappings for Content Types and Fields. This would result in inconsistency once the users edit or delete Content Types and fields associated. Thus this functionality should be added to the rdf module.

How to create a content type + mapping using Drush

Having a way to quickly create content types with their RDF mappings is going to be quite useful to test this issue.
These instructions assume you are starting from a vanilla Drupal site with the standard profile installed. It already includes mappings for article, user and the tags taxonomy term bundle. It also assumes you've already deleted the article content type (for example to test this issue). Here is how to recreate the article content type (and if needed its RDF mappings too) using Drush:

- Export your configuration in the staging area: drush config-export staging -y
- It should be missing the article content type YAML file
- copy the original article content type definition YAML file located in the standard profile into your site staging area: cp core/profiles/standard/config/install/node.type.article.yml sites/default/files/config_2T8.../staging/
- optionally also copy the article RDF mapping (rdf.mapping.node.article.yml) if those were deleted (as they should be once the patch is working
- Import all of the config present in the staging area into your site: drush config-import staging -y
- Visit the content type listing page, the article content type should be back!


Viewing all articles
Browse latest Browse all 291491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>