Forums / Developer / Hiding nodes / Comment57226
Lars Eirik R
Tuesday 23 February 2010 8:32:48 am
Hi Lars,
Perhaps you can make a different approach, for example a translatable checkbox in the object, for hide of this version in this language an a little template coding, like the show comments in article.
{if $node.data_map.enable_comments.data_int} <h1>{"Comments"|i18n("design/ezwebin/full/article")}</h1> <div class="content-view-children"> {foreach fetch_alias( comments, hash( parent_node_id, $node.node_id ) ) as $comment} {node_view_gui view='line' content_node=$comment} {/foreach} </div> {/if}
Greetings, ekke
Thanks for helping.
I would like to include scheduling, so i probably will have to look at using date comparioson to solve this.
Do you agree that this would affect the menu as well as the full node it self ? How about the cases where someone has embedded this.. i would have to update all of these templates as well?
Thanks.