To main page | Opera Unite HowTo'sConfig.xmlconfig.xml is the file that describes your application to Opera Unite. It includes information about application (title, description), you as the owner, what services does this application rely on (such as fileio or webserver). Minimal example for web app<widget> <widgetname>Test</widgetname> <feature name="http://xmlns.opera.com/webserver"> <param name="type" value="service"/> <param name="servicepath" value="test"/> </feature> </widget> Bigger exampleThis one adds description and author information<widget> <widgetname>Test</widgetname> <description>Just a test</description> <author> <name>Testov Test</name> <organisation>Testing Inc.</organisation> </author> <feature name="http://xmlns.opera.com/webserver"> <param name="type" value="service"/> <param name="servicepath" value="test"/> </feature> </widget> Installing itDrag-and-drop config.xml file into OperaEnabling "fileio" libraryChange config.xml, add this:(right above <feature name="http://xmlns.opera.com/webserver">): <feature name="http://xmlns.opera.com/fileio"> </feature>If you need user to share some files with your App - add this instead: <feature name="http://xmlns.opera.com/fileio"> <param name="folderhint" value="home" /> </feature>Official fileio docs → have more about this. Basic fileio-enabled example<widget> <widgetname>Test</widgetname> <feature name="http://xmlns.opera.com/fileio"> </feature> <feature name="http://xmlns.opera.com/webserver"> <param name="type" value="service"/> <param name="servicepath" value="crud"/> </feature> </widget> Enabling network accessThis is required for AJAX.<widget network="public private"> Icons<icon width="64" height="64">public_html/favicon.64x64.png</icon> <icon width="48" height="48">public_html/favicon.48x48.png</icon> <icon width="32" height="32">public_html/favicon.32x32.png</icon> <icon width="16" height="16">public_html/favicon.16x16.png</icon>Insert it before <feature .. | Last updated
|