CMS Development

JanetArmstrong
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

RSS Feed with clickable Featured Image

I'm using the RSS Feed Module and would like the Featured Image to be clickable just like the title. Has anyone accomplished this?

 

https://knowledge.hubspot.com/articles/kcs_article/cos-general/how-do-i-add-an-rss-feed-to-one-of-my...

3件の返信
ashleyidesign
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

RSS Feed with clickable Featured Image

Are you using an RSS feed to pull in HubSpot blog posts? If so, you can create a custom module to pull in the data, and change the coding to wrap the image in the post URL.

0 いいね!
JanetArmstrong
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

RSS Feed with clickable Featured Image

Yes, it's the "creating custom coding" that I don't know how to do. I can't figure out where to add something?

 

I see this: 

 

{% if module.rss_feed_type == "external" %}
{% set feed_source = "{is_external=True, rss_url='"~module.rss_url~"', content_group_id=''}" %}
{% set is_external = true %}
{% elif module.rss_feed_type == "blog" %}
{% set feed_source = "{is_external=False, content_group_id='" ~ module.content_group_id ~ "', rss_url=''}" %}
{% set is_external = false %}
{% endif %}

{% rss_listing
publish_date_text="{{ module.publish_date_text }}",
rss_url="{{ module.rss_url }}",
is_external="{{ is_external }}",
click_through_text="{{ module.click_through_text }}",
show_date="{{ module.show_date }}",
content_group_id="{{ module.content_group_id }}",
include_featured_image="{{ module.include_featured_image }}",
publish_date_format="{{ module.publish_date_format }}",
show_detail="{{ module.show_detail }}",
show_author="{{ module.show_author }}",
number_of_items="{{ module.number_of_items }}",
title="{{ module.title }}",
limit_to_chars="{{ module.limit_to_chars }}",
attribution_text="{{ module.attribution_text }}",
topic_id="{{ module.topic_id }}"
feed_source="{{ feed_source }}"
%}



0 いいね!
ashleyidesign
トップ投稿者 | Solutions Partner
トップ投稿者 | Solutions Partner

RSS Feed with clickable Featured Image

Hey,

 

You won't be able to modify that code. Feel free to email me ashley@ashleyidesign.com I have a custom module I created for my recent posts.

0 いいね!