Forums / Developer / Object edit extension handler - changelog

Object edit extension handler - changelog

Author Message

Kristof Coomans

Tuesday 28 March 2006 1:27:57 am

I'm looking at the content object edit extension handler functionality, which will be part of the upcoming eZ publish 3.8 release.

It looks like such a handler is ideal for implementing a "changelog", using a seperate db table. When editing an object, there will be an extra text field where you can write a little note about what you've changed in the specific version you're editing.

Is there anyone interested in having this "changelog" feature? Or was there someone with the same idea and has he or she already made such an extension?

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

Paul Borgermans

Tuesday 28 March 2006 1:50:38 am

With the content diff implementation if implemented fully, this would rather be *why* something has changed ;-)

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kristof Coomans

Tuesday 28 March 2006 2:14:28 am

Idd, you're right. That's what I actually meant :)

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

Xavier Dutoit

Tuesday 28 March 2006 8:06:50 am

Hi,

Wouldn't it be easier/more the ez way to create a new attribute "logger" that tracks that ? No need for a separate table and you put that only on the content you want to track.

For those of us (ie. me ;) that have some difficulties to follow all the nice extensions you spoil us with, could you remind me what this content object edit extension handler does ?

Any link more than welcome.

X+

http://www.sydesy.com

Kristof Coomans

Tuesday 28 March 2006 10:12:59 am

If you're having objects that can be edited by many people (eg. in a wiki), other people's changelog notes can get deleted by accident. I believe in some cases it's better to just have a changelog attribute, in other cases not.

You can read more about the new content edit extension handler functionality at http://pubsvn.ez.no/nextgen/trunk/doc/features/3.8/content_edit_extension_handler.txt ( I didn't invent this one ;-) ).

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

Gabriel Ambuehl

Tuesday 28 March 2006 11:45:25 am

Maybe we can get blog trackbacks without workflow hackery now?

I dont really see what you're trying to achieve, though. Is the changelog to be filled automatically or by the users?

Visit http://triligon.org

Kristof Coomans

Tuesday 28 March 2006 10:13:33 pm

Hi guys

Xavier, you were right about the attribute. If we have a custom datatype (based on the text field) that clears it's own attribute content whenever a new version of the attribute gets created, then each object version can contain it's own changelog note. It will be very easy to display those notes eg. in the content/versions view in an additional column.

Thanks for bringing me back on the right track with your good advice! :)

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

Kristof Coomans

Wednesday 29 March 2006 12:15:57 am

I committed something to SVN: http://pubsvn.ez.no/community/trunk/extension/changelog. You can take a look at it when you have some time.

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

Xavier Dutoit

Wednesday 29 March 2006 2:11:04 am

Argl !

I managed to install and test your (wonderful) extension xajax to add classes and you've published 3 in the meantime ;)

Quick question on the licence: on one txt you mention LGPL but you're put the GPL.txt in the doc. What's the right one ?

I'm not sure it makes a lot of difference as it works only with ez that is GPLed, but anyway, just to pretend I've read the doc ;)

X+

http://www.sydesy.com

Kristof Coomans

Wednesday 29 March 2006 2:31:36 am

Indeed, it had to be GPL. It has been corrected in svn.

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

kracker (the)

Friday 08 December 2006 4:31:52 am

<b>All</b>

I have added a basic entry for the changelog extension on eZpedia!
<i>http://ezpedia.org/wiki/en/ez/changelog_attribute</i>

Please feel free to extend and add to this documentation article.

//kracker

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

eZ debug

Timing: Jan 19 2025 11:46:43
Script start
Timing: Jan 19 2025 11:46:43
Module start 'content'
Timing: Jan 19 2025 11:46:44
Module end 'content'
Timing: Jan 19 2025 11:46:44
Script end

Main resources:

Total runtime1.7203 sec
Peak memory usage4,096.0000 KB
Database Queries224

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 589.0703180.8281
Module start 'content' 0.00911.5099 769.8984762.1328
Module end 'content' 1.51910.2011 1,532.0313348.4297
Script end 1.7202  1,880.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2374210.0002
Check MTime0.00140.0821210.0001
Mysql Total
Database connection0.00100.056210.0010
Mysqli_queries1.598592.92032240.0071
Looping result0.00270.15722220.0000
Template Total1.674497.320.8372
Template load0.00170.098820.0008
Template processing1.672797.236320.8364
Template load and register function0.00010.007810.0001
states
state_id_array0.00140.083410.0014
state_identifier_array0.00330.193220.0017
Override
Cache load0.00160.0909530.0000
Sytem overhead
Fetch class attribute can translate value0.00210.121060.0003
Fetch class attribute name0.00240.1421150.0002
XML
Image XML parsing0.00290.167260.0005
class_abstraction
Instantiating content class attribute0.00010.0029210.0000
General
dbfile0.00460.2688480.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
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs