Suppose you'd like to design a widget that would only have a few minor differences on different pages of your site. Or suppose you'd like to launch a cobranded widget campaign, allowing users some level of design (such as providing their own logo and colors) with which they can brand a widget containing content from your site. Either way, you can create widgets that accept parameters that can be passed into it when it is loaded onto a page.
A great example of cobranding is the Discovery News Science and Technology widget. You can display Discovery content on your site, but with your own branding. Sign up for it here! http://dsc.discovery.com/widgets/newsgator/signup-page.html
We've got a couple of built-in methods for implementing this. The first step is to decide which one to go with:
ExtraArgs
http://developer.newsgator.com/wiki/index.php?title=Advanced_Configuration_Using_ExtraArgs
Only one widget is created for the campaign, arguments are passed to the widget via querystring parameters on the script block that is placed on your page.
XMLConfig
http://developer.newsgator.com/wiki/index.php?title=Advanced_Configuration_and_Using_xmlConfig
Separate widgets, so reporting is gathered for each cobrand. Arguments are defined in the Advanced Configuration UI. This is a great approach for when you have a Flash widget that uses XML config.
Once you've got that decided, you can set up your unique widgets using our framework. Both methods are tremendously simple.
Comments