Forums / Developer / How to let site owner create forms?

How to let site owner create forms?

Author Message

Nicklas Lundgren

Wednesday 15 June 2005 1:45:02 am

Hi all,

We are planning a new project, where the customer wants to create forms of his own. We have considered granting him access to the setup-section of the eZ P admin interface. Thus, he could create his own classes. But this is a real threat, since we cant expect that the customer knows his way through this rather advanced section, and to my knowledge one cant restrict the permissions to setup to a specific nordtree, or such.

So, now we are thinking about an alternate way to achieve this. The customer needs to create simple forms vith input, textareas, radiobuttons and checkboxes. All form-replies will be emailed to the customers email-address.

My simple question is - anyone having experience from this?
All suggestiones is greatly appreciated.

Kind regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

Arran Price

Wednesday 15 June 2005 5:01:03 pm

Hi Nicklas,
the ideal way as you know is to create the appropriate classes. You might want to consider training them or putting in a workflow so you can review before they are published.

Otherwise...
If I were doing it outside of ezpublish, I would have the forms created based on the contents of an xml form which could be created by the client, using a form I would have created for that purpose.

The problem with that, is that its really complicated compared to the alternative.

A thought springs to mind while I write this...
Can you create a new class group, and only give the client access to create/edit classes within that group? If so, you could then create custom templates etc and not have to be so worried about what they may inadvertently get access to? If you cant, that would be a suggestion to add to the next round of feature additions.

Hope thats of some help.

Arran

Bruce Morrison

Wednesday 15 June 2005 6:04:58 pm

Hi Nicklas

I think I may have something that will fit your needs. We have a extension that we have been planing on releasing as a product but are just too busy to polish it off and package it up. As a result it's likely we will release it under the GPL.

In it's current state it is quite usable, has some installation documentation, but lacks configuration and operational documentation.

If you are interested drop me an email @ brucem@designit.com.au.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

eZ debug

Timing: Jan 18 2025 15:20:27
Script start
Timing: Jan 18 2025 15:20:27
Module start 'content'
Timing: Jan 18 2025 15:20:27
Module end 'content'
Timing: Jan 18 2025 15:20:27
Script end

Main resources:

Total runtime0.8375 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.8516180.8281
Module start 'content' 0.00600.6832 769.6797589.4063
Module end 'content' 0.68920.1483 1,359.0859336.7422
Script end 0.8375  1,695.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4323210.0002
Check MTime0.00140.1663210.0001
Mysql Total
Database connection0.00070.086110.0007
Mysqli_queries0.767891.67181960.0039
Looping result0.00210.25081940.0000
Template Total0.809496.620.4047
Template load0.00190.221120.0009
Template processing0.807596.417020.4038
Template load and register function0.00010.009210.0001
states
state_id_array0.00100.113410.0010
state_identifier_array0.00080.099620.0004
Override
Cache load0.00160.1899290.0001
Sytem overhead
Fetch class attribute can translate value0.00130.155940.0003
Fetch class attribute name0.00100.124150.0002
XML
Image XML parsing0.00120.143240.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00280.3347340.0001
String conversion0.00000.000730.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs