Tried to display image galleries and it does not showing anything

Adrian Sutantio asked on October 17, 2019 03:52

Hi there,

I am trying to replicate this tutorial for our Kentico 9 media gallery installation: https://docs.kentico.com/k9/developing-websites/loading-and-displaying-data-on-websites/displaying-data-advanced-scenarios/displaying-image-galleries

I have put the Media files data source web part and have added a basic repeater. In my basic repeater, I have put: {% WebPart.GetValue("WebPartControlID","MediaFilesDataSource") #%}

And this transformation https://imgur.com/yUqdgam

It is not showing anything :( I have make sure that the media libray contains some images.

Any help will be appreciated.

Thank you

Recent Answers


David te Kloese answered on October 17, 2019 10:07

Hi,

Is it not displaying the images? Or not having any results?

So do you just have a number of empty link and image tags? This would help indicate if it's the data retrieval or display issue?

Did you have any other settings either on the data source Web Part or the Repeater?

0 votesVote for this answer Mark as a Correct answer

Adrian Sutantio answered on October 18, 2019 00:41

Hi David,

Thank you for your reply. It is not having any results. The div is called image-gallery and mock up page can be seen here: https://qa2.psychology.org.au/About-Us/who-we-are/about-the-aps.

The only setting that I changed is to untick hide if record not found in the repeater.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 18, 2019 10:13 (last edited on December 10, 2019 02:31)

Wait, where (and why) have you set

{% WebPart.GetValue("WebPartControlID","MediaFilesDataSource") |(identity)GlobalAdministrator%}

As I believe this is basically a way for a Widget to get data from it's own Web Part...

Shouldn't that just be the ControlID name of the Web Part?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.