Forums / Install & configuration / Parent Node ID / Comment848
Paul Borgermans
Tuesday 18 February 2003 2:40:37 am
> > > > so if anyone has a similar problem: > > > > > Of interest to get the grandparent id > > > {$node.parent.parent_node_id} > > > > > > Bruce > > Really nice solution. > > But i meet another strange effect. > > Yes, I can see $node.node_id, $node.parent_node_id etc... > - > > BUT ! only first time , before cache wasn't created. > > I have to clean cache for correct reflection and on > second > > and next times i have nothing till the cache will be > cleaned > > again . > > (winXP, ProcessCaching=disabled) > > Did you have the same thing ? > > Am seeing this now that I have turned on caching. It seems > that the $node variable is not availaiable to the cached > page. > > Did you find a solution to this? > > Cheers> Bruce
You can use the {$module_result.node_id} for fetch functions. This will also work on cached pages.
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans