Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Community
»
Elxis Community
(Moderator:
Ivan Trebješanin
) »
XML forms bot
« previous
next »
Print
Pages: [
1
]
Author
Topic: XML forms bot (Read 12854 times)
datahell
Elxis Team
Hero Member
Posts: 10356
XML forms bot
«
on:
June 09, 2010, 20:48:03 »
I write here an idea of a bot with which a site owner will be able to easily add
forms
, of any kind, to standard elxis
content items and autonomous pages
. I can not built it myself as I have no free time available. If anyone wants to built he will have my help.
The general idea is that the forms are written in an XML file (unlimited number of forms can be supported) and the bot parses this XML file and creates an HTML form based on the elements provided in the XML file. Inside your content item you will only have to write somehting like this:
{xmlform}contact{/xmlform}
Where
contact
is the name of the form you want to display on that specific article.
The edit of the XML file is done by hand. If you wish to make it editable from the Elxis administration area you will have to also create a component or an elxis tool.
The forms can have 2 type of actions: email (multiple recipients support) and URL (any URL).
You can see attached an example of such a form.
To parse the XML file you can do it easily with PHP5.x
simpleXMLElement
class (recommended on Elxis 2009.2+). Afterwards you convert the XML declarations to html source code.
Besides the standard form elements you can have fields like country (automatically creates a country selection drop down list), email, url, telephone, price, etc. This separation will make also easier to validate the submitted data after the submit.
[attachment deleted by admin]
«
Last Edit: June 09, 2010, 20:51:13 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
nikos
Elxis Community
Hero Member
Posts: 1094
Re: XML forms bot
«
Reply #1 on:
June 10, 2010, 03:47:22 »
My Man!
You just came straight to my question i have asked you recently about such a possibility. It will be very useful such a bot. I want to work on this and i will contact you for details.
Logged
Elxis Community |
Open Source Web Lab
webgift
Elxis Team
Hero Member
Posts: 4193
Re: XML forms bot
«
Reply #2 on:
October 28, 2010, 19:00:53 »
eForms Bot
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Community
»
Elxis Community
(Moderator:
Ivan Trebješanin
) »
XML forms bot