View Single Post
Unread 10-05-2007, 04:08 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
  #6  
Default

Thanks for the link. Unfortunately, the you-are-here extension doesn't really work so well with frame based pages. Its in the implementation notes:

http://www.udm4.com/menu/modules/you...mentationNotes

One thing you might be able to do is code the php to set the display property of the right elements to "block".

Maybe try this. At the top of the menu php file, add this...

Code:
<?php
        //the open array will contain a bunch of empty elements that you need to correspond to your menu
	$open = array(
		"International"=>"",
		"Champions"=>"" //add others as needed
		
	);
	if(isset($_GET['liga'])) {
                //here we reset the style to be block based on the value of the url parameter.
		switch($_GET['liga']) {
			case "primera":
				$open['International'] = " style='display:block;' ";	
				break;
			case "champion":
				$open['Champions'] = " style='display:block;' ";
				break;
		}	
	}
?>
Then in your UDM <ul> <li> list make changes like this....

Code:
  <li class="onclick" <?=$open['International']?>><a class="nohref">International</a>
  	<ul>

  		<li class="onclick"><a target="main_frame" href="/Ligen/SPORTAL/e_primera.php">E - Primera Divisi&oacute;n</a></li>
  		<li class="onclick"><a target="main_frame" href="/Ligen/e_segunda.php">E - Liga BBVA (Segunda Divisi&oacute;n)</a></li>
		...
		...
		...
  	</ul>
  </li>
  <li class="onclick" <?=$open['International']?>><a class="nohref">Champions League</a>
  	<ul>

  		<li class="onclick"><a target="main_frame" href="/Ligen/CHAMPIONS/champions_a.php">Gruppe A</a></li>
  		<li class="onclick"><a target="main_frame" href="/Ligen/CHAMPIONS/champions_b.php">Gruppe B - mit Schalke 04 &amp; FC Valencia</a></li>
		...
		...
  	</ul>
  </li>
Reply With Quote