Navigation question - {NAV_TABLE_COLUMN:x}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Navigation question - {NAV_TABLE_COLUMN:x}

Post 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!
Last edited by spirelli on Sat 29. Jan 2005, 19:15, edited 2 times in total.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

has anyone got an idea about this?
argos
Posts: 135
Joined: Mon 15. Mar 2004, 20:02

Post 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...
Regards,
Jurgen Nijhuis
http://www.argosmedia.nl
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post 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?
argos
Posts: 135
Joined: Mon 15. Mar 2004, 20:02

Post 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>
Regards,
Jurgen Nijhuis
http://www.argosmedia.nl
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post 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.
argos
Posts: 135
Joined: Mon 15. Mar 2004, 20:02

Post 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?
Regards,
Jurgen Nijhuis
http://www.argosmedia.nl
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post 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...
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

no, sorry. seems to be working.

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