Forums / Developer / Hide on publishing

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

eZ debug

Timing: Jan 21 2025 00:41:14
Script start
Timing: Jan 21 2025 00:41:14
Module start 'content'
Timing: Jan 21 2025 00:41:16
Module end 'content'
Timing: Jan 21 2025 00:41:16
Script end

Main resources:

Total runtime2.1067 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 587.6094180.8438
Module start 'content' 0.01011.9582 768.4531645.8281
Module end 'content' 1.96830.1382 1,414.2813341.0703
Script end 2.1066  1,755.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.1998210.0002
Check MTime0.00140.0673210.0001
Mysql Total
Database connection0.00070.034110.0007
Mysqli_queries2.003695.10952050.0098
Looping result0.00220.10372030.0000
Template Total2.063798.021.0318
Template load0.00220.103120.0011
Template processing2.061597.855621.0307
Template load and register function0.00010.006710.0001
states
state_id_array0.00600.284910.0060
state_identifier_array0.00220.102220.0011
Override
Cache load0.00190.0906450.0000
Sytem overhead
Fetch class attribute can translate value0.00160.075740.0004
Fetch class attribute name0.00100.046680.0001
XML
Image XML parsing0.00390.185740.0010
class_abstraction
Instantiating content class attribute0.00000.0013110.0000
General
dbfile0.00590.2809330.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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