gallery - do not display link if node_id is zero