| 
                                                                        
                                                                         
                                                                            
                                                                                admin
                                                                            - 
                                                                                2/7/2005 2:45:21 PM
                                                                            
                                                                         
                                                                         
                                                                            
                                                                        
                                                                        
                                                                         
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                         
                                                                        
                                                                            Re: How to: select the current node?
                                                                        
                                                                            Hi Wiebe,
  you can retrieve the current node using the following code:
  TreeProvider tree = Functions.GetTreeProvider(); TreeNode node = tree.SelectSingleNode("/" + Functions.GetPreferredCulture() + Request.QueryString["aliaspath"],  TreePathTypeEnum.AliasPath);
  Please note that you may need to modify the Functions.GetPreferredCulture method according to your mechanism for recognizing the current language.
  If you need to retrieve the DataRow representing the nearest page (menu item) of the document, you can use this method:
  Functions.GetPageInfoDR();
  I hope this will help you. 
                                                                         
                                                                        
                                                                            
                                                                         
                                                                        
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                         
                                                                     |