Forums / Developer / Change Article to hidden

Change Article to hidden

Author Message

Brijesh Tekrawala

Thursday 18 November 2010 4:39:20 am

i want to change articles to hidden in one of my TPL file.

is there any way to do it ?

Thanks in advance

Brijesh

Ivo Lukac

Thursday 18 November 2010 5:09:51 am

Hi,

You can hide articles in administration interface as this is standard feature. You don't need to change templates for this.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Brijesh Tekrawala

Thursday 18 November 2010 5:15:01 am

yes it is possible from interface.

but i need make some article hidden after publishing from work flow.

can you help me on this ?

Brijesh

Ivo Lukac

Thursday 18 November 2010 6:21:32 am

"

yes it is possible from interface.

but i need make some article hidden after publishing from work flow.

can you help me on this ?

Brijesh

"

Hm, that is a bit more difficult and is not something you should do in template.

What I would do is make a simple workflow event for hiding which you can chain after your workflow.

Or you can publish your objects under folder which is hidden so the new object is automatically hidden also.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Brijesh Tekrawala

Thursday 18 November 2010 10:42:24 am

Thanks for reply ,

I found that there is belowcode to hide node but it is not working for me in work flow

eZContentObjectTreeNode::hideSubTree( $node );

is there any other way to do in wok flow?

Thanks

Brijesh

Ivo Lukac

Friday 19 November 2010 1:10:37 am

"

Thanks for reply ,

I found that there is belowcode to hide node but it is not working for me in work flow

eZContentObjectTreeNode::hideSubTree( $node );

is there any other way to do in wok flow?

"

That line looks ok. I recommend that you take a look here: http://www.mugo.ca/Products/Hide-Until-Date and find some inspiration :)

Cheers

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac