Object rel. list browsing (user site)-> Template issue

Author Message

Marco Zinn

Saturday 14 May 2005 3:55:21 am

Hi,
I'm using ez 3.5.2 and am happy with the enhanced object relation lists.
Now, i have some UI issue with this:
I created classes A and B. A has an attribute, which is an objects relation list of objects of class B.
Users are allowed to create objects of both classes A and B throught the "user site" (not admin site). This works quite fine, once you edit the "edit" templates.
Now, when a user creates an object of class A, he can can create objects of class "B" in this object relation list attribute of A (still with me?). This works quite fine, too.
But he can also browse for existing "B"-objects. And here is an UI-issue: The "browse"-templates makes use of the "line"-template of the existing nodes. But these line-templates don't have any checkbox or any other option to "select" them. Also, these templates leave the browse mode immediatly, as the links do not contain the "browse" URLs. Why? Because the "browse" templates (from admin interface, not overridden yet) uses the "line" templates of the user site.
Of course, i can override the browse template and all line templates (creating some kind of "browse" view mode).
Is the the only way to do this? Why does the "browse" template not present any checkboxes or radio boxes in order to "pick" the objects, that i need?

So: How to do (template-wise) the perfect "browse objects for objects relation attributes" concept on the <i>user</i> site?

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

Xavier Dutoit

Monday 16 May 2005 7:34:27 am

Hi,

Just to be sure I understand you, what is the selection method you use ?

I don't get when you get the browse view.

X+

http://www.sydesy.com

Marco Zinn

Saturday 21 May 2005 5:45:00 am

Hi,
i have removed that attribute for now, so i need to re-produce this first ;)
I think, i used the defaults. What do you mean by "selection method"?
I don't understand your sentence "I don't get when you get the browse view." ... you don't get what?
Thanks for trying to help me out ;)

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

Xavier Dutoit

Saturday 21 May 2005 8:14:33 am

Hi,

when you add a enhanced object relation attribute, you can set several selection method (check box list...), what is the one you've selected ?

Anyway, try to download the latest version, it has been improved.

X+

http://www.sydesy.com

Marco Zinn

Saturday 21 May 2005 1:39:04 pm

ah, okay, i got you.

i didn't use the contribution, i used the datatype, that is included in ez 3.5.2.
I'll give the new&improved operator a try.
thx.

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

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 19 2025 00:24:28
Script start
Timing: Jan 19 2025 00:24:28
Module start 'layout'
Timing: Jan 19 2025 00:24:28
Module start 'content'
Timing: Jan 19 2025 00:24:29
Module end 'content'
Timing: Jan 19 2025 00:24:29
Script end

Main resources:

Total runtime1.0250 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.1406152.6406
Module start 'layout' 0.00900.0032 740.781339.4766
Module start 'content' 0.01221.0112 780.2578566.4375
Module end 'content' 1.02340.0015 1,346.695316.1250
Script end 1.0249  1,362.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3752160.0002
Check MTime0.00140.1368160.0001
Mysql Total
Database connection0.00160.152010.0016
Mysqli_queries0.955593.2201630.0152
Looping result0.00070.0705610.0000
Template Total0.986596.220.4933
Template load0.00280.272320.0014
Template processing0.983795.975920.4919
Template load and register function0.00030.029810.0003
states
state_id_array0.00140.137610.0014
state_identifier_array0.00160.152420.0008
Override
Cache load0.00230.2291390.0001
Sytem overhead
Fetch class attribute can translate value0.00130.126120.0006
Fetch class attribute name0.00120.119870.0002
XML
Image XML parsing0.00180.176120.0009
class_abstraction
Instantiating content class attribute0.00000.0026100.0000
General
dbfile0.00160.1575220.0001
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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs