CMS Development

amitr
Membre

Drop down creation

Résolue

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 Votes
1 Solution acceptée
Kevin-C
Solution
Expert reconnu | Partenaire solutions
Expert reconnu | Partenaire solutions

Drop down creation

Résolue

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

Voir la solution dans l'envoi d'origine

0 Votes
4 Réponses
TRooInbound
Conseiller clé

Drop down creation

Résolue

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 Votes
stephenong
Participant

Drop down creation

Résolue

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 Votes
Kevin-C
Solution
Expert reconnu | Partenaire solutions
Expert reconnu | Partenaire solutions

Drop down creation

Résolue

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 Votes
roisinkirby
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Drop down creation

Résolue

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

0 Votes