Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Creating a new page
 
Notifications
Clear all

Creating a new page

3 Posts
2 Users
0 Reactions
1,115 Views
(@ratsi)
Posts: 2
New Member
Topic starter
 
[#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!

 


 
Posted : 25 Apr 2022 13H12
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 25 Apr 2022 19H45
(@ratsi)
Posts: 2
New Member
Topic starter
 

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? 


 
Posted : 26 Apr 2022 16H54
Share:

Scroll to Top