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

aron novak’s picture

There 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.

fiLi’s picture

Thanks. 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:{}}}}

alex_b’s picture

Status: Active » Closed (fixed)

Closing.

fiLi’s picture

This works. Confirmed. Thanks for the help.

deltab’s picture

Just 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?

alex_b’s picture

#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