ISSUE-20 (Content multi-view): Current <content> model does not allow multiple views [Widgets]

ISSUE-20 (Content multi-view): Current <content> model does not allow multiple views [Widgets]

http://www.w3.org/2008/webapps/track/issues/

Raised by: Marcos Caceres
On product: Widgets

The problem with the way that <content> is currently specified is that it does not allow for multiple "views" of content. For example, say I want to display a floating widget and a different view of that widget in a dock. 

Google gadgets currently solves this problem by allowing multiple content elements and making use of a "view" attribute:

<?xml version="1.0" encoding="UTF-8" ?>
<Module> 
  <ModulePrefs title="Hello World!">
    <Require feature="opensocial-0.7" />
  </ModulePrefs>
  <Content type="html" view="home">
    <![CDATA[
      Hello, small world!
    ]]>  
  </Content>
  <Content type="html" view="canvas"> 
    <![CDATA[
      Hello, big world!
    ]]> 
  </Content>
</Module>

It might be useful to add something similar to widgets 1.0. 

Received on Friday, 27 June 2008 04:08:41 UTC