CMS Development

fbri
Contributor

RSS slider

Hi all,

 

I would like to turn a Blog RSS feed into a gallery that - for example - pulls the latest 12 blogs and creates a gallery that lets the user scroll between these.

 

Any ideas?

 

Thank you!

0 Upvotes
2 Replies 2
Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

RSS slider

Hi @fbri ,

do you want to turn a HubSpot Blog or an external Blog into a "gallery"?

 

For both options you can try to:

- modify the HubSpot RSS Feed module to your needs(did this once)

 

For a hubSpot blog you could also try to modify the blog listing view.

A good starting point would be the "vast"-blog template or this one.

 

For the limitation of 12 you could wrap the whole module inside the code @jzilch posted here.

 

Your view should replace the 

 

<div class="related-post-item">
            <div class="related-image"><img src="{{ post.featured_image }}" alt="{{ post.name }}"></div>
            <div class="related-title"><a href="{{post.absolute_url}}">{{ post.name}}</a></div>
          </div>

part

 

 

 

hope this helps

 

regards

Anton

 

 

check.pngDid my post help answer your query? Help the Community by marking it as a solution
Anton Bujanowski Signature
fbri
Contributor

RSS slider

Hi @Anton 

 

Apologies for the late reply.

Thank you very much!! I found the information very helpful.

 

Just to clarify, what I want to do is turning an RSS feed from a HubSpot blog into a gallery, or a slider.

 

I found the HubL you sharing very helpful, but I am missing how I can turn this into a slider. Is there any HubL that allows me do to that? Or should I add some CSS/JS on it?

 

Thank you!

 

0 Upvotes