Edit <title> tag

jonMEGA

Joined: 2002-10-22
Posts: 71
Posted: Thu, 2005-05-19 01:49

I would like the tilte of the page to display:

Parent Album Name - Item Name - jonMEGA dot com

I know I need to edit the head.tpl file to do this, but I dont know the Smarty vars to display the Parent Album Name.

Please help.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-05-19 03:16

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..