Navigation question - {NAV_TABLE_COLUMN:x}
Navigation question - {NAV_TABLE_COLUMN:x}
Hi,
We seem to be quite lucky with our site to be doing quite well with google. However, people often get straight to a specific article, which is not a bad thing.
For example, they might get to http:
Well, from what you see there you would never suspect that there is this page: http:
This is because on the first link I mentioned "The New Academy" is highlighted in the menu. So people think that's all there is. They might click on "Primary School" and "Links" and then they think that was it. They are missing a whole lot of content - maybe the most recent news or the most relevant stuff!!
(I know that it works like this because i have signed up for a free account at statcounter.com and there you can see exactly how people go from page to page.)
Therefore: It would be much better if the menu item "The new Academy" was not highlighted once you are inside the article. Is there any way I can achieve this?
Hope this makes sence. Thanks for any comments!
We seem to be quite lucky with our site to be doing quite well with google. However, people often get straight to a specific article, which is not a bad thing.
For example, they might get to http:
Well, from what you see there you would never suspect that there is this page: http:
This is because on the first link I mentioned "The New Academy" is highlighted in the menu. So people think that's all there is. They might click on "Primary School" and "Links" and then they think that was it. They are missing a whole lot of content - maybe the most recent news or the most relevant stuff!!
(I know that it works like this because i have signed up for a free account at statcounter.com and there you can see exactly how people go from page to page.)
Therefore: It would be much better if the menu item "The new Academy" was not highlighted once you are inside the article. Is there any way I can achieve this?
Hope this makes sence. Thanks for any comments!
Last edited by spirelli on Sat 29. Jan 2005, 19:15, edited 2 times in total.
I understand your problem. You could decide to turn off highlighting for clicked menu items in conf.template_default.inc.php.
Or maybe there is some way of autoredirect visitors to the index page of that section when coming from outside the domain. I don't know, maybe some script that does that exists??
Nice site layout by the way...
Or maybe there is some way of autoredirect visitors to the index page of that section when coming from outside the domain. I don't know, maybe some script that does that exists??
Nice site layout by the way...
Thanks a lot for your reply, argos!argos wrote:Or maybe there is some way of autoredirect visitors to the index page of that section when coming from outside the domain. I don't know, maybe some script that does that exists??
Well, that would be really good. If there was a way to redirect people to the article listing page, when they come from ourtside the site. Has anyone got an idea?
Hi, I found it myself with Google. Try this:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function redirect() {
if (document.referrer.indexOf("yourdomain") == -1) {
window.location = "http://www.yourdomain.com/sectionhomepage.phtml";
}
}
</SCRIPT>
</HEAD>
<BODY onload="redirect()";>
...
</BODY>
</HTML>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function redirect() {
if (document.referrer.indexOf("yourdomain") == -1) {
window.location = "http://www.yourdomain.com/sectionhomepage.phtml";
}
}
</SCRIPT>
</HEAD>
<BODY onload="redirect()";>
...
</BODY>
</HTML>
Wow, argos, I tested and it works! THanks a lot. I'll have this for the moment.
Well, it's not a brilliant solution. It would be much better if the menu would indicate that they are possibly not on the "new academy" home page that would be much better. If anyone knows of a way to do this that would be great. (or maybe as something to think about for the next release)
But again, thanks for your effort, argos.
Well, it's not a brilliant solution. It would be much better if the menu would indicate that they are possibly not on the "new academy" home page that would be much better. If anyone knows of a way to do this that would be great. (or maybe as something to think about for the next release)
But again, thanks for your effort, argos.
Well, I used Firefox.
I now tried again, but it does not work any more? Did I mess up something?
IN the head I have:
and the body tag looks like this:
Hmmm...
I now tried again, but it does not work any more? Did I mess up something?
IN the head I have:
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
function redirect() {
if (document.referrer.indexOf("****.net") == -1) {
window.location = "http://www.****.net/newacademy.phtml";
}
}
</SCRIPT>
Code: Select all
<body text="#000000" link="#FF9900" vlink="#FF9900" alink="#FF9900" topmargin="0" leftmargin="10" marginwidth="10" marginheight="0" onLoad="redirect();XM_initImages('01','picture/nav/navover_01.gif','picture/nav/navover_01.gif','nolinkstart','Home','picture/nav/navover_02.gif','picture/nav/navover_02.gif','homelink','St Mary Magdalene','picture/nav/navover_03.gif','picture/nav/navover_03.gif','St Mary Magdalene link','St David','picture/nav/navover_04.gif','picture/nav/navover_04.gif','St David link','Academy','picture/nav/navover_05.gif','picture/nav/navover_05.gif','Academy link','Refugee Centre','picture/nav/navover_06.gif','picture/nav/navover_06.gif','Refugee Centre link','Paradise Project','picture/nav/navover_07.gif','picture/nav/navover_07.gif','Paradise Project link','Anonymous','picture/nav/navover_08.gif','picture/nav/navover_08.gif','Anonymous link','**** Office','picture/nav/navover_09.gif','picture/nav/navover_09.gif','**** Office link','10','picture/nav/navover_10.gif','picture/nav/navover_10.gif','nolinkend');">