Getting landing page from navon in a macro

I’m trying to create a Google Site Map and am managing to iterate the navons and output the XML without too many problems. However, I’d like to be able to use information from the landing pages of the navons rather than the navons themselves. So, ideally, I’d like to do something like …


So what do I need to do to implement the getLandingPage() bit?


If you don’t want to do something like:


then I suppose you could write your own extension…

Simple when you know how! Much appreciated. That’s exactly what I was looking for.