Sunday, 31. May 2009, 07:20:07
plugin, howto, trick
This commit introduced a functionality that is used everywhere, especially with CVT forms :
Every functions xxx_yyy_zzz() can be defined in a unique file xxx/yyy.php.
Application in CVT : formulaires_yyy_charger(), formulaires_yyy_verifier(), and formulaires_yyy_traiter() can be defined in a unique file formulaires/yyy.php (which uses the template formulaires/yyy.html)
What I've discovered is that
the functions can be independently overwritten by the same function defined in xxx/yyy/zzz.php !
Used with
the function search path, this can be really usefull when you want to override a general plugin (such as Agenda).
Read more...
Wednesday, 3. December 2008, 14:45:32
plugin, optimization, howto
SPIP is fantastic because it can automatically merge and compress the css and javascript files.
But sometimes it can crash our scripts (especially if some parameters are stored inside). To solve it, just change, in your template, the type of your script. Instead of "text/javascript" use "application/javascript"
<script type="application/javascript">'.$gmap_script.'</script>
<script type="application/javascript" src="'._DIR_PLUGIN_GEOMAP.'js/customControls.js"></script>';