Hello everyone,
In Contao 3.5, I'm using a newslist to publish articles about formations. So how can I modify this newslist empty text for it is "no formations to display" instead of "no news to display".
Thanks for your help.simple
Hello everyone,
In Contao 3.5, I'm using a newslist to publish articles about formations. So how can I modify this newslist empty text for it is "no formations to display" instead of "no news to display".
Thanks for your help.simple
Last edited by charled; 09/30/2019 at 22:41. Reason: Solved…
Add
to your system/config/langconfig.php file.PHP Code:
<?php
$GLOBALS['TL_LANG']['MSC']['emptyList'] = 'No formations to display';
Contao Community Moderator
→ Support options
Thanks xchs but this will change for all newslists. How can I make it to change only for a specific newslist or news archive ?
You could create an individual news list template (e.g. mod_newslist_formations.html5) and assign it to your news list front end module. In your news list template you could then add the desired message.
Contao Community Moderator
→ Support options
So obvious !! Thanks.
(I understand that your first answer was to modify global translation if it doesn't fit. But one for all.)
Bookmarks