Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

ImageGallery - displaying specific Album Photos on other pages


Go to End
Reply


12 Posts   2614 Views

Avatar
Rishi

Community Member, 97 Posts

25 January 2010 at 7:18pm

Edited: 25/01/2010 7:42pm

Sorry UncleCheese
I will do take care of this in future.
Now everything is working except i am not getting the album list to select an album.
let me tell you what i have done so far
i have created a MyPageWithAlbumOnIt.php in mysite/code and have created MyPageWithAlbumOnIt.ss. in template folder.
thank you in advance

Avatar
UncleCheese

Forum Moderator, 4096 Posts

26 January 2010 at 3:11am

That would mean that this is failing:

DataObject::get("ImageGalleryAlbum")->toDropdownMap('ID','AlbumName')

Can you prove that?

Avatar
Rishi

Community Member, 97 Posts

26 January 2010 at 7:44am

yes UncleCheese you are correct
DataObject::get("ImageGalleryAlbum")->toDropdownMap('ID','AlbumName')

is not been able to get the list of album..

Avatar
UncleCheese

Forum Moderator, 4096 Posts

26 January 2010 at 8:00am

...Which should tell you that there are no ImageGalleryAlbum objects in the database. Right?

Go to Top