Hide on publishing

Author Message

Sébastien Morel

Tuesday 23 May 2006 6:02:38 am

Hello,

For differents reasons, I must hide a object on its publishing in a Specific Siteaccess, I havn't find a simple way.

Must I do an new worklflow ? or there is another solution ?

Thanks

Séb

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Kristof Coomans

Tuesday 23 May 2006 11:21:40 pm

Hi Sébastien

In the admin interface, click on "My account" in the top menu. Now in the left menu under "Edit mode settings", make sure "on" is selected.

Now when you edit an object, you'll get a window called "Locations" at the bottom, where you can choose the visibility after publishing from a dropdown box.

Since eZ 3.8, the locations window can only be used on objects that aren't published yet.

 

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

Vidar Langseid

Wednesday 24 May 2006 1:12:56 am

Hi

You might also want to read this bugreport:
http://ez.no/content/view/full/99649

It describes what eZ publish does concerning notifications when objects are published as hidden.

Best regards,
Vidar L

Sébastien Morel

Wednesday 24 May 2006 3:34:07 am

hello,

Thanks you very much!!!

I don't still know this block. I will use this principle to force the invisibility of the new nodes in my siteaccess

++

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Monday 29 May 2006 2:52:36 am

Hello,

I have succeed for hidding node on publishing.... BUT

1: The user must go in her account to check on the emplacement box
What can I do to check this option by default ?

2: If an user copy a hidding node, the result node isn't hidding ...
How do for keep the statut ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Kristof Coomans

Tuesday 13 June 2006 11:52:44 pm

Hi Sébastien

1. Actually it is a user preference. You can maybe make a little CLI script to add the user preference for each user, it's quite simple.

Some basic code for setting preferences:

include_once( 'kernel/classes/ezpreferences.php' );
eZPreferences::setValue( $key, $value, $userID );

2: Please reports this as a bug (or at least an enhancement request).

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 31 2025 06:27:02
Script start
Timing: Jan 31 2025 06:27:02
Module start 'layout'
Timing: Jan 31 2025 06:27:02
Module start 'content'
Timing: Jan 31 2025 06:27:03
Module end 'content'
Timing: Jan 31 2025 06:27:03
Script end

Main resources:

Total runtime0.8098 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0156151.1953
Module start 'layout' 0.00560.0025 739.210936.6328
Module start 'content' 0.00820.8008 775.84381,014.1250
Module end 'content' 0.80900.0008 1,789.968815.8750
Script end 0.8098  1,805.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3827160.0002
Check MTime0.00130.1571160.0001
Mysql Total
Database connection0.00060.079310.0006
Mysqli_queries0.750892.7100680.0110
Looping result0.00060.0771660.0000
Template Total0.779096.220.3895
Template load0.00190.239820.0010
Template processing0.777195.955720.3885
Template load and register function0.00120.146310.0012
states
state_id_array0.00210.254010.0021
state_identifier_array0.00100.127420.0005
Override
Cache load0.00170.2098450.0000
Sytem overhead
Fetch class attribute can translate value0.00050.058130.0002
Fetch class attribute name0.00170.215880.0002
XML
Image XML parsing0.00210.259930.0007
class_abstraction
Instantiating content class attribute0.00000.0021110.0000
General
dbfile0.00210.2598220.0001
String conversion0.00000.000940.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs