Forum

Creating a new page
 
Notifications
Retirer tout

Creating a new page

3 Posts
2 Utilisateurs
0 Reactions
1,098 Vu
(@ratsi)
Posts: 2
New Member
Début du sujet
 
[#8223]

Hello,

I created a new menu in the menu table with the "item" type (as I just want to display some really simple content, not a list of objects). I had to modify the "loadMenuBarItem" function in projeqtorDialog.js : it works well, but is there a way to link the new menu with my new content without having to modify this function in the source code? 

Thank you!

 


 
Posté : 25 Avr PM 13:044
(@babynus)
Posts: 14952
Membre Admin
 

You need to give this information.
You can use the plugin system to include your own code.


 
Posté : 25 Avr PM 19:044
(@ratsi)
Posts: 2
New Member
Début du sujet
 

I tried to use the plugin system (kinda) :
- I added a line in the menu table and in the plugin table
- I created a new folder for my plugin in the existing "plugin" folder
- Inside that folder, I created a javascript file with the following line:
"pluginMenuPage['menuMyTest']='../plugin/myTest/test.html'; // Screen to load on menu call"

It works well with the HTML content, but how can I add some javascript code too? 


 
Posté : 26 Avr PM 16:044
Share:
Retour en haut