Survey: partial object edit (important!)

Author Message

Piotrek Karaś

Tuesday 24 June 2008 12:54:44 am

Hello everyone,

I would like to ask you if for any of your eZ Publish implementations you have ever modified object edit forms (templates), so that they do not include <b>all</b> of the object's attributes? Have you ever relied on that as a feature?

For example, you have a content class with special checkbox-like flag attribute that you will make available for administrators in the administration interface, but not for registered users in the public one.

A simple YES/NO answer will be fine. Also, if you have used that feature, how important is it for your installations?

Thanks!
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Piotrek Karaś

Thursday 03 July 2008 10:02:23 pm

No response ;(

Too bad. My question/survey is related to one of the bug fixes that will be introduced soon, securing most of the built-in datatypes:
http://issues.ez.no/10655

I expect that sites using the feature described above will have problems with their edit forms, meaning - the forms will never validate, hence it will not be possible to publish using those forms.

Now, it may be just our problem, but I suspect that we were not the only ones to use that, as there was no good alternative for partial object editing for a long time (and I don't think there is one now).

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

André R.

Friday 04 July 2008 3:29:35 am

I use it. But I guess you can just hide the attributes with css instead so they will get their default value ( so you need to set a default value in the class on required attributes, that you for some reason decides to hide ).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Hans Melis

Friday 04 July 2008 4:25:32 am

hmmm... I didn't see this before today.

We use that feature in a couple of places and on a couple of sites. There are a few places where it's used in the core business of a site, so I'd label it as critical there.

But isn't the change of behaviour a BC break? I thought that was only allowed for major releases.

Hans
http://blog.hansmelis.be

Piotrek Karaś

Friday 04 July 2008 4:56:10 am

<i>...There are a few places where it's used in the core business of a site, so I'd label it as critical there... but isn't the change of behaviour a BC break? I thought that was only allowed for major releases...</i>
This is exactly why I am trying to have more than just one or two people discuss this issue ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Hans Melis

Friday 04 July 2008 5:59:12 am

Well, thanks for the poke ;-)

Hans
http://blog.hansmelis.be

Maxime Thomas

Tuesday 19 August 2008 11:41:59 pm

Hello Piotrek,

Maybe I've got something for you...

In fact, a colleague and I were trying to only update one attribute by one attribute (or chunks of content by chunks, like in a wizard) and we found the great extension of Sir Kristof Coomans, eZLord :

http://projects.ez.no/index.php/powercontent

The only problem is that you version the content at each update, logical. :-/

Hope it helps.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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

Main resources:

Total runtime0.7422 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9297152.6250
Module start 'layout' 0.00500.0024 740.554739.4453
Module start 'content' 0.00740.7332 780.0000683.6484
Module end 'content' 0.74060.0015 1,463.648420.1406
Script end 0.7421  1,483.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4572160.0002
Check MTime0.00130.1798160.0001
Mysql Total
Database connection0.00060.084110.0006
Mysqli_queries0.674090.8088730.0092
Looping result0.00080.1060710.0000
Template Total0.711095.820.3555
Template load0.00230.308220.0011
Template processing0.708795.490020.3544
Template load and register function0.00010.013210.0001
states
state_id_array0.00100.135810.0010
state_identifier_array0.00110.143220.0005
Override
Cache load0.00200.2653400.0000
Sytem overhead
Fetch class attribute can translate value0.00060.083040.0002
Fetch class attribute name0.00140.1887110.0001
XML
Image XML parsing0.00190.252040.0005
class_abstraction
Instantiating content class attribute0.00000.0038140.0000
General
dbfile0.00100.1367350.0000
String conversion0.00000.000840.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs