object relation: only allow to fetch images

Author Message

Georg Franz

Friday 11 May 2007 3:25:41 am

Hi,

I've added a object relation and a object relation list datatype to a class. Is there (an easy) way only allow images to be fetched as relation?

(setting browse.ini? or a template override?)

Thanx in advance!

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Bruce Morrison

Friday 11 May 2007 3:59:45 am

Hi Georg

What version are you using? The Object relations datatype has allowed for this since at least 3.8: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/object_relations

It doesn't appear to be avialiable for an object relation datatype. You could override the edit template for a specific attribute to only give a list of objects of a particular class for the user to choose from.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 03:19:31
Script start
Timing: Jan 19 2025 03:19:31
Module start 'layout'
Timing: Jan 19 2025 03:19:31
Module start 'content'
Timing: Jan 19 2025 03:19:31
Module end 'content'
Timing: Jan 19 2025 03:19:31
Script end

Main resources:

Total runtime0.0149 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.0043 590.4063152.6406
Module start 'layout' 0.00430.0028 743.046939.4766
Module start 'content' 0.00720.0054 782.523489.3672
Module end 'content' 0.01260.0022 871.890630.3047
Script end 0.0148  902.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.0797140.0002
Check MTime0.00117.0864140.0001
Mysql Total
Database connection0.00063.723510.0006
Mysqli_queries0.002415.839130.0008
Looping result0.00000.107310.0000
Template Total0.001912.710.0019
Template load0.00096.048210.0009
Template processing0.00106.645810.0010
Override
Cache load0.00053.636910.0005
General
dbfile0.00149.090880.0002
String conversion0.00000.052940.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