The easiest way to get your own portlet runnig is to copy the example portlet and change what's necessary.
1. Copy the Example Portlet
Make a copy of the Folder called "exampleportlet" located at "/PICOKROOT/localinc/portlets/". The Foldername must be the name of your portlet
2. Change the Folder- and Filenames
You'll have to Change the Foldername and the Filename of the JS File
3. Edit the SQL
As our Portlets need Data from the SQL you'll have to Edit fixtures.sql:After you made all your modifications to the SQL, execute it in the Picok Database. I recommend Sequel Pro for OS X or PHPMyAdmin for other Operating Systems.
4. Change the Classname/Namespace of the Portlet
Before youre portlet will work you'll have to Change the Classname in core.php to the name of your portlet. The OKAPI Framework will search the classes by its position in the Filesystem.
You also have to change the namespace and the functionname in exampleportlet.js.
Now you're Demo Portlet should be up and running.
Afterwards you can start Customising
If you want to install the portlet via the admin tool. Zip the entire portlet and include the version name: