CMS Development

amitr
Member

Drop down creation

SOLVE

Hi,

My client want to display post list & post filter by tag  within dropdown.How could I integrate such layout into HS blog page. Please let me know ASAP.

I attached the screenshot like what they want, please see the attachmentBlog Menu.png

0 Upvotes
1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Drop down creation

SOLVE

Hey @stephenong 

 

So what you'll have to do is reload the page with the selected tag in a query string parameter.

 

If you haven't seen the Real Estste Listing tutorial check it out! Pay attention to steps 3 and 4 as they contain the logic for you business case.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

0 Upvotes
4 Replies 4
TRooInbound
Key Advisor

Drop down creation

SOLVE

Hi @amitr,

 

You can use below code to create drop down option with blog category/tags.

<select id="blog-topics">
	<option>By Category</option>
	{% for topic in contents_topics %}
		<option value="{{ group.absolute_url }}/topic/{{ topic.slug }}">{{ topic.name }}</option>
	{% endfor %}
</select>

We hope it resolve your issue.

 

If our suggestion works for you please mark it as a solution to help the community.

 

0 Upvotes
stephenong
Participant

Drop down creation

SOLVE

Thanks  @TRooInbound for the advice.

 

I've managed to show this dropdown based on Tags.

 

However when I clicked on an item on the dropdown, it does not filter out those tagged post. Any ideas please? Thanks!

 

 

0 Upvotes
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Drop down creation

SOLVE

Hey @stephenong 

 

So what you'll have to do is reload the page with the selected tag in a query string parameter.

 

If you haven't seen the Real Estste Listing tutorial check it out! Pay attention to steps 3 and 4 as they contain the logic for you business case.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
roisinkirby
HubSpot Product Team
HubSpot Product Team

Drop down creation

SOLVE

@TRooInbound do you think this would be possible using Hub DB?

0 Upvotes