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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ImageGallery - displaying specific Album Photos on other pages


Go to End


12 Posts   4321 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, 4102 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, 4102 Posts

26 January 2010 at 8:00am

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

Go to Top