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 |

Posts: 11717
$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
Posts: 9
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
Posts: 1839
Don't use php to include an external file, use the smarty include function:
http://www.smarty.net/manual/en/language.function.include.php