Support for Feeds mapping implementation for node fields.
Similar as it's in Metatag module.

Comments

kenorb’s picture

Issue summary: View changes

added more info

kenorb’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Rename: xmlsitemap.feeds_.inc_.txt to xmlsitemap.feeds.inc.

Anonymous’s picture

Status: Needs review » Needs work

The attachment needs to be in the form of a patch. Read the developer documentation on the http://drupal.org site if you do not know what is needed for a patch attachment.

kenorb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.36 KB

Status: Needs review » Needs work

The last submitted patch, xmlsitemap.feeds_.inc_.patch, failed testing.

kenorb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.39 KB

Improving patch format.

kenorb’s picture

There are only some notices:

Notice: Undefined index: priority in xmlsitemap_link_bundle_settings_save() (line 1023 of xmlsitemap/xmlsitemap.module).

during the importing.

My proposal:

--- a/xmlsitemap/xmlsitemap.module
+++ b/xmlsitemap/xmlsitemap.module
@@ -1016,10 +1016,10 @@ function xmlsitemap_entity_query_alter($query) {
 function xmlsitemap_link_bundle_settings_save($entity, $bundle, array $settings, $update_links = TRUE) {
   if ($update_links) {
     $old_settings = xmlsitemap_link_bundle_load($entity, $bundle);
-    if ($settings['status'] != $old_settings['status']) {
+    if (isset($settings['status']) && $settings['status'] != $old_settings['status']) {
       xmlsitemap_link_update_multiple(array('status' => $settings['status']), array('type' => $entity, 'subtype' => $bundle, 'status_override' => 0));
     }
-    if ($settings['priority'] != $old_settings['priority']) {
+    if (isset($settings['priority']) && $settings['priority'] != $old_settings['priority']) {
       xmlsitemap_link_update_multiple(array('priority' => $settings['priority']), array('type' => $entity, 'subtype' => $bundle, 'priority_override' => 0));
     }
   }
kenorb’s picture

Issue summary: View changes

.

kenorb’s picture

Priority: Normal » Minor
Issue summary: View changes