CMS Development

MikeBeatwoot
Participant

Query parameter from menu node

Hello Community,

is there a way to extract the query strings from the HubSpot Navigation to use them seperately in my menu node.
I know, there is the query_dict but as far as i undestand it`s just for http request. I need to extract one parameter from each menu entry, where it`s set, like i did here.

Bildschirmfoto 2021-08-31 um 09.30.34.png

 

Is there a way to get these kind of filter for the menu node object? Would be amazing, if you could help out!

Best wishes,
Mike

0 Upvotes
1 Reply 1
Indra
Guide | Elite Partner
Guide | Elite Partner

Query parameter from menu node

Hi @MikeBeatwoot,

 

The navigation from HubSpot itself can't be edited if you use the menu field. But if you have the value from an link you can try and use filters. Perhaps the split filter will help you. For example:

 

{% set slug = 'https://www.example.com?company=bureauvet&language=nl' %}
{% set slug = slug|split('?' ) %}

Vet Digital - The Growth Agency | HubSpot Solutions Partner Agency

Did my post solve your question? Help the community by marking it as a solution
0 Upvotes