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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:12:48
Script start
Timing: Jan 18 2025 05:12:48
Module start 'layout'
Timing: Jan 18 2025 05:12:48
Module start 'content'
Timing: Jan 18 2025 05:12:48
Module end 'content'
Timing: Jan 18 2025 05:12:48
Script end

Main resources:

Total runtime0.0244 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 589.3516152.6250
Module start 'layout' 0.00870.0045 741.976639.4531
Module start 'content' 0.01320.0083 781.429793.4453
Module end 'content' 0.02150.0029 874.875038.2891
Script end 0.0244  913.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003112.6212140.0002
Check MTime0.00135.1238140.0001
Mysql Total
Database connection0.00145.530410.0014
Mysqli_queries0.004016.341630.0013
Looping result0.00000.119010.0000
Template Total0.002410.010.0024
Template load0.00114.683910.0011
Template processing0.00135.247610.0013
Override
Cache load0.00073.006610.0007
General
dbfile0.00135.342280.0002
String conversion0.00000.047840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs