Forums / Developer / Hide on publishing
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
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
++
Monday 29 May 2006 2:52:36 am
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 ?
Tuesday 13 June 2006 11:52:44 pm
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).