Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2008 at 17:10 UTC
Updated:
20 Jul 2009 at 15:58 UTC
Hi,
I might have missed something. Is there an easier way to change settings (number of nodes promoted, expiry date, retrieve date from feed) for all feedapi nodes of a certain content type together? changing the content type alone doesn't seem to affect the individual feeds.
If not - can some one help with a quick PHP code to pull that off?
Fili
Comments
Comment #1
aron novakThere is no user interface for this purpose.
You can do the following:
Set one feed with the perfect settings.
1)
select settings from feedapi where nid = N;Replace N with the nid of the previously modified feed.2)
update feedapi set settings = " < copy here the previously received settings string > ";Replace N with the nid of the previously modified feed. (if all the feeds should be the same, else you need to add some WHERE conditions.Comment #2
fiLi commentedThanks. I thought about that, but it seems that the Settings array includes the feed address. This wouldn't override the feed's URL?
That's why I thought I would need to use array structure tweaking and some code...
example : a:6:{s:11:"feedapi_url";s:44:"http://feeds.feedburner.com/Something";s:17:"refresh_on_create";i:1;s:15:"update_existing";i:1;s:4:"skip";i:0;s:12:"items_delete";s:8:"15724800";s:10:"processors";a:1:{s:18:"feedapi_aggregator";a:2:{s:5:"block";s:1:"3";s:10:"categories";a:0:{}}}}
Comment #3
alex_b commentedClosing.
Comment #4
fiLi commentedThis works. Confirmed. Thanks for the help.
Comment #5
deltab commentedJust curious, I don't understand as to what is the purpose of "s:44:"http://feeds.feedburner.com/Something" also, shat is a:6:{ in the beginning of the line?
Comment #6
alex_b commented#5: that's how PHP serializes an array.
This patch may be of help #201056: Only save per-node settings if different from per-content-type settings