Forums / Developer / Hide main_node and locations

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