Forums / Setup & design / Object rel. list browsing (user site)-> Template issue

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

eZ debug

Timing: Jan 18 2025 20:50:25
Script start
Timing: Jan 18 2025 20:50:25
Module start 'content'
Timing: Jan 18 2025 20:50:26
Module end 'content'
Timing: Jan 18 2025 20:50:26
Script end

Main resources:

Total runtime1.4189 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.9766180.8125
Module start 'content' 0.00641.2870 769.7891571.5313
Module end 'content' 1.29340.1254 1,341.3203337.3672
Script end 1.4188  1,678.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3301210.0002
Check MTime0.00160.1102210.0001
Mysql Total
Database connection0.00110.076510.0011
Mysqli_queries1.340194.44282000.0067
Looping result0.00190.13211980.0000
Template Total1.383597.520.6918
Template load0.00240.167220.0012
Template processing1.381297.339720.6906
Template load and register function0.00010.007010.0001
states
state_id_array0.00180.124510.0018
state_identifier_array0.00140.099120.0007
Override
Cache load0.00200.1413390.0001
Sytem overhead
Fetch class attribute can translate value0.00160.116030.0005
Fetch class attribute name0.00110.075370.0002
XML
Image XML parsing0.00120.083930.0004
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.00200.1389330.0001
String conversion0.00000.000430.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
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
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