2010-08-10, 22:43:58
kaiocobain Wrote:thanks for the support. so lets go.
I started to put this plugin GS gallery but when I put the folder on the get simple js does not work anymore.
What are the first steps to creating a plugin for it?
You can start by creating a php file inside of the plugin folder:
/yourapp/plugins/squareit-gallery/plugins/
name your file whatever you want it to be.
then the requirement of the file is for you to have something like this:
Code:
<?php
# get correct id for plugin
$mypluginthisfile=basename(__FILE__, '.php');
# register plugin
gsg_register_plugin(
$mypluginthisfile,
'Sample Plugin',
'1.0',
'Square IT Solutions',
'http://www.squareitsol.com/',
'Description: Sample plugin',
'plugins', //page type
'myplugin_initcall'
);
In reality, the plugin system uses the same mechanics as GetSimple, so the documentation on GetSimple plugins should help you get a crash course.
Here is a list of all the available hooks.
****Available Hooks***
ACTIONS
gsg-add-gallery
gsg-add-gallery-process
gsg-head
gsg-settings-render
gsg-settings-process
gsg-pre-gallery
gsg-post-gallery
FILTERS
gsg-gallery-output
*/
you will probably be using:
gsg-head
gsg-pre-gallery
gsg-post-gallery
gsg-gallery-output
Hope this will give you a good start..