By Joao Mimoso on Thursday, 10 September 2015
Posted in General Issues
Replies 1
Likes 0
Views 460
Votes 0
Hi there,

When a user click on Photos in the upper toolbar the page show all the albuns of a user with some thumbnails in a row for each album (img 1)

I created an app and i want to replicate the same layout but only for a specific album, in other words, when i click on my app i want to show in the header of the page, a kind of table with the specific album that i want to show...with the photos thumbsnails in a row (just like the photos app)

Can i accomplished that just with a call to a specific class/function that ES allready has, inside my view/theme ?

I have allready tried some of the existing classes/functions like:

FD::model('Albums');
$results = $model->getAlbums($user->id , SOCIAL_TYPE_USER, $options);

but i dont know how to render it just like the apps photos...

after i get the album list (or a specific album) is there a function which i can call to render the album?
Hey Joao,

I am sorry that delay of this reply,

Perhaps you can try take a look of this file :
JoomlaFolder/administrator/components/com_easysocial/tables/album.php

getPhotos function

$lib = FD::albums( $this->uid , $this->type , $this->id );

return $lib->getPhotos( $this->id, $options );



This is how it get the photo from the album, hope this help.
·
Thursday, 10 September 2015 13:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post