Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Display message if no news available

More
IP: 2003:80:ce4c:6328:34c3:f17f:ab68:5e63 10 years 7 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
  • syw
  • syw's Avatar
  • Administrator
  • Administrator
More
IP: 68.194.32.112 10 years 7 months ago #4494 by syw
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:
Code:
#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]