Users with auto-filled forms

Author Message

Tim Dickinson

Sunday 01 August 2004 3:41:33 pm

Hi all,

I am currently working on a new site which has 3 types of users (called A, B, and C)
A is a standard (guest account) user
B is a standard (guest account) user and also has info about a venue
C is a standard (guest account) user and also has info about an event

I would like to make a class that both users B and C can 'create' that has information about an event at a venue.

However, If B 'creates' the content I would like the parts about the venue pre-filled with info from his user account, and if C 'creates' the content I would like the form pre-filled with info about the event from his user account.

Does that make sense?

Is there any way that I could do that, or would it be much, much simplier to just have one prefilled form for B, and a separate one for C?

If that's true, how do I pre-fill a form with information from a users account, such as the address, region, and postcode from B (a venue account)?

Thanks in advance,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Kåre Køhler Høvik

Friday 06 August 2004 4:37:24 am

You can solve this in the templates. First determine what kind of user it is, then fetch the data you want to prefill. Last you insert the values as default in the form. Please contact support ( http://ez.no/services/support ) for complete solution.

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:21:56
Script start
Timing: Jan 31 2025 01:21:56
Module start 'layout'
Timing: Jan 31 2025 01:21:56
Module start 'content'
Timing: Jan 31 2025 01:21:57
Module end 'content'
Timing: Jan 31 2025 01:21:57
Script end

Main resources:

Total runtime0.9446 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.1328151.2109
Module start 'layout' 0.00770.0068 739.3438220.6875
Module start 'content' 0.01450.9293 960.03134,436.0469
Module end 'content' 0.94380.0008 5,396.07817.8516
Script end 0.9446  5,403.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4528160.0003
Check MTime0.00150.1633160.0001
Mysql Total
Database connection0.00100.107210.0010
Mysqli_queries0.850890.0634540.0158
Looping result0.00060.0607520.0000
Template Total0.886493.820.4432
Template load0.00240.257120.0012
Template processing0.883993.575520.4420
Template load and register function0.00140.145410.0014
states
state_id_array0.00130.141810.0013
state_identifier_array0.00090.090520.0004
Override
Cache load0.00210.2189190.0001
Sytem overhead
Fetch class attribute can translate value0.00210.222120.0010
Fetch class attribute name0.00230.240840.0006
XML
Image XML parsing0.00120.123720.0006
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00220.2292210.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs