10 years ago
3
Topic

Hi there,

I have made a new content type, with a list to display the results. To test the form, I inserted 2 values. In the list, I added 2 buttons on each line: edit and delete. It works great.

But, there's a strange result in the list: there were 7 empty lines. So I deleted some of them, but there's 2 lines still remaining. When I try to delete them, I have an error message, telling the component is not found.

How can I delete those empty lines? Why did they appear? I never inserted those lines.

Thanks for your help and support.

Best regards.

Get a Book for SEBLOD
572 Posts
_jrmo
10 years ago
2
Level 1

Hi Juj,

Whenever this has happened to me in the past it's because I didn't make my search form specific enough, so values were returned that shouldn't be. I've found that the following can help:

  • Adding the article access field, with a value set to "public"
  • Adding the article state field, with a value set to "published" 
  • Adding a field like article title, and setting the match to "is not empty" or "is not null"

and anything else you can think of to make sure the search query is returning exactly only the results you want.

Cheers,

_jrmo

JuJ
10 years ago
1
Level 2

Hi _jrmo

Thanks for your answer.

Could you please specify where I should add these fields? I have these fields in my form (admin and site), but not in my content view. Should I add them in my content view? Or in the list?

Thanks again! :)

572 Posts
_jrmo
10 years ago
0
Level 3

Hi Juj,

You add this to the Search Form view, because that is what determines the items that are returned in your list.

Get a VIP membership