Suppose that you need to hide the widget Subject of the layout newsitem_end when the news item state is not 'published', then the TALES expression to use in the property "Hidden if" of the widget is:
python:context.getContentInfo(level=1)['review_state'] not in ['published']
See you!
2 comments:
many thanks. it's really helpful.
Thanks a lot! It was really helpfull.
I searched this expression for many weeks!
I used it as a Condition in "portal_types/My_Type/" -> Actions
It works perfectly!
Post a Comment