Hi!

I would like to write a custom module for eczFeed to implement the
Atom Activity Extensions _1, which is a representation of activities
on social objects.
After reading the eczFeed tutorial and looking at the provided
modules, I'm not quite sure how to plug everything together.

My feed consists of activities. Therefor I add my custom activity
module to every item.
On item level, I add an activity:verb, which is a ezcFeedTextElement,
and an activity:object, which is itself an item with additional
properties like activity:object-type.

<feed>
  ...
  <entry>
    <id>..</id>
    <activity:verb>...</activity:verb>
    <activity:object>
      <id>..</id>
      <activity:object-type>..</activity:object-type>
      ..
   </activity:object>
  </entry>
  ..
</feed>

Now I have to problems:

1. The activity:verb is generated correctly, but the activity:object
is empty. If I understand the inner workings of the processors
correctly, the nested items are never generated, so I would have to
generate all fields in the <activity:object-type> myself, even those
in the atom-Namespace. Is this the way to go or is there a more
elegant solution?

2. The XML that represents an activity object differs between Atom and
RSS. Is there a way to find out in a module's generate method what
kind of feed is generated? (This is a minor problem, I could live with
Atom-only at the moment).

Best regards,
Daniel

1_ http://martin.atkins.me.uk/specs/activitystreams/atomactivity
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to