# Defining Active Menu Trail Using Menu Position

This section will be explaining how to apply the active menu trail using the Menu Position module which is already installed and configured within Varbase.

Let us visit the Blogs landing page section on the site, you will notice the "Blogs" on the main menu is active but once you visit one of the Blog posts, you will notice the "Blogs" is no longer active.

![Blogs menu item is active](/files/-MLZnPv9Rd9OU8QxpjB6)

![Blogs menu item is no longer active after visiting the Blog post item](/files/-MLZoTbOiOzJsPfTfzOf)

This is a problem for the users because they will get lost and get confused if they are still in the blogs section or they were in another section of the site.

To solve this issue, we can simply by adding a position rule to the Blog post content type. Navigate to: **Administration \ Structure \&#x20;*****Menu Position Configuration***

![Menu Position Configuration section page with empty rules list](/files/-MLZpRhA3nV3_MLzhMz0)

As you have noticed there are no rules yet, please follow the instruction on how to add a Menu Position Rule:

1. Click the "Add Menu Position Rule" button
2. Add a label "Blog posts"
3. Make sure the checkbox is Enabled
4. Select "Main Navigation" from the "Parent menu item" drop-down field
5. Make sure the "Blog post" is checked from the "Content type" under "Conditions"
6. Click the "Save" button

{% hint style="info" %}
You can add rules to Content type, Language, Pages, and Roles.
{% endhint %}

![Adding new Menu Postion](/files/-MLZtvjMWkMJMAHEt5S5)

Now if you go back to the blog post content, you will notice the "Blogs" menu item is active.

![](/files/-MLZvSr9HwbudO7_NvtK)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/10.1.x/developers/configuring-a-varbase-site/navigation/defining-active-menu-trail-using-menu-position.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
