Forums / General / Survey: partial object edit (important!)

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

eZ debug

Timing: Jan 18 2025 10:52:37
Script start
Timing: Jan 18 2025 10:52:37
Module start 'content'
Timing: Jan 18 2025 10:52:38
Module end 'content'
Timing: Jan 18 2025 10:52:38
Script end

Main resources:

Total runtime1.0318 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.7266180.8359
Module start 'content' 0.00770.8958 768.5625688.7266
Module end 'content' 0.90350.1282 1,457.2891345.0781
Script end 1.0317  1,802.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4177210.0002
Check MTime0.00160.1566210.0001
Mysql Total
Database connection0.00130.126310.0013
Mysqli_queries0.938790.98102100.0045
Looping result0.00220.20972080.0000
Template Total1.000997.020.5004
Template load0.00300.294320.0015
Template processing0.997896.709520.4989
Template load and register function0.00010.011110.0001
states
state_id_array0.00140.132510.0014
state_identifier_array0.00090.091120.0005
Override
Cache load0.00260.2496400.0001
Sytem overhead
Fetch class attribute can translate value0.00100.101050.0002
Fetch class attribute name0.00100.1004110.0001
XML
Image XML parsing0.00240.235150.0005
class_abstraction
Instantiating content class attribute0.00000.0022140.0000
General
dbfile0.00260.2489460.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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