You've got the whole idea and syntax right - we just don't support this in
Shindig yet.
We would like to though - so feel free to send us a patch for implementing
it!

- Cassie


On Fri, Jul 25, 2008 at 10:07 AM, Brandon Peters
<[EMAIL PROTECTED]>wrote:

> Hello,
> I'm writing an Opensocial 0.8 app and I'm to the point now where I'm
> trying to implement activity streams. This all seems to be going well,
> and my activity streams get sent to the container, but I'm running
> into a problem with the TITLE_ID activity field. From reading the
> documentation, it seems to me that the TITLE_ID field is the name of a
> <msg> element which I could use for substitution instead of specifying
> a TITLE field, however, when I try creating an activity using the
> TITLE_ID, the text never gets substituted. I'm not sure if it is a
> problem with Shindig, or if I'm misunderstanding the purpose of
> TITLE_ID, or that I'm simplying doing something wrong. I'm using
> inline message bundles if that matters. Here is the section of my code
> that applies to this:
>
>
> <Locale>
>    <messagebundle>
>        <msg name="ADD_BOOKMARK">
>            ${Owner} has bookmarked an article.
>        </msg>
>    </messagebundle>
> </Locale>
>
> ....
>
> var template_params = {
>    'Owner': owner
> };
>
> var params = {};
> params[opensocial.Activity.Field.TITLE_ID] = 'ADD_BOOKMARK';
> params[opensocial.Activity.Field.TEMPLATE_PARAMS] = template_params;
>
> var activity = opensocial.newActivity(params);
> opensocial.requestCreateActivity(activity,
> opensocial.CreateActivityPriority.HIGH, function() {});
>
> Any ideas?
> Thanks,
> Brandon
>
> --
> Brandon Peters
>

Reply via email to