restrict object relation to "browse" a particular node other than root?

Author Message

Claire Lin

Saturday 12 July 2003 7:51:20 pm

Hi,

I've spend the last 7 hours experimenting with this, am running out of things to try. Please help.

I created a new datatype "objectrelationX" based on the object relation datatype. Everything is the same as the object relation datatype, other than that "objectrelationX" allows the admin to restrict the node from which the user can pick a related object from. Currently, the object relation datatype allows the user to pick any object under the root folder, because the start_node of "browse" is set to "2".

Yet I have trouble setting the start_node parameter.

Can someone suggest a way of setting the start_node at the template level or the php or tpl files of the extension datatype in question "objectrelationX"?

Any help is greatly appreciated.
Claire Lin

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

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0039 589.3203152.6563
Module start 'layout' 0.00390.0034 741.976639.4922
Module start 'content' 0.00730.0046 781.468885.2891
Module end 'content' 0.01190.0018 866.757830.3047
Script end 0.0137  897.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.3957140.0002
Check MTime0.00107.4963140.0001
Mysql Total
Database connection0.00053.329410.0005
Mysqli_queries0.002518.127030.0008
Looping result0.00000.198510.0000
Template Total0.001510.710.0015
Template load0.00075.391110.0007
Template processing0.00075.324910.0007
Override
Cache load0.00053.689810.0005
General
dbfile0.00021.790180.0000
String conversion0.00000.050540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs