This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Hide/Show nodes with Website Toolbar
expandshrink

Hide/Show nodes with Website Toolbar

Hide/Show nodes with Website Toolbar

Tuesday 03 August 2010 11:14:58 am - 4 replies

Hello,

is there a way to enable the "hide/show node" functionality in the website toolbar (ezwt) ?

This would also include to make hidden objects visible to logged in users, but beeing marked as hidden (e.g. grey), the same it is in the site_admin siteaccess.

If this is not possible by configuration, how could I achieve this programmatically?

Modified on Tuesday 03 August 2010 11:17:06 am by Nabil Imran

Tuesday 03 August 2010 11:28:31 am

It's not possible without some changes. Setting for showing / hiding hidden is global, and not a policy, thus if we add a 'hide', you won't get access to show it again unless you log in to admin interface (as you should for getting access to features like this, specifically meant for administration of site and content).

Modified on Tuesday 03 August 2010 11:29:07 am by André R

Tuesday 03 August 2010 11:31:33 am

I would use object states for hiding objects. Though you need to edit templates if you want to mark object with hidden state as grey for editors. Then you could set policies so that anonymous users can't read hidden objects but editor group are still able to see them.

Tuesday 03 August 2010 5:42:46 pm

Thank you for the replies. The object states are a great feature! It already works quite well.

One more question:

Is there any kind of hook mechanism that allows to call some extra php code, whenever the state of an object is changed?

I was thinking about something similar to the eZContentObjectEditHandler that is called, when objects are being edited.

I need this to syncronize some data in custom tables when objects are getting hidden

Modified on Tuesday 03 August 2010 5:46:58 pm by Nabil Imran

Tuesday 03 August 2010 7:15:28 pm

You can create workflow for state update. There is AvailableOperationList[]=content_updateobjectstate setting in workflow.ini which enables trigger for state change.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from