Editing an ezobjectrelationlist without browsing

Author Message

Conrad Chu

Monday 06 February 2006 4:04:56 pm

On our web site, I have "team" objects which each contain an ezobjectrelationlist called "members". The goal is for a logged in users to find a team, click "sign me up", and automatcally have their user object appended to the "members" ezobjectrelationlist.

I look over documentation regarding <form action=/content/action> and haven't found any answers.

The problem boils down to being able to let a user edit an team object's ezobjectrelationlist in one-click, without having to using the admin-side browsing interface. Preferably, I don't have to create a new draft for this to happen, but right now, I'm open to any thing.

In PHP, I know we have things like storeAttributes(), but I need to do all of this in my /full/team.tpl file. Can someone help me or point me in the right direction?

The workaround I had in mind is UGLY. When a user signs up for team, a child comment object tagged with their user_id would be created. I could then track the team members based on the children of the team. Yuck!

Thanks!

Conrad Chu

Wednesday 08 February 2006 4:13:36 pm

Hi everyone,

I'm desperate for help (we're launch in 1 week)!!

Can anyone shed some light as to how I might edit an object's objectrelationlist from a user-facing siteaccess?

Thank you!

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 18 2025 10:56:39
Script start
Timing: Jan 18 2025 10:56:39
Module start 'layout'
Timing: Jan 18 2025 10:56:39
Module start 'content'
Timing: Jan 18 2025 10:56:40
Module end 'content'
Timing: Jan 18 2025 10:56:40
Script end

Main resources:

Total runtime0.9286 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1797152.6406
Module start 'layout' 0.00530.0030 741.820339.4766
Module start 'content' 0.00820.9191 781.2969423.3594
Module end 'content' 0.92730.0013 1,204.65638.1250
Script end 0.9286  1,212.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3524160.0002
Check MTime0.00150.1589160.0001
Mysql Total
Database connection0.00080.086510.0008
Mysqli_queries0.883095.0845520.0170
Looping result0.00080.0824500.0000
Template Total0.889295.820.4446
Template load0.00240.262320.0012
Template processing0.886895.494120.4434
Template load and register function0.00020.021710.0002
states
state_id_array0.00110.122110.0011
state_identifier_array0.00200.220820.0010
Override
Cache load0.00200.2187140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.076210.0007
Fetch class attribute name0.00170.179520.0008
XML
Image XML parsing0.00010.013710.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00350.3721100.0003
String conversion0.00000.001240.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs