Hi,

I see a lot of stuff concerning the ability to "promote" and make "sticky". I've found some patches and ideas.

I ended making my own patch just for "promote". I reads like :

modules/contrib/feeds$ git diff plugins/FeedsNodeProcessor.inc
diff --git a/contrib/feeds/plugins/FeedsNodeProcessor.inc b/contrib/feeds/plugins/FeedsNodeProcessor.inc
index bea7921..6671790 100644
--- a/contrib/feeds/plugins/FeedsNodeProcessor.inc
+++ b/contrib/feeds/plugins/FeedsNodeProcessor.inc
@@ -259,7 +259,7 @@ class FeedsNodeProcessor extends FeedsProcessor {
       $target_node->teaser = node_teaser($value);
       $target_node->body = $value;
     }
-    elseif (in_array($target_element, array('title', 'status', 'created', 'nid', 'uid'))) {
+    elseif (in_array($target_element, array('nid', 'title', 'uid', 'status', 'created', 'promote'))) {
       $target_node->$target_element = $value;
     }
   }
@@ -301,6 +301,10 @@ class FeedsNodeProcessor extends FeedsProcessor {
         'name' => t('Published date'),
         'description' => t('The UNIX time when a node has been published.'),
       ),
+      'promote' => array(
+        'name' => t('Promoted to front page'),
+        'description' => t('Whether a node is displayed on the front page or not. 1 stands for promoted, 0 for not promoted.'),
+      ),
       'url' => array(
         'name' => t('URL'),
         'description' => t('The external URL of the node. E. g. the feed item URL in the case of a syndication feed. May be unique.'),

The problem is this has no effect at all on the promoted status of the node. So, either I've forgot something, either there is a bug somewhere.

Comments

twistor’s picture

Status: Active » Closed (outdated)