Table of Contents
Plugins
Writing a plugin
Annexes
Plugins
Writing a plugin
Plugin files organization
Plugin files organization
General organization of a plugin
Organizing files in the inc/ directory
Protecting files
Writing a plugin for Dotclear 2
Introduction
First plugin
Writing a plugin back-end
Writing a plugin back-end
Minimal Structure
_admin.php
index.php
Download the example plugin
Customize the administration page
Creating a front-end page
The _define.php file
The _prepend.php file
The _public.php file
The template file
Download the example plugin
Plugins parameters
Plugins parameters
Saving a parameter
Example with a string and a label
Parameters types
Reading a parameter
Deleting a parameter
User preferences
User preferences
Save a preference
Example with a string with a label
The different types of preferences
Read a preference
Delete a preference
Widget creation
Widget creation
Introduction
Plugin conception
Definition
Widget creation and administration
Widget display
Advanced widget parameters
Adding options
Use of options in the admin side
Création de filtres antispam
Généralités
Définition du plugin
Création du filtre
Conclusion
Modèle de code pour une classe de filtrage
Comportements
Principe
Behavior Admin
Behavior Core
Behavior Plugin Import/Export
Behavior Plugin Widgets
Behavior Page Login
Behavior Plugins
Behavior Public
Behavior Templates
Behavior XML-RPC
Add a plugin installation procedure
Introduction
The _install.php file
Create new preferences
Modify the database schema
Create an Ajax service
What is an Ajax service?
Prerequisites
Service creation
Service declaration
Data processing
Error handling
Add an icon to the dashboard
Add an icon to the dashboard
Introduction
Adding a favorite icon
help
changelogs
Related links :
Access to database with Clearbricks (Tips DotAddict)
Annexes
Coding standards
Coding standards
PHP Code
PHP Configuration
Indentation, line length
Control structures
Calling functions
Functions definitions
Commentaires
File inclusion
Tags in the HTML code
Naming conventions
HTTP Conventions
Modifying data
XHTML Code
Database
code-documentation