Make a permanent "See all..." link.

Two level, smoothly expanding, search engine friendly accordion menu.
Post Reply
norman
Site Admin
Posts: 1248
Joined: Sat Feb 07, 2004 9:55 pm

Make a permanent "See all..." link.

Post by norman »

It is possible to have a See All link going to the parent section at the top of each list. Here's how:

For a second level "See all...", look for the first occurrence of:

Code: Select all

	$am_listindex = <actinic:variable name="ListIndex" selectable="false" />;
Immediately after that add:

Code: Select all

	if ( $am_listindex == 1 )
		{
		echo "<li><a class=\"am-secondseeall\" href=\"$am_2nd_parentlink\">$am_2nd_maxprefix$am_2nd_parentname</a>";
		}
For a third level "See all...", look for the second occurrence off:

Code: Select all

		$am_listindex = <actinic:variable name="ListIndex" selectable="false" />;
Immediately after that add:

Code: Select all

			if ( $am_listindex == 1 )
				{
				echo "<li><a class=\"am-thirdseeall\" href=\"$am_3rd_parentlink\">$am_3rd_maxprefix$am_3rd_parentname</a></li>";
				}
Norman
Post Reply