Re-publish unpublished objects

Author Message

Roy Bøhmer

Monday 13 March 2006 3:21:07 pm

Hi!

As far I understand, the way cronjob unpublishes objects is by hiding the nodes. If that's the case I should be able to see the nodes in admin after unpublish. But I can't. If I manually hide a node I can see it.
In site.ini I have

[SiteAccessSettings]
ShowHiddenNodes=true

Question:
Where can I find unpublished articles? Is it possible to re-publish them?

Ez 3.7.3

Best regards
Roy

Łukasz Serwatka

Tuesday 14 March 2006 12:01:47 am

eZ publish supports two possibilities. Unpublish and hide. The first one removes objects from content tree. Removed objects are placed in trash.

About restoring content you can read here:
http://ez.no/doc/ez_publish/user_manual/3_6/daily_tasks/restoring_content

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Roy Bøhmer

Tuesday 14 March 2006 12:36:36 am

Thank you, Lukasz

I guess that solves the problem.

Roy

Daniele Nocentini

Monday 22 October 2007 6:10:16 am

I try the functionality unpublish by date in article class, the workflow unpublish the articles but I don't find any unpublishe article in my trash, I missing my unpublished articles?

Antica Bottega Digitale srl
http://www.abd.it

Martynas Bilevičius

Monday 22 October 2007 10:24:25 pm

Hi, i try to use article publish and unpublish in site but nothing is working, how to configurate workflows and trigers what everything work, mayby have some examples how to creat workflows to article publish and unpublish, i creat some workflows and see in workflows proceses that som events is but notfing work, mayby some problems with cron jobs.

Łukasz Serwatka

Monday 22 October 2007 11:46:34 pm

Hi,

Unpublish action is done by cronjob and it is not related to eZ Publish workflow system. First you need to add new date or datetime attribute with identifier "unpublish_date" (atttribute have to have exactly the same atrribute ID) to your content class. Fill up correct date in object edit mode then store it.

In content.ini.append.php set

[UnpublishSettings]
# Where 2 is top level of content subtree
RootNodeList[]=2
# Class identifiers
ClassList[]=article

In cronjob.ini.append.php add

[CronjobPart-unpublish]
Scripts[]=unpublish.php

Clear the INI cache and execute cronjob script as:

$ php runcronjobs.php unpublish

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Tuesday 23 October 2007 12:04:08 am

Yes all right! but the question is, where ez put the unpublished articles? in the trash? i don't see any unpublished articles in my trash after I run cronjobs. I use ez 3.10.0.

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Tuesday 23 October 2007 5:42:49 am

@Daniele:

My answer was on Martynas's question. Yes, eZ Publish should put unpublished objects into trash. It looks like an issue in eZ Publish 3.10. Could you post an issue about it?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Nocentini

Tuesday 23 October 2007 6:00:34 am

I try again on another ez installation and there is the same problem, I think is a bug.
So a post this issue on bug tracking.

http://issues.ez.no/IssueView.php?Id=11741&activeItem=1

Antica Bottega Digitale srl
http://www.abd.it

Martynas Bilevičius

Tuesday 23 October 2007 6:43:51 am

Thanks, Łukasz Serwatka i try tomorrow like you say.

Martynas Bilevičius

Thursday 25 October 2007 3:26:41 am

Try but somfing wrong, nothing heapen. O How to creat workwflow event for publish and unbublish.

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

Main resources:

Total runtime0.8085 sec
Peak memory usage4,096.0000 KB
Database Queries85

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.9063152.6250
Module start 'layout' 0.00680.0035 740.531339.4453
Module start 'content' 0.01040.7967 779.9766705.5781
Module end 'content' 0.80710.0014 1,485.554720.1641
Script end 0.8085  1,505.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3971160.0002
Check MTime0.00130.1669160.0001
Mysql Total
Database connection0.00090.107010.0009
Mysqli_queries0.730590.3505850.0086
Looping result0.00080.0957830.0000
Template Total0.771595.420.3857
Template load0.00200.252720.0010
Template processing0.769495.165920.3847
Template load and register function0.00020.030210.0002
states
state_id_array0.00100.127210.0010
state_identifier_array0.00230.288820.0012
Override
Cache load0.00180.2177520.0000
Sytem overhead
Fetch class attribute can translate value0.00110.141140.0003
Fetch class attribute name0.00120.1538130.0001
XML
Image XML parsing0.00130.156640.0003
class_abstraction
Instantiating content class attribute0.00000.0035170.0000
General
dbfile0.00080.1044240.0000
String conversion0.00000.001140.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
6content/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: 45
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs