This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
110 Posts
deralex
1 year ago
3
Topic

Hi,

how can I disable rendering a whole item (not only a field) by using beforrrender field?

Alex

Get a Book for SEBLOD
4229 Posts
Kadministrator
1 year ago
0
Level 1

Unfortunately there is no event that would allow manipulation of items list

50 Posts
Dantd
1 year ago
1
Level 1

Hello there,

Assuming you are trying to not let a item be rendered in a list you could try to use beforerender field and try: 

if (something){

unset($fields);

}

I did not test it. Maybe It works.

Good luck

4229 Posts
Kadministrator
1 year ago
0
Level 2

He is talking abut items, not fields. You can manipulate fields inside each item, but you can't remove the whole item as there is no event that would fire at the right time.

Get a Book for SEBLOD