Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

Projects module - in the spotlight

Hi, The standerd widget designed for showing the projects in the spotlight shows only one project at the time. Is it possible to show all the projects that are put in the spotlight?

I know i have to use iteration in the tpl. But what do i need to change in model.php?

Onno

Here's how to show more than one project in the spotlight widget. I modified the model.php with a few changes and added an iteration in the spotlight.tpl template file. I wrote the changes I did in the comments above every block of code so you can see how it's done.

If you have other questions, don't hesitate to ask them :-)

Hi Jesse,

Thanks for the quick reply. I've tried some coding as well in the meantime and found a simular solution. Our code is almost alike.

Onno

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/