Hide main_node and locations

Author Message

laurent le cadet

Saturday 27 October 2007 7:30:47 am

Hi,

I would like to know if there is a simple way to use the hide/reveal functionnality to show/hide a node and all his locations at the same time.

This could be usefull for many cases.

hide.php doesn't seems to be design for that as it point to one NodeID.

Regards.

Laurent

Atle Pedersen

Saturday 27 October 2007 8:44:14 am

No.

The hide functions works only on a single node. When you have the same content in several locations at once, it is the object that is being used by several nodes. And it is not the object that is hidden, it is each node independently.

One sollution is creating your own extension finding which other nodes are using the same object, and then hide these as well.

laurent le cadet

Saturday 27 October 2007 8:51:24 am

That's what I was afraid of ;)
The good strating point is (for sure) hide.php but then, "create your own extension" is out of my knowledges.

Laurent

Xavier Dutoit

Monday 29 October 2007 12:32:41 am

Hi,

Really, not that difficult, have a look at at any module.php in an existing extension, and follow that path...

X+

P.S. My latest one has for sure some rather barebone actions :
http://projects.ez.no/json might be a good starting point

http://www.sydesy.com

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 11:38:45
Script start
Timing: Jan 18 2025 11:38:45
Module start 'layout'
Timing: Jan 18 2025 11:38:45
Module start 'content'
Timing: Jan 18 2025 11:38:46
Module end 'content'
Timing: Jan 18 2025 11:38:46
Script end

Main resources:

Total runtime0.6877 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.9141152.6250
Module start 'layout' 0.00720.0043 740.539139.4453
Module start 'content' 0.01150.6750 779.9844591.4141
Module end 'content' 0.68640.0012 1,371.398412.4766
Script end 0.6877  1,383.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4738160.0002
Check MTime0.00140.2088160.0001
Mysql Total
Database connection0.00140.202110.0014
Mysqli_queries0.631891.8723620.0102
Looping result0.00060.0893600.0000
Template Total0.653094.920.3265
Template load0.00190.283520.0010
Template processing0.651094.661620.3255
Template load and register function0.00010.014210.0001
states
state_id_array0.00130.192110.0013
state_identifier_array0.00130.189820.0007
Override
Cache load0.00160.2293270.0001
Sytem overhead
Fetch class attribute can translate value0.00110.164230.0004
Fetch class attribute name0.00110.152970.0002
XML
Image XML parsing0.00150.213830.0005
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00110.1560280.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs