When there is no content

Hi
I am using Latest News +
When there are no articles available, is it possible to display a message> Something like 'There is no available 'news/content/jobs at the moment'
10 years 5 months ago #1 by libbyy

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

  • Posted by TemplatePlazza (5310) Offline
Hi, Yes you can by modifying the file modules/mod_latestnewsplusdate/tmpl/default.php (or to place it under your template folder by using template override function).
Arround line 151 find this line
if($show_more_in) {
change that to
if(($show_more_in) && (!empty($item))) {

then at the very end of the file add this code
<?php if ( empty($item) ) { echo "There is no available 'news/content/jobs at the moment"; } ?>
10 years 5 months ago #2 by TemplatePlazza

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

Is it possible to do this for minifrontpage?
10 years 5 months ago #3 by libbyy

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

  • Posted by TemplatePlazza (5310) Offline
I think it will work, you can try to add the line
<?php if ( empty($item) ) { echo "There is no available 'news/content/jobs at the moment"; } ?>
at the end of minifrontpage tpl files
10 years 5 months ago #4 by TemplatePlazza

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

I am using the default template and I have tried adding that to bootom.php, lastcell.php and lastcolumn.php. Sadly doesn't show anything
10 years 5 months ago #5 by libbyy

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

  • Posted by TemplatePlazza (5310) Offline
What layout type do you use?
10 years 5 months ago #6 by TemplatePlazza

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

Powered by Kunena Forum