I have something like this in a .scss file. Change the content part and add class custom-empty-label to your listview:
.mx-listview.custom-empty-label {
li.mx-listview-empty {
margin-top: 10px;
padding: 4px;
> label {
display: none;
}
}
li.mx-listview-empty:after {
content: "I wish to say something different"
}
}
Or, if you fill the listview by association, you could use a visibility constraint like “$currentObject/Object_AssociatedObject != empty”.
Also as Sjors mentioned the default message can be edited in Project > System texts > Listview , but then it goes in all empty listviews.
Hi Russell,
Through Project > System texts > Listview there's an option to change the text:
It's not possible to use $currentobject by default to determine if listview should be shown or not. This would require extra logic and a boolean on your currentobject when saving it.
An extra possibillity which I often use is with CSS (SCSS) because the listview does get an extra ‘empty’ class and use display:none; to hide it.