The current FeedAPI is great. But the creation of a feed requires the creation of a node.
What if wanted to add a feed to a user object?
Example: a user to a drupal application also has a personal blog somewhere else. He/she may want to be able to add the feed url to the personal blog so that some of his/her contributions to the personal blog can automatically be aggregated to the drupal application.
The contribution on the personal blog could be imported to the drupal application as a node with the given user as the author.
I was about to write a module called "userfeed" that would do just this, using functions from Feedapi and from Feedapi_node.
I realized I had to rewrite functions already written in the feed api, just to adapt them to the user case.
Before spending more time on it, I would like to know if it would be possible to rewrite some functions in the FeedAPI to consider 2 cases: node and users.
I am ready to help if needed. The delicate part will be not to damage the current structure.
Thanks in advance for your reply.
S.Gauvain
Comments
Comment #1
aron novakMaybe i can't see your use-case clear, but using views you can glue users module and feedapi, don't you?
Comment #2
gauvain commentedHey,
I did some unsuccessful attempts with Views but it causes some big performance issue.
The use case is the following:
A registered user has a blog somewhere else.
He wants the content of his blog to be automatically aggregated in the drupal site he is registered.
Instead of creating a feed as node, he just wants to be able to edit his profile and add his feed in it.
Concerning my request I was thinking of a change in the FeedAPI module according to the following module:
1/ Hook_Form_Alter
a) Content Type Settings form
Enter the same form in the user_admin_settings Form, using "userfeed" as $type
b) Node form
Enable the same form on the user_edit Form using "userfeed" as $type
This would require the other functions to take a uid parameters into account as an optional parameters.
The functions would distinguish between 2 cases node vs users.
This would require to add an extra column "uid" on the Feed API tables.
If you wish, I can send you some more detailed codes withing the coming weeks (i'm very busy right now) and you could tell me what you think.
Comment #3
aron novaknot planned