how to get current album id

pathway

Joined: 2004-07-22
Posts: 9
Posted: Tue, 2008-10-07 12:23

Hello,

I need to place something like this

{php}include("..".$albumID."menu.js");{/php}

in photo.tpl.

where $albumID is the current album ID and will be equal to the directory I want to integrate gallery.

How can i read the current album ID?

Thank you in advance

John.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Tue, 2008-10-07 13:14

$theme.item.id
Enable debug mode and in the smarty popup window you will see all available smarty values.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
pathway

Joined: 2004-07-22
Posts: 9
Posted: Sat, 2008-10-11 10:28

Hello Dave,

yes I can see $theme.item.id or $theme.item.parentId,
but I'm afraid I am stuck. Could you please tell me how I can get these as php variables?

Thank you in advance

John

Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 1839
Posted: Sat, 2008-10-11 17:29

Don't use php to include an external file, use the smarty include function:
http://www.smarty.net/manual/en/language.function.include.php

Login or register to post comments