hi friends

this is my site url http://www.1dash1.com all things are working fine except my secondary link which is in content area in black color is highlighted on every page what i want is when user click on offerings(primary links) the secondary link got displayed otherwise it is not visible on any other page...
i used if (isset($secondary_links)) {

print preg_replace('/<a (.*?)>(.*?)<\\/a>/i','<a \\1><span>\\2</span></a>',theme('links', $secondary_links, array('class' =>'links', 'id' => 'navlist')));

} this code in my tpl file

plz help me its really urjent w8ing for ur replies

Comments

nathanjo’s picture

You can do some checking if you are in the offering page:

<?php
if (drupal_get_path_alias($_GET['q']) == 'offerings') {
print preg_replace('/<a (.*?)>(.*?)<\\/a>/i','<a \\1><span>\\2</span></a>',theme('links', $secondary_links, array('class' =>'links', 'id' => 'navlist'))); 
}
?>
creativeideas’s picture

thanks a lot for your reply its working fine...