When there is no content
- Posted by libbyy (22) Offline
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
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'
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 linechange that to
then at the very end of the file add this code
10 years 5 months ago #2
by TemplatePlazza
Arround line 151 find this line
if($show_more_in) {
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"; } ?>
Please Log in or Create an account to join the conversation.
- Posted by libbyy (22) Offline
- Posted by TemplatePlazza (5310) Offline
I think it will work, you can try to add the lineat the end of minifrontpage tpl files
10 years 5 months ago #4
by TemplatePlazza
<?php if ( empty($item) ) { echo "There is no available 'news/content/jobs at the moment"; } ?>
Please Log in or Create an account to join the conversation.
- Posted by libbyy (22) Offline
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