How to add new module ?

Asked by Xavier

Hi

I done a new module for Xibo which is based on Webpage module. In fact, it record the uri in the database, as the webpage module, like that : <options><uri>myuri</uri></options>. It allows me to automatically add php arguments in the uri. This module works fine when I replace the webmage module with mine. But is it possible to add a new module ? I added newmodule.module.php in the "modules" folder of Xibon, then I created a new entry in my database, in "module" table. My new module is displayed, I can add composant, edit ... but it dosen't work. Is there something else to modify ?

Many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

The new module has to be supported by the client(s) before it will work...
unless you mean something in the server interface doesn't work?

Revision history for this message
Xavier (xavier-hess) said :
#2

On my Xibo server, a Newmodule composant isn't well displayed, for example :
[img]http://zepload.com/images/1279186831_xibo.JPG[/img]
I don't know if it's a real problem ...

Ok for the client, i'll try to implement my new module.

Revision history for this message
Best Alex Harrington (alexharrington) said :
#3

I expect you're missing the CSS for your new module.

http://bazaar.launchpad.net/~dangarner/xibo/111-server-p2/revision/131

Have a look at that diff. It's where we added the Microblog module to the system so should give some idea of what you need to add.

As Dan says, unless the XLF that's sent down to the client is still a webpage media item, then you'll need to add support in the clients to display the new module.

Alex

Revision history for this message
Xavier (xavier-hess) said :
#4

Thanks, now my display problem on the server is solved and my Client Python works with my new module.
But I dindn't found files to modify on .NET client for my new module.

Revision history for this message
Xavier (xavier-hess) said :
#5

I found a thing to add in "dotNET/Region.cs"

case "newmodule":
 media = new WebContent(options);
 break;

Revision history for this message
Dan Garner (dangarner) said :
#6

Perfect, that is exactly the section to edit.

Revision history for this message
Xavier (xavier-hess) said :
#7

Thanks Alex Harrington, that solved my question.