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 15 2025 01:23:45
Script start
Timing: Jan 15 2025 01:23:45
Module start 'layout'
Timing: Jan 15 2025 01:23:45
Module start 'content'
Timing: Jan 15 2025 01:23:46
Module end 'content'
Timing: Jan 15 2025 01:23:46
Script end

Main resources:

Total runtime1.3351 sec
Peak memory usage6,144.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 686.0703183.6875
Module start 'layout' 0.00690.0024 869.757852.5625
Module start 'content' 0.00931.3235 922.32031,792.7266
Module end 'content' 1.33280.0022 2,715.046964.5469
Script end 1.3350  2,779.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00580.4373160.0004
Check MTime0.00130.0946160.0001
Mysql Total
Database connection0.00150.115010.0015
Mysqli_queries1.271395.2219540.0235
Looping result0.00060.0464520.0000
Template Total1.291296.720.6456
Template load0.00730.549320.0037
Template processing1.283896.162420.6419
Template load and register function0.00140.101310.0014
states
state_id_array0.00180.134310.0018
state_identifier_array0.00340.255320.0017
Override
Cache load0.00680.5075190.0004
Sytem overhead
Fetch class attribute can translate value0.00100.073620.0005
Fetch class attribute name0.00250.188540.0006
XML
Image XML parsing0.00100.075120.0005
class_abstraction
Instantiating content class attribute0.00020.012640.0000
General
dbfile0.00090.0654210.0000
String conversion0.00000.000540.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.0002 secs