Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Display message if no news available

More
8 years 8 months ago #4493 by [email protected]
I am using Joomla 3.5. On my website I start with HOME and I display a message like:
"Hier die letzten Informatione" (meaning: Here the latest news).
I do not want to display this message or, instaed of a the missing news the date and instead of the news the information "none" or "no news".

Do you have any idea how to manage this.
Thanks and best regards,
Hans

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #4494 by syw
Replied by syw on topic Display message if no news available
Hello Hans,

did you try using the 'no data message' parameter from the 'layout' tab in the module?
The message only shows if there are no news.

If you need to show a message when there are news, you could either make a template override, or, if you are only using German (I assume you are using German), you can just use CSS and add the following snippet:
#lnee_[YOUR MODULE ID]::before {
    content: "Hier die letzten Informatione";
}

This will add the message 'Hier die letzten Informatione' before the items ONLY if there are any items. If there are none, the 'no data message' parameter will take over.

If you need to add a date, you definitely have to create a template override and add your own code into it.

Olivier.
The following user(s) said Thank You: [email protected]

Please Log in or Create an account to join the conversation.