Fixed wrong array index.
Added pagesExtended function template plugin. It uses the UltimateLinkHandler.