Latest News Extd: Hide dummy thumbnail image?

Dear support,

I found out that Latest News Extended shows some dummy image (please see attachment), if an article has no image embedded.
How can I avoid that?

Thanks in advance,
Sascha.
10 years 11 months ago #1 by Sascha

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

  • Posted by TemplatePlazza (5263) Offline
Hi, for this you need to modify this file : [root]/modules/mod_latestnewsxtd/tmpl/default.php
Find this code (there are 3 positions on that file):
<img src="<?php echo lnxtdResizeImageHelper::getResizedImage($item->firstImage

then add this code before it :
<?php  if (($item->isNoImage) == false) : ?>

and this one after it :
<?php endif; ?>
10 years 11 months ago #2 by TemplatePlazza

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

Thanks for your answer, but that doesn't prevent rendering an empty DIV, I think.

I would suggest the following:
Search for
if ( $item->isIntroImage || $item->isFulltextImage || $item->isFirstImage || $item->isNoImage ) {
(2 occurences)
and replace by
if ( ($item->isIntroImage || $item->isFulltextImage || $item->isFirstImage) && (($item->isNoImage) == false) ) {

and search for
<?php /*if ( $item->isIntroImage || $item->isFulltextImage || $item->isFirstImage || $item->isNoImage ) {*/ ?>
and replace by
<?php if (($item->isNoImage) == false)  { ?>
and also removing comments from the closing
<?php /*}*/ ?>

What do you think about that?

Regards,
Sascha.
10 years 11 months ago #3 by Sascha

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

  • Posted by TemplatePlazza (5263) Offline
It's ok too. Does it work properly on your site?
10 years 11 months ago #4 by TemplatePlazza

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

Yes it does.
Thanks for pointing me into the right direction!

Sascha.
10 years 11 months ago #5 by Sascha

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

Powered by Kunena Forum