Page 1 of 1

Navigation question - {NAV_TABLE_COLUMN:x}

Posted: Fri 19. Nov 2004, 13:19
by spirelli
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!

Posted: Mon 22. Nov 2004, 16:43
by spirelli
has anyone got an idea about this?

Posted: Tue 23. Nov 2004, 14:30
by argos
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...

Posted: Tue 23. Nov 2004, 14:40
by spirelli
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??
Thanks a lot for your reply, argos!
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?

Posted: Tue 23. Nov 2004, 14:46
by argos
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>

Posted: Tue 23. Nov 2004, 15:12
by spirelli
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.

Posted: Tue 23. Nov 2004, 15:21
by argos
You're right, it's not perfect. I checked it and I noticed some strange behaviour. It works allright in Firefox and Netscape, but it keeps refreshing continuously in IE 6.0.2900, under Win XP with SP2. What browser do you use?

Posted: Tue 23. Nov 2004, 15:34
by spirelli
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:

Code: Select all

<SCRIPT LANGUAGE="JavaScript">
function redirect() {
if (document.referrer.indexOf("****.net") == -1) {
window.location = "http://www.****.net/newacademy.phtml";
}
}
</SCRIPT>
and the body tag looks like this:

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');">
Hmmm...

Posted: Fri 26. Nov 2004, 01:03
by spirelli
no, sorry. seems to be working.

But a different, better solution to the propblem is still needed.