On Wed, Jul 2, 2008 at 12:38 PM, Viji Subramanian <
[EMAIL PROTECTED]> wrote:
> Re:- /config/container.js
>
> sorry.. Can i please have a sample few lines of web.xml - so that i
> understand what u are referring here..
Sorry -- modifying web.xml is unnecessary, I wasn't thinking. You just need
to add it to the properties file and you're good to go.
>
>
> The only way I understand this is :-
> i can copy the gadgets.properties and call it myown.properties file and add
> mycontainer.js so that containers.default has mycontainer.js as well as the
> default container.js separated by comma..
>
> If I do the above.., in mycontainer.js, do I need to change
> gadgets.container and gadgets.parent.. ? and what should those values be ?..
You'd want to modify gadgets.container (give your container a unique name),
as well as overriding any appropriate values. If you don't anything to
override, you don't need a custom configuration.
To give an example, this is the configuration that we use for Orkut:
{"gadgets.container": ["orkut"],
"gadgets.features" : {
"core.io" : {
"proxyUrl" : "http://www.gmodules.com/gadgets/proxy?refresh=
<http://www.google.com/url?sa=D&q=http://www.gmodules.com/gadgets/proxy%3Frefresh%3D>%refresh%&url=%url%"
},
"rpc" : {
"parentRelayUrl" : "/rpc_relay.html",
},
}}
So, not much change over the base configuration. Other containers might want
even more extensive
>
>
> Thanks..
>
> Kevin Brown wrote:
>
>> The best option is to create your own container configuration and just
>> override the values that you need. Modify web.xml to point to both the base
>> configuration and your own (colon-separated). Shindig will take care of
>> ensuring inheritance works correctly.
>>
>> On Tue, Jul 1, 2008 at 6:28 PM, Viji Subramanian <
>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>> wrote:
>>
>> Kevin,
>>
>> How do i override the default container.js..
>>
>> I need to update the views and parentRelayUrl ..
>>
>> looks like i need to update the gadgets.properties as well... what
>> is the correct way of overriding the properties.. and
>> including them..
>>
>> any help is greatly appreciated..
>>
>> thanks
>>
>>
>>
>