Latest News Extd: Hide dummy thumbnail image?
- Posted by Sascha (20) Offline
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
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.
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):
then add this code before it :
and this one after it :
10 years 11 months ago #2
by TemplatePlazza
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; ?>
Please Log in or Create an account to join the conversation.
- Posted by Sascha (20) Offline
Thanks for your answer, but that doesn't prevent rendering an empty DIV, I think.
I would suggest the following:
Search for(2 occurences)
and replace by
and search forand replace byand also removing comments from the closing
What do you think about that?
Regards,
Sascha.
10 years 11 months ago #3
by Sascha
I would suggest the following:
Search for
if ( $item->isIntroImage || $item->isFulltextImage || $item->isFirstImage || $item->isNoImage ) {
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 ) {*/ ?>
<?php if (($item->isNoImage) == false) { ?>
<?php /*}*/ ?>
What do you think about that?
Regards,
Sascha.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5263) Offline
- Posted by Sascha (20) Offline
Yes it does.
Thanks for pointing me into the right direction!
Sascha.
10 years 11 months ago #5
by Sascha
Thanks for pointing me into the right direction!
Sascha.
Please Log in or Create an account to join the conversation.