Blog Entry Image
In the blog entries, you can set an image that "overrides the news/blog categories standard image," but I can't find what tempcode string I use to call the custom image to display in my template. I see a parameter for defining whether the image resizes, but no reference to the image call itself.
Hi,
Theoretically it should be automatic.
However, is it that you see the blog poster's avatar rather than the image?
I'd believe that, but I want to confirm the situation first.
Theoretically it should be automatic.
However, is it that you see the blog poster's avatar rather than the image?
I'd believe that, but I want to confirm the situation first.
Also please confirm if this is a news box, or viewing the full news entry.
I'm modifying the BLOCK_SIDE_NEWS_SUMMARY.tpl to a layout that displays the image in a div located above the blog summary like this
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="advisor-img-head justify-content-center">
image goes here
</div>
<div class="advisor-story justify-content-center">
<p class="story-date">{DATE*}</p>
<h4><a title="" href="{FULL_URL*}"></a></h4>
<div class="story-intro">
</div>
<div class="read-more">
<a title="" href="{FULL_URL*}">Read more</a>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-12">
<div class="advisor-img-head justify-content-center">
image goes here
</div>
<div class="advisor-story justify-content-center">
<p class="story-date">{DATE*}</p>
<h4><a title="" href="{FULL_URL*}"></a></h4>
<div class="story-intro">
</div>
<div class="read-more">
<a title="" href="{FULL_URL*}">Read more</a>
</div>
</div>
</div>
Ok, there's 2 oversights here…
- We should not have an image override option on the cms_blogs module because we don't even show news images for blogs, we show avatars. So I'm taking it off. It remains on the cms_news module which can be used for adding blog posts also. cms_blogs is meant to be cut down, so if we have stuff that has no default effect, that's not serving it's original purpose. I realise this may go against what you want, in which case you may wish to copy cms/pages/modules/cms_blogs.php to cms/pages/modules_custom/cms_blogs.php (override it), so the change in the next patch release doesn't apply.
- We are not passing in the custom image to the template you mentioned. This is corrected in the fixed file below. It's the IMG_URL Tempcode parameter. Make sure you empty the block cache.
Code (php)
Many thanks! That worked.
0 guests and 0 members have recently viewed this.
