Creating Joomla forms without ANY 3rd party plug-ins -
as php developer quite new joomla, have been running in circles trying create forms on web page. can't find 1 proper source documents steps. after lot of searching, found this: http://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/
but don't know on host these files go.
can 1 please outline steps... i'm not looking complete code. like:
- step 1 create html form
- create xml file key values like...
- ...
an example of including text box , date field superb.
basically want post contents , print them out using php.
once again, need steps. not entire code. , no 3rd party modules/plugins please.
thanks!
more info... seems question broad. let's take case. want do.
on web page, user sees form when menu link clicked. form has name , date of birth. after input, form submitted. web page must print out output "hello x, age y". x name , y calculated age.
i know how work standard php. level of expertise joomla, have looked @ docs , created own template simple modules. if break rules, insert form 'old fashioned way' inside of index.php. know wrong in joomla world. have considered inserting form article. see there restrictions ui components. example, may have use additional elements jquery date input box.
this why wanted create joomla way, without depending on 3rd party component/plugin.
it sounds me may having trouble understanding how add php, not how add form. joomla ui ui end users it's not 1 developers. adding form need have way form ui. that's why people have recommended use forms extension, because provide simple ui doing so.
how make form going depend on doing , whether want save database i.e. search form, filter in end ui, or creating content want save.
do want insert form inside article? or want own separate thing have menu item?
so, kind of proper joomla code need make extension, , in case guess appropriate make plugin. can use profile plugin model if want.
in plugin way (after doing usual content plugin work of identifying event , context , on) define fields , fieldsets in xml file.
then in php instantiate jform , echo out labels , values way done in core forms (i.e. @ article edit layouts).
without knowing more context , purpose of form it's hard give more detailed advice that. don't want put links docs going frustrating you.
Comments
Post a Comment