Login
Donate to Zikula
Wiki : ModuleDevGuidelines
Documentation Home :: Categories :: Page Index :: recent changes :: Search :: Help :: Log in
last edit 2008-06-19 07:55:53 by Operator Minor edits (quick review to catch and update PN references of all sorts.

Additions:
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyone's life easier - both the devs and of course the users too (with users being the site admin and the final website users).
Make sure that your modules zip or tar.gz can be extracted directly into the Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of JavaScript? in several parts of the display.
Deletions:
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyones life easier - both the devs and of course the users too (with users being the site admin and the final website users).
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of javascript in several parts of the display.
edited 2007-05-04 07:52:14 by AllKnightAccess Corrected typo. => "foldee" to "folder"

Additions:
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
Deletions:
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root foldee. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
edited 2007-03-09 18:41:42 by Landseer

Additions:
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root foldee. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
When using javascript try to make use of prototype.js where ever possible.
Example: Instead of
better use
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of javascript in several parts of the display.
Deletions:
Oldest known version of this page was edited on 2007-03-08 14:46:16 by Landseer [ initial version ]
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyones life easier - both the devs and of course the users too (with users being the site admin and the final website users).
This should become a collection of useful hints and code snippets, tipps and tricks, possible pitfalls and how to avoid them.
Additions:
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyone's life easier - both the devs and of course the users too (with users being the site admin and the final website users).
Make sure that your modules zip or tar.gz can be extracted directly into the Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of JavaScript? in several parts of the display.
Deletions:
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyones life easier - both the devs and of course the users too (with users being the site admin and the final website users).
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of javascript in several parts of the display.
edited 2007-05-04 07:52:14 by AllKnightAccess Corrected typo. => "foldee" to "folder"
Additions:
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root folder. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
Deletions:
Make sure that your modules zip or tar.gz can be extracted directly into Zikula root foldee. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
edited 2007-03-09 18:41:42 by Landseer
Additions:
Naming
Please, please please: Avoid using the PN-Prefix for module names. We already have enough PN* modules which blow up the alpha list for P in the modules list.Packaging the module
Correct packaging is important for automatic release builds using EasyDist?, a simple interface to create any preconfigured package, ehich is currently under development.Make sure that your modules zip or tar.gz can be extracted directly into Zikula root foldee. This means the top level folder should by modules/, not html/modules and also not the modulename itself.
Module
Naming scheme
Use a naming scheme like {modulename}_{type}_{function}.html, eg. permissions_admin_view.html or memberslist_user_recent.html. Its obvious where these templates belong to.When using javascript try to make use of prototype.js where ever possible.
Example: Instead of
var obj = document.getElementById('mydiv');
window,onload(function() { init_the_system(); });
window,onload(function() { init_the_system(); });
better use
var obj = $('mydiv');
Event.observe(window, 'load', function() { init_the_system(); }, false);
Event.observe(window, 'load', function() { init_the_system(); }, false);
This kind of onload handler takes care of several onloads per page, internally an array of onload functions is used which are called one by one. The normal use of window.onload replaces an existing handler with a new one which means that only the last one added will be executed. This might break some sites that make heavy use of javascript in several parts of the display.
Deletions:
Modules
Oldest known version of this page was edited on 2007-03-08 14:46:16 by Landseer [ initial version ]
Guidelines for module developers
In order to improve the overall quality of Zikula modules we would like to give some guidelines for module devs which (hopefully) make everyones life easier - both the devs and of course the users too (with users being the site admin and the final website users).
This should become a collection of useful hints and code snippets, tipps and tricks, possible pitfalls and how to avoid them.

latest author:
Owner: