Blog Featured Files

Blog Featured Files extends the RainLab.Blog plugin with a possibility to attach media manager files.

Back to Blog Featured Files Support

Sam
Sam

Hi,

I am getting the following error only on posts that have no file attached: An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()").

This is the line highlighted: {% for file in post.featured_files() %}

What am I missing?

Thanks.

Kabira Paresh
Kabira Paresh

Sam said:

Hi,

I am getting the following error only on posts that have no file attached: An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()").

This is the line highlighted: {% for file in post.featured_files() %}

What am I missing?

Thanks.

Thanks for reporting bug. Bug has been fixed now kindly update plugin.

Last updated

Sam
Sam

Thank you for your swift response, it's working fine now :)

1-3 of 3