I am creating a custom module for user specific image gallery for my website. I have created a content type and added an image field for uploading multiple images. Now I want to create an image gallery with jcarousel type slideshow. But I am not able to retrieve the images uploaded by a particular user and show them on their profile page creating a gallery tab
I did it for this cg related image gallery (cgart.ir).
to display user created images on his/her profile I did these steps:
- create a views named
- create a display within
CONTEXTUAL FILTERS > (content: Author uid)to it
user-profile.tpl.phpand add below codes to it:
print views_embed_view('artworks', 'page_1', $account->uid);