# Using a HubL variable in an Advanced Menu

**URL:** <https://community.hubspot.com/t/using-a-hubl-variable-in-an-advanced-menu/1181>\
**Category:** CMS Development\
**Created:** [March 1, 2017, 4:09pm UTC](https://community.hubspot.com/t/using-a-hubl-variable-in-an-advanced-menu/1181 "2017-03-01T16:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [March 1, 2017, 4:09pm UTC](https://community.hubspot.com/t/using-a-hubl-variable-in-an-advanced-menu/1181/1 "2017-03-01T16:09:46Z")

</div>

Hi all,

I’m trying to change the page title of a page for each visitor based on a parameter I pass in the URL.

**Example**

_ **Default:** _

Default Title: Hello World!

_ **User 1:** _

_Parameter in URL: ?title=This+is+a+better+title_

Title that displays on page: This is a better title

_ **User 2:** _

_Parameter in URL: ?title=Different+title_

Title that displays on page: Different title

Is there a way to use HubL to record the parameter in the URL and then pass it back through as dyamic content on the page?

I’ve had a look through the [HubL variables](http://designers.hubspot.com/docs/hubl/hubl-supported-variables) and can’t seem to find a free text variable that would suit my needs as they all seem fairly set.

If you know of any other routes to achieving the same outsome it would be great.

**Already Investigated**

I’ve already investigated using SMART content for, this however the contact properties only update on some type of submission e.g. form (even when using hidden fields) so it makes using SMART content driven by custom contact lists a non-starter. I’ve also consider using SMART content by referring URL but it doesn’t allow creation of specific deep URLs for matching.

Many thanks in advance for any help.

Paul

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [March 1, 2017, 6:27pm UTC](https://community.hubspot.com/t/using-a-hubl-variable-in-an-advanced-menu/1181/2 "2017-03-01T18:27:37Z")

</div>

you can use the vaiable {{ request.query\_dict }} to pull the query from the url.

You would need to create your menu using static HTML and format the link with the variable. You can use the same HS menu markup [Menus and Navigation - HubSpot docs](http://designers.hubspot.com/docs/cos/hubspot-menu-markup)

`<a href="//www.example.com">{{ request.query.title }}</a>`

---

<div class="post-metadata">

**Author:** ![ndwilliams3](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@ndwilliams3](https://community.hubspot.com/u/ndwilliams3)\
**Post date:** [March 1, 2017, 6:29pm UTC](https://community.hubspot.com/t/using-a-hubl-variable-in-an-advanced-menu/1181/3 "2017-03-01T18:29:48Z")

</div>

for default text use.

`<a href="//www.example.com">{{ request.query.title|default('Hello World'}}</a>`
