Different version of the same object.

Author Message

Quoc Huy Nguyen Dinh

Tuesday 28 September 2010 2:29:17 am

Eidos Methode allows one to create multiple versions of the same article: print version, SMS version, web version, email campaign version... for example.

This would be interesting that eZ Publish incorporates this feature. Currently a way to accheive this would be to create those versions as if they were language. One could create "print", "sms", "web" as custom languages and then setup a siteaccess for each.

But it would be better if eZ have a separate feature for this.

André R.

Tuesday 28 September 2010 7:40:24 am

One way this is normally done in eZ Publish is to re use same content to multiple channels without having to maintain several versions. To archive this you'll have to think ahead of course, xml blocks like any content in eZ Publish separates design from content as much as possible so can be used many places. But for sms you might be better of by using a text block and add some javascript to an override of that edit template of the text block to make sure text is bellow 160 charters. So basically several attributes for different channels on the same object, but generally so they can be reused. For instance if you limit the sms text to 140 you can use it on twitter as well, and so on.

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

Quoc Huy Nguyen Dinh

Tuesday 28 September 2010 7:56:35 am

Hi Andre

Thanks for your reply.

I know you could modify a content class and add one attribute per channel but using a system like the languages of eZ, you could then assign different workflows to each of the channel and assign a different editor to each of the channel editing on the same article.

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 03:09:12
Script start
Timing: Jan 18 2025 03:09:12
Module start 'layout'
Timing: Jan 18 2025 03:09:12
Module start 'content'
Timing: Jan 18 2025 03:09:13
Module end 'content'
Timing: Jan 18 2025 03:09:13
Script end

Main resources:

Total runtime0.5188 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1641152.6406
Module start 'layout' 0.00570.0035 741.804739.4688
Module start 'content' 0.00920.5081 781.2734547.6016
Module end 'content' 0.51730.0015 1,328.875012.1563
Script end 0.5188  1,341.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5875160.0002
Check MTime0.00130.2471160.0001
Mysql Total
Database connection0.00080.150910.0008
Mysqli_queries0.469390.4637570.0082
Looping result0.00050.0933550.0000
Template Total0.487093.920.2435
Template load0.00220.421920.0011
Template processing0.484893.447720.2424
Template load and register function0.00010.019610.0001
states
state_id_array0.00130.249210.0013
state_identifier_array0.00100.197420.0005
Override
Cache load0.00180.3492150.0001
Sytem overhead
Fetch class attribute can translate value0.00090.164720.0004
Fetch class attribute name0.00110.212650.0002
XML
Image XML parsing0.00110.217220.0006
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00200.3919250.0001
String conversion0.00000.001740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs