1 (edited by hokascha 2017-02-23 22:00:20)

Topic: How to write own widgets?

I switched to a devroot environment as described here: https://kosagi.com/w/index.php?title=%2 … evelopment

This works, but if I change channelinfo.xml to include the helloworld-Widget, it is not shown in Control Panel. How can I activate available widgets? Looks like channelinfo.xml is never read from devroot, instead is is read from the default source /usr/share/netvserver/docroot/widgets/channelinfo.xml - is that by design?

I tried changing the original /usr/share/netvserver/docroot/widgets/channelinfo.xml to include the helloworld-widget. This works, I can see debug output from that widget on the console but nothing on screen. What's wrong?

Thanks,

Kevin

Re: How to write own widgets?

Search for "channelinfo.xml" in the following files and make sure it is referencing the proper xml file:
/media/storage/devroot/html_remoteconfig/js/cProxy.js
/media/storage/devroot/js/JSCore/cProxy.js
/media/storage/devroot/js/JSCore/cChannelModule.js