Limiting allowed classes for object relations attributes

Author Message

Kedar Deshpande

Wednesday 06 January 2010 10:49:12 am

In my content structure I have 10 folders at the root level, each containing content objects of type 'person'. I'm creating a new content class and adding a object relations attribute in which I want to limit the selection to only the 'person' class. This is not a problem but what if I wanted to limit the 'person' objects to those contained in 3 particular folders instead of from all 10? Is there a way I can limit from where ez pulls these objects to select from?

Jérôme Vieilledent

Wednesday 06 January 2010 1:53:18 pm

Hi Kedar

As far as I know object relations datatype, this is not possible... Sorry ! :|

Nicolas Pastorino

Monday 01 February 2010 9:14:09 am

Hi Kedar,

An option could be to create a new datatype, based on the built-in one 'ezobjectrelationlist', which would implement the features you are missing.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 30 2025 00:48:56
Script start
Timing: Jan 30 2025 00:48:56
Module start 'layout'
Timing: Jan 30 2025 00:48:56
Module start 'content'
Timing: Jan 30 2025 00:48:56
Module end 'content'
Timing: Jan 30 2025 00:48:56
Script end

Main resources:

Total runtime0.0269 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.0059 588.3906151.2422
Module start 'layout' 0.00590.0035 739.632836.7109
Module start 'content' 0.00940.0158 776.343890.2188
Module end 'content' 0.02520.0017 866.562533.9922
Script end 0.0269  900.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.4344140.0002
Check MTime0.00124.3835140.0001
Mysql Total
Database connection0.00103.667710.0010
Mysqli_queries0.003312.242530.0011
Looping result0.00000.047810.0000
Template Total0.00114.210.0011
Template load0.00093.269910.0009
Template processing0.00020.913410.0002
Override
Cache load0.00062.099610.0006
General
dbfile0.005319.575380.0007
String conversion0.00000.038140.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