1. News Show SP2 (module, not addon!)
  2. Monday, 14 December 2015
Hello ,
I am trying to override News Show SP2 to set a default image if the article has no image .
I believe this is where need to be changed :

<?php /*Image position before title*/if ($article_show_image && $article_image_pos=='top' && $list[$i]->image): ?>
<?php if ($article_linked_image): ?>
<a href="/forums/<?php echo $list[$i]->link ?>">
<?php endif; ?>
<img class="ns2-image" style="<?php echo $article_image_float ?>;<?php echo ($article_image_margin) ? "margin:$article_image_margin" : "" ?>" src="/forums/<?php echo modNSSP2CommonHelper::thumb($list[$i]->image, $article_thumb_width, $article_thumb_height, $article_thumb_ratio, $uniqid) ?>" alt="<?php echo $list[$i]->title ?>" title="<?php echo $list[$i]->title ?>" />
<?php if ($article_linked_image): ?>
</a>
<?php endif; ?>
<?php endif; ?>
Responses (2)
Dear,

Thanks for your query. This feature are not available in News show sp2. By the we don't provide custom development.

-Thanks
I know it is not available that's why I am asking help to modify the code not asking for custom development , I did this before with a K2 but this one I am not sure where to insert the code to grab an image if the article has none .
I thought the forum is here so the members will help each others :D .
Thanks anyway .


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.