Changing menus and templates based on the page I come from..
Posted: Fri Jul 05, 2013 1:45 am
Imagine I have a series of articles on American State capital cities...
Then imagine I have another series on the great cities of America, which will, of course, include some cities from the first list.
I can link to the state capitals which are also great cities from my great cities page using an internal page link. The problem, of course is that if you go to a state capital from the great cities page, you get the state capital's menu and template, not the great cities navigational menu.
I could solve this by duplicating pages, but that is hardly good practice!
Any ideas how one could change that menu and template on the fly; that is, recognise that the reader has clicked on the internal page link for great cities and is not browsing the state capitals? How do we set navigation based on the page a person came from rather than the page they arrive at? Out of my depth here...
Andrew
Then imagine I have another series on the great cities of America, which will, of course, include some cities from the first list.
I can link to the state capitals which are also great cities from my great cities page using an internal page link. The problem, of course is that if you go to a state capital from the great cities page, you get the state capital's menu and template, not the great cities navigational menu.
I could solve this by duplicating pages, but that is hardly good practice!
Any ideas how one could change that menu and template on the fly; that is, recognise that the reader has clicked on the internal page link for great cities and is not browsing the state capitals? How do we set navigation based on the page a person came from rather than the page they arrive at? Out of my depth here...
Andrew