Problem with Repeater

Hi!

I’m building a website that has a News section. After creating a News Content Collection, I added a
Repeater to the homepage of my website. The repeater shows the last 3 news published on the editor, but when I publish a 4th news, it also ads the 4th news to the home. I would like to know if there is a way to limit to 3 the number of news that appear on the repeater on the homepage.

For some reason the links to the News also are not working, even though I linked the images and the titles to “News (Title)”.

Here is the repeater I added:

Hope to have some help!

Thanks in advance,
Natan

How are you populating the Repeater? If you’re using a dataset, then just change the number of items to display.

Thank you so much Yisrael.

Any tips on how to make the links work?

They were working fine, than all of a sudden they started pointing to my dashboard channel… I than checked and the link of the image was active, pointing to wix.com or something). I than deleted the link and can’t manage to point the image and the title to the news it shows… Here is an image of the repeater menu:

Strange thing is it was working before…

Any ideas?

Thanks again,
Natan

In your connections, you have “Link connects to” News (Title) . Is News (Title) a link, that is, a URL? If not, then it won’t go anywhere.

I thought News (Title) was supposed to direct it to the News where the image was connected…

Any idea on how to connect the image and title to the news they are displaying?

Thanks again!

Each item in your repeater needs to be linked to your database content.
Link the image to an Image Field of your database, link the title in your repeater in your database’s field that contain the title you want to…etc…

That’s why Yisrael told you that your “link” need to be connected to a field of your database containing an URL.

On your example, you’re working on the the Image’s connection. You are connecting the Image source, it’s Alt text, it’s tooltip, and if you want your image to link to something, it’s link.

Then, you will need to connect the text element that is your title to the Title Fields of your database, and so on with others elements of your repeater

Just checked and “News (Title)” are the URLs. Check the image:

They were working fine, than all of a sudden they started pointing to my dashboard channel… I than checked and the link of the image was active, pointing to wix.com or something). I than deleted the link and can’t manage to make it work properly again (point to the actual news).