Home Our Apps Contact Articles
Wednesday, February 05, 2008

Another OS template xml file for 0.7.

This is a basic template for use when creating a new app. It's a good place to get started, feel free to use it.

Here's the code:

<?xml version='1.0' encoding='UTF-8' ?>
<Module> 
  <ModulePrefs 
        title='Application Title' 
        title_url='http://www.iwiddit.com/'
        description='This is my app.'
        author=''
        author_email=''
        screenshot=''
        thumbnail=''
        directory_title=''
        author_affiliation=''
        author_location=''
        author_photo=''
        author_aboutme=''
        author_quote=''
        author_link=''
        show_stats=''
        show_in_directory=''
        width=''
        height=''
        category=''
        category2=''
        singleton=''
        scaling=''
        scrolling=''
  >
    <Require feature='opensocial-0.7' /> 
    <Optional feature='setprefs' /> <!-- gadgets.Prefs -->
    <Optional feature='dynamic-height' /> <!-- gadgets.window -->   
    <Optional feature='settitle' /> <!-- gadgets.window.setTitle -->
    <Optional feature='skins' /> <!-- gadgets.skins -->  
    <Optional feature='views' /> <!-- gadgets.views -->
    <Optional feature='rpc' /> <!-- gadgets.rpc -->
    <Optional feature='flash' /> <!-- gadgets.flash -->
    <Optional feature='minimessages' /> <!-- gadgets.MiniMessage -->
    <Optional feature='tabs' /> <!-- gadgets.tabs -->
  </ModulePrefs>
  <Content type='html' view='profile'>  
      <![CDATA[
    
            <style type='text/css'>
                
                /* profile style here */
                
            </style>
    
    
            <!-- profile html here... -->
            <p>Profile Data</p>
    
    
            <script type='text/javascript'>
                
                // profile code goes here
                
            </script>    
      
      ]]>  
  </Content>
  <Content type='html' view='canvas'>  
      <![CDATA[
    
            <!-- Note: You don\'t need to specify separate content for canvas vs profile unless you want to. You can also generate the contents programatically. See the gadgets namespace description. -->
            
            <style type='text/css'>
                
                /* canvas style here */
                
            </style>
    
    
            <!-- canvas html here... -->
            <p>Canvas Data</p>
    
            <script type='text/javascript'>
                
                // canvas code goes here
                
            </script>    
      
      ]]>  
  </Content>    
</Module>


[ Page Top ](c)2009 iWiddit.com - Privacy Policy - Feedback - SiteMap

iWiddit Logo iWiddit Opensocial Developers