Results 1 to 5 of 5

Thread: (solved) Contao 3.5 : personalize newslist module empty text (contao 3.5)

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    218

    Frage (solved) Contao 3.5 : personalize newslist module empty text (contao 3.5)

    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…

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,180

    Default

    Add
    PHP Code:
    <?php

    $GLOBALS
    ['TL_LANG']['MSC']['emptyList'] = 'No formations to display';
    to your system/config/langconfig.php file.
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    04-01-10.
    Posts
    218

    Default

    Thanks xchs but this will change for all newslists. How can I make it to change only for a specific newslist or news archive ?

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,180

    Default

    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

  5. #5
    User
    Join Date
    04-01-10.
    Posts
    218

    Default

    So obvious !! Thanks.

    (I understand that your first answer was to modify global translation if it doesn't fit. But one for all.)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •