Cronjobs hide / unhide

Author Message

Jorge estévez

Monday 15 February 2010 11:43:01 am

Hi!

I have activated the "hide" of a node with cronjobs once a folder reaches certain date, but I cannot find how to unhide once anoher date is reached, how can this be done?

I was looking for a unhide.php that will handle such a task... but it seems I am in a wrong direction.

I am using ez version 3.10

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Robin Muilwijk

Monday 15 February 2010 12:17:27 pm

Hi Jorge,

I searched the forum and found this; http://share.ez.no/forums/developer/what-s-the-opposite-of-hide-please

Seems that hide is a toggle function, so you need to call it again for the other date so it becomes visible again. Hope this helps.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Jorge estévez

Monday 15 February 2010 2:58:49 pm

Thanks, But I think it´s not so straight forward, as I have to deal with two dates, one of them is used to hide a folder and the other to unhide it.

My client has thousands of products all clasified in different categoryes, but in certain dates of the year he does not sell some of the products so the best practice is to set hide/unhide for a certain period of time (e.g. products as christmas stuff are only produced and available in the months near the end of the year so my client´s stocks lack of these kind of items far away from christmas)...

The main issue here is that one date hides and one date unhides...

I have been looking at the code of hide.php and it seems quite simple to make an unhide.php, but still I am not sure if I can mess around without destroying my database or whatever...

If some php guru could help here...

Thanks again

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

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 01:57:18
Script start
Timing: Jan 18 2025 01:57:18
Module start 'layout'
Timing: Jan 18 2025 01:57:18
Module start 'content'
Timing: Jan 18 2025 01:57:19
Module end 'content'
Timing: Jan 18 2025 01:57:19
Script end

Main resources:

Total runtime1.2262 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.0051 587.8125152.6094
Module start 'layout' 0.00510.0037 740.421939.4141
Module start 'content' 0.00881.2161 779.8359537.7266
Module end 'content' 1.22490.0013 1,317.562512.1875
Script end 1.2262  1,329.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2619160.0002
Check MTime0.00140.1127160.0001
Mysql Total
Database connection0.00060.051910.0006
Mysqli_queries1.175795.8798570.0206
Looping result0.00070.0562550.0000
Template Total1.192297.220.5961
Template load0.00230.184520.0011
Template processing1.189997.038620.5950
Template load and register function0.00010.011910.0001
states
state_id_array0.00100.083910.0010
state_identifier_array0.00080.065920.0004
Override
Cache load0.00190.1559230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.052220.0003
Fetch class attribute name0.00120.094640.0003
XML
Image XML parsing0.00070.056020.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00270.2212180.0002
String conversion0.00000.000640.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs