Forums / Developer / Creating a Custom Form

Creating a Custom Form

Author Message

Kathy McKelvie

Saturday 16 May 2009 8:42:42 am

Hello,

I need to create a form with 2 fields on it:

User Name
Password

and a button to log in to the system.

How do I create this new form? I tried using a feedback form and
was not able to modify it.

Thanks.

Kathy McKelvie

Saturday 16 May 2009 9:13:09 am

I figured out how to create the form and I called it:

login_form

with 2 fields

username
password

I know that I have to add something to my ini file. I don't know which
ini file to update and what I am suppose to add to it.

Could someone please help me with this.

Marco Zinn

Sunday 17 May 2009 2:38:02 am

Hi Kathy,

you wrote "I need to create a form [..] to log in to the system.".
What exactly do you want to do?
I new user login screen(form) in order to have a user log in to the eZ publish system?
Or do you want to provide a login screen for some other (external) system?

If you just want to change the user login screen / form, you should be able to override the login template. It's name should be "user/login.tpl" , so search for it in the admin interface and create a new override for your user siteaccess.

Marco
http://www.hyperroad-design.com

Akhilesh Singh

Wednesday 27 May 2009 3:29:52 am

Hii Frnds.....

can any one help me out ....
I am new to EZ and need to develop a custom form.
I followed every thing mentioned in below artical:
http://ez.no/developer/articles/how_to_create_ez_publish_forms
but the form which i am getting is not what it should be . In my form all
the labels for respective text boxes and all the controls are not displaying and even
send button also is missing when i checked the view source of the form i found that <form > tag is also missing for the form so do any one know about this issue any help is appreciated
thanx in advance..

Akhi

eZ debug

Timing: Jan 18 2025 16:12:38
Script start
Timing: Jan 18 2025 16:12:38
Module start 'content'
Timing: Jan 18 2025 16:12:39
Module end 'content'
Timing: Jan 18 2025 16:12:39
Script end

Main resources:

Total runtime1.2627 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 587.6875180.8438
Module start 'content' 0.00991.0890 768.5313585.9063
Module end 'content' 1.09880.1638 1,354.4375333.3984
Script end 1.2626  1,687.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.3823210.0002
Check MTime0.00150.1175210.0001
Mysql Total
Database connection0.00160.126910.0016
Mysqli_queries1.165792.31731990.0059
Looping result0.00230.18061970.0000
Template Total1.214196.220.6071
Template load0.00260.202320.0013
Template processing1.211695.952120.6058
Template load and register function0.00010.010910.0001
states
state_id_array0.00110.091010.0011
state_identifier_array0.00270.214120.0014
Override
Cache load0.00220.1725390.0001
Sytem overhead
Fetch class attribute can translate value0.00140.113040.0004
Fetch class attribute name0.00170.131250.0003
XML
Image XML parsing0.00130.106740.0003
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00290.2309270.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs