Content Object's is_published and status not the same?!

Author Message

Wei Dai

Monday 14 July 2008 10:41:44 pm

Hi,
Having a folder object publish. And I used the $folder_object|attribute(show, 2) to see the attribute, the is_published is set to 0 but the status is set to 1? What is the problem?

Certified eZ Publish 4 developer looking for develop information & collaboration.

Kristof Coomans

Tuesday 15 July 2008 12:24:20 am

Hi Wei

As far as I know the is_published attribute of ezcontentobject is a leftover from the old days and it doesn't have a meaning any more. Instead, the status attribute should be used indeed.

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

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 16:23:48
Script start
Timing: Jan 18 2025 16:23:48
Module start 'layout'
Timing: Jan 18 2025 16:23:48
Module start 'content'
Timing: Jan 18 2025 16:23:49
Module end 'content'
Timing: Jan 18 2025 16:23:49
Script end

Main resources:

Total runtime0.8179 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.2891152.6563
Module start 'layout' 0.00780.0039 741.945339.5078
Module start 'content' 0.01170.8046 781.4531520.4531
Module end 'content' 0.81640.0015 1,301.90638.1094
Script end 0.8179  1,310.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4154160.0002
Check MTime0.00140.1678160.0001
Mysql Total
Database connection0.00190.229210.0019
Mysqli_queries0.773494.5613540.0143
Looping result0.00050.0589520.0000
Template Total0.780595.420.3903
Template load0.00220.263320.0011
Template processing0.778495.162720.3892
Template load and register function0.00010.015210.0001
states
state_id_array0.00170.213010.0017
state_identifier_array0.00130.158320.0006
Override
Cache load0.00160.200990.0002
Sytem overhead
Fetch class attribute can translate value0.00050.064220.0003
Fetch class attribute name0.00120.144130.0004
XML
Image XML parsing0.00070.085320.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0945160.0000
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs