Welcome to WebmasterWorld Guest from 54.80.123.20
I have a coder building a similar thing as we speak. StickyMail me in a week or so if you haven't found an alternative solution by then and I'll send you the code.
What I'm having built is something that logically works like this:-
1. If the link is to my domain, then echo out the straight link including any requested anchor text, e.g.:-
<a href="http://trillians/widgets.html">Trillian's Widgets</a>
Get's echoed out as it is.
2. If the link is not on one of my domains then echo out the link preceeeded with "http://mydomain/redirect.php?url=" and leave the rest (so anchor text is the same), eg:-
<a href="http://someone-else/widgets.html">A N Other's Widgets</a>
gets echoed out as:-
<a href="http://trilian/redirect.php?url=http://someone-else/widgets.html">A N Other's Widgets</a>
This is for a forum (tracking outbounds), but it would work for what you need to do, you would just need to edit it to echo out nothing if the URL matches the URL that you want to supress.
TJ
PS Welcome to Webmasterworld!
<?php $hidePage="Toolkit";?>
I use the following css:
#hidden {display: none;}
Then in the nav:
<div<?php if ($hidePage=="$cat_name$")
echo " id=\"hidden\"";?>><a href="$url_index$">$cat_name$</a></div>
$cat_name$ is the placeholder in my CMS that dynamically populates the navigation. The PHP code will find the item "Toolkit" and wrap it with the css #hidden class.
<?php
if($hidepage <> '$cat_name$') echo '<a href="$url_index$">$cat_name$</a>';
?>
A second thought - this depends on how your templating thingie works, if it buffers the output and then replacing or replacing as it goes - if it's replacing as it goes, it'd probably be more like
<?php
if($hidepage <> $cat_name$) echo '<a href="'.$url_index.'">'.$cat_name.'</a>';
?>