|
Nico and Co. Exutoire, zone libre de Nicolas Barcet
|
| connexion ssl |
NavigationRSS Général
|
Adding a form filter to SPIP
Nicolas 14/04/2007 - 07:49
I recently needed to generate on the fly a text document from the field values of a form inside of a SPIP article. Based on the code I found by F.Quointeau to invoke a php script from a SPIP article, I wrote a filter that enabled me to solve my issue. UsageThis code will allows us to place a tag
within the body of an article and have it replaced by the content of an html template named „filename“ and placed in a directory named „formulaires“ at the root of our SPIP hierarchy. The content of our template could look like :
In order for out filter to be called, we need to modify the squelette that will use it so that the filter is added as a parameter of the #TEXTE tage. Ex :
Code
Technorati Tags: php SPIP formRépondre |
Trucs et astuces
Pour être notifié automatiquement des derniers changements sur ce site, inscrivez vous...
ConnexionTags
électronique
april
brevets
démocratie
dadvsi
divers
drm
ecole
education
equilibrage
europe
fiction
filter
filtrage
france
hadopi
informatique
internet
interopérabilité
ipred2
itunes
kids
kvm
législation
lemeur
liberté
libertyalliance
linux
linuxworld08
logiciel libre
machine-a-voter
mandriva
moratoire
OOXML
openID
oscon08
pétition
p2p
Paquet telecom
parents
partage
planetubuntu
pme
politique
présidentielle
presidentielles
quadrature
revendication
RFID
sarkozy
schiboleth
server
solutionslinux
sondage ubuntu server linux
téléchargement
technique
ubuntu
virtualization
vote
[en]
Blogue récents
RSS Linux
Recherche |
Commentaires récents
il y a 30 weeks 1 jour
il y a 31 weeks 4 days
il y a 31 weeks 4 days
il y a 1 année 19 weeks
il y a 1 année 34 weeks
il y a 1 année 35 weeks
il y a 1 année 40 weeks
il y a 1 année 41 weeks
il y a 1 année 41 weeks
il y a 1 année 41 weeks