Jump to content

active links


Guest lepoticum

Recommended Posts

Guest lepoticum

sorry, ive looked through all the foums here and in cc.org but cant seem to find anything on it. Is there any way of inserting an active link into the main navigation or category navigations?

Link to comment
Share on other sites

You can open up /sytleTempaltes/boxes/categories.tpl and add a list item under <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>" (Home) if you want

Link to comment
Share on other sites

You can open up /sytleTempaltes/boxes/categories.tpl and add a list item under <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>" (Home) if you want

So much for engrish lessons...

/style/Templates/boxes/categories.tpl

or open /style/Templates/boxes/siteDocs.tpl

or visit the 3rd party forum and look for the gri links mod

Link to comment
Share on other sites

Kinetic theres no need for your immature little jokes, I was in a rush and saw someone needed help... So I made a few typos, sorry I'll try to be more like you - Perfect and have nothing to do with my time except critique members trying to help people in need.

Link to comment
Share on other sites

Guest lepoticum

thanks a million for the help ill give that a go now..

Perhaps you misunderstood me (or maybe im not understanding properly) though. Im not looking to add an extra link to the navigation, i want to add a style to the current navigation so when the user has clicked for eg. "Hardware" the hardware link will change colour from red to black and the rest of the links will remain red so that the user will know what page they are on..

thanks as always.

Link to comment
Share on other sites

Guest lepoticum

ok ive figured out how to add a current or active link on the categories navigation.

For anyone that is interested:

open categories.inc.php which is located in includes - boxes folder

find

 

$results[$i]['cat_name'] = validHTML($results[$i]['cat_name']);





replace with







if($_GET['act']=='viewCat'){

			$currentCat = $_GET['CatId'];

			if ($results[$i]['Cat_id'] == $currentCat) {

				$results[$i]['cat_name'] = "<span class='currentCat'>".$results[$i]['cat_name']."</span>";

			} else {

				$results[$i]['cat_name'] = validHTML($results[$i]['cat_name']);

			}

		}

now you can style your current category link with your stylesheet for eg.

.currentCat {

color: #000000;

}

Still cant figure out how to put a current link on the main navigation however.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...