Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How to call any page via a link on it

Quote Reply
How to call any page via a link on it
I need to switch between two include files (include_1.html and include_2.html) that are included on everypage on my site by clicking on a link called (switch) in the include_header.html, so the same page gets reloaded with a different include file everytime the switch link is clicked.
My question, how do I specify the "switch" link so it reloads the same page (from any page)?
Thanks
Mark
Quote Reply
Re: [Mark2] How to call any page via a link on it In reply to
Any idea yet!! I specified this request in few threads but did not get right answer yet!!
The idea is to allow user to reload the same page (any page) via a link on that page.
what would be the URL? http://www.reload-the-same-page.com ;)
thanks again...
Quote Reply
Re: [Mark2] How to call any page via a link on it In reply to
The simple way of doing this is:
Code:
<%if switch%>
<%include include_2.html%>
<%else%>
<%include include_1.html%>
<%endif%>

And then the url will be http://.....;switch=1. If you want the switch to persist between pages, then add switch to your dynamic_preserve option. Of course this all only works in dynamic mode.

Adrian
Quote Reply
Re: [brewt] How to call any page via a link on it In reply to
Hummm.!!! first of all... thanks...
Ok... forget about switch and include...etc.
I am just want the user to be able to click a link from any page, and the page then reloads... is that possible...??
Means... where ever the user is in my site.. if he clicks a link on that page... then the current page reloads back... it is exactly like reload button or refresh which can be used from the any page... (this is the idea only).

thanks again..
Mark

Last edited by:

Mark2: Feb 2, 2006, 7:54 AM