Custom modules image on Blog Listing

Highlighted
New Member

I have custom module with an image for blogs with the following html:

 

{% if widget.normal_thumb_800x800.src %}
<div class="post-image" style="background:url({{ widget.normal_thumb_800x800.src }}) center center; background-size:cover;"></div>
{% else %}
<div class="post-image" style="background:url({{ content.post_list_summary_featured_image }}) center center;background-size:cover;"></div>
{% endif %}

 

This module works exactly has intented on the blog posts. But on the blog listing/index it cant find the widget. 

 

I found a documentation page that says I should for mat it like this: content.widgets.normal_thumb_800x800.body.src for the blog listing but it still does not work. 

 

Any idea what I'm doing wrong here?

Reply
0 Upvotes
2 Replies
Occasional Contributor

Hi,

 

To better understand how your custom module works, perhaps can you please try placing the whole code in here so we could have a closer look?

 

L

Regular Contributor

Hi,

 

This is ab,

 

Yes this can be done i need your login details,

 

you can contact here absolutions000@gmail.com

or skype live:absolutions000

 

Reply
0 Upvotes