disable edit attribute?

Author Message

Andreas Adelsberger

Thursday 25 January 2007 11:09:00 pm

hi, is there a way to disable the editing of a particular attribute of a class? just overriding the edit template is not safe i guess. Or do I have to separate this attribute to another class, where you don't have the right to edit an make an object relation?

thanx

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Ɓukasz Serwatka

Thursday 25 January 2007 11:18:06 pm

Hi,

This is not supported by eZ Publish at the moment. Take a look on this contribution:
http://ez.no/community/contribs/hacks/attributeedit_policy

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristof Coomans

Friday 26 January 2007 1:13:24 am

I've updated my contribution, to make it work with eZ 3.9.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

kracker (the)

Friday 26 January 2007 1:59:08 am

I've added a brief node covering this subject, feel free to extend it!

http://ezpedia.org/wiki/en/ez/attributeedit_policy

//kracker

<i>Music: Fight Club - This is Your Life (featuring Tyler Durden)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Andreas Adelsberger

Friday 26 January 2007 4:24:17 am

thanx guys! thumbs up for your help, that's exactely what i needed!

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

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:22:42
Script start
Timing: Jan 19 2025 00:22:42
Module start 'layout'
Timing: Jan 19 2025 00:22:42
Module start 'content'
Timing: Jan 19 2025 00:22:44
Module end 'content'
Timing: Jan 19 2025 00:22:44
Script end

Main resources:

Total runtime1.8576 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0112 587.9063152.6250
Module start 'layout' 0.01120.0061 740.531339.4453
Module start 'content' 0.01731.8388 779.9766654.0625
Module end 'content' 1.85610.0014 1,434.039112.1719
Script end 1.8575  1,446.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.2478160.0003
Check MTime0.00240.1266160.0001
Mysql Total
Database connection0.00120.065410.0012
Mysqli_queries1.787996.2501670.0267
Looping result0.00080.0408650.0000
Template Total1.795296.620.8976
Template load0.00240.130420.0012
Template processing1.792796.509820.8964
Template load and register function0.00010.005410.0001
states
state_id_array0.00580.313610.0058
state_identifier_array0.00200.107520.0010
Override
Cache load0.00210.1106230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.029040.0001
Fetch class attribute name0.00180.097890.0002
XML
Image XML parsing0.00240.127040.0006
class_abstraction
Instantiating content class attribute0.00000.0009100.0000
General
dbfile0.00150.0800380.0000
String conversion0.00000.000640.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs