Setting a variable from page to page

twig922
twig922 Community Member Posts: 13
I want to use variables to set my menu to indicate the topic I am currently in. So, I have 3 consecutive pages for one setting, then I set another variable for the next 4 pages, and so on. When I set a variable to a specific value on one page, it does not carry over to the next page. How can I do this?