Skip to main content

Site Navigation

Your Account

Choose Language

Changes to Step #4

Edit by kelebron

Edit approved by kelebron

Before
After
Unchanged

Step Lines

[* black] Now we need to create our base files for our new plugin. The easiest way to do this it to clone an existing plugin. I recommend starting with /src/plugins/example folder in to a new one called /src/plugins/visualization3d/src/plugins/visualisation3d. [br][code]cp -r src/plugins/example src/plugins/visualization3d[/codesrc/plugins/visualisation3d[/code]
[* black] Inside the new folder, the convention is to name your javascript file that runs in the browser with the same name as your folder. So rename /src/plugins/visualization3d/public/js/example.js/src/plugins/visualisation3d/public/js/example.js to visualization3d.jsvisualisation3d.js [br][code]mv src/plugins/visualization3d/public/js/example.js src/plugins/visualization3d/public/js/visualation3d.js[/codesrc/plugins/visualisation3d/public/js/example.js src/plugins/visualisation3d/public/js/visualisation3d.js[/code]
[* black] Now we need to create our base files for our new plugin. The easiest way to do this it to clone an existing plugin. I recommend starting with /src/plugins/example folder in to a new one called /src/plugins/visualization3d/src/plugins/visualisation3d. [br][code]cp -r src/plugins/example src/plugins/visualization3d[/codesrc/plugins/visualisation3d[/code]
[* black] Inside the new folder, the convention is to name your javascript file that runs in the browser with the same name as your folder. So rename /src/plugins/visualization3d/public/js/example.js/src/plugins/visualisation3d/public/js/example.js to visualization3d.jsvisualisation3d.js [br][code]mv src/plugins/visualization3d/public/js/example.js src/plugins/visualization3d/public/js/visualation3d.js[/codesrc/plugins/visualisation3d/public/js/example.js src/plugins/visualisation3d/public/js/visualisation3d.js[/code]