Hy everyone . y've tryed to put some things on this tutorial hope it helps.
Here is some steps to make a simple plugin to insert some data into database and display on item page.!
Step 1.
Make a new folder . folder name can be anything , but it is better to keep folder name same as plugin name for easy acces..
Inside the folder we need some files.
index.php is mandatory is the core of the plugin
struct.sql (if you wanna insert something into database.. supose we want to create new table and some fields then this file is needed. can have any name
Plugin_1.phpCan have any name.. dont forget to call the file by it's name
Will have inside a class to interact with the database,this class will extend existing DAO class for (Dao class has his methods and we can use it as is already defined).
edit.phpwill hold some input fields needed for insertind and editing,can have any name.
detail.phpwill be called in item page to display the data saved before into the database,can have any name
.
Step 2.
inside index.php
/*
Plugin Name: Plugin_1
Plugin URI: http://www.yyyyyy.com/
Description: This plugin extends a Item to store some atributes
Version: 1
Author: Web-Media
Author URI: http://www.yyyyyy.com/
Short Name: plugin1
*/
Plugin Name:
Plugin_1 ( can be altered .. as your needs... but it is better to keep )
folder name and plugin name related.
Short Name:
plugin1( is important. this is what the script will look for)
comments inside the each file in plugin (see second post)