Getting the id of current album

eiocreative

Joined: 2009-10-19
Posts: 2
Posted: Mon, 2009-10-19 13:31

Hi

I am playing around with the contributed modual 'user_homes'.

How would I go about getting the ID of the current album to use in that contribution?

Regards

James

Login or register to post comments
Glooper

Joined: 2005-09-21
Posts: 143
Posted: Mon, 2009-10-19 18:43

Hi james

When viewing a page the id can be got from $theme->item()->id though if the page has no item then this will error so you should check that $theme->item() exists first.

Though I suspect you are changing some of the event methods? In which case $theme might not be available?

Ben

Benjamin Albert Smith - Photography

Login or register to post comments
eiocreative

Joined: 2009-10-19
Posts: 2
Posted: Tue, 2009-10-20 08:32

Cheers Ben, I'll check that out! Been working some tutorials on the Kohana framework. It's a different approach to programming than I am used too but one I'd like to learn. Thanks for the advice!

Login or register to post comments