Look at the phpdoc for loadCommonTemplateData in modules/core/classes/GalleryLayout.class, then look at layouts/matrix/layout.inc to see which keys it passes in, to load which data items. In your case I think you want $layout.parent.title and $layout.item.title (though you may want to check if $layout.parent is empty, in case of root album).
Oh, and if you turn on buffered debug output in config.php and load a page it will popup a window showing all the template data available to the smarty tpl..
Posts: 8601
Look at the phpdoc for loadCommonTemplateData in modules/core/classes/GalleryLayout.class, then look at layouts/matrix/layout.inc to see which keys it passes in, to load which data items. In your case I think you want $layout.parent.title and $layout.item.title (though you may want to check if $layout.parent is empty, in case of root album).
Oh, and if you turn on buffered debug output in config.php and load a page it will popup a window showing all the template data available to the smarty tpl..