Add links to topmenu?

Jimmy

No avatar

2006-01-15 11:19

Hey ppl

In which file do i need to edit if i want to out in some more links in the topmenu?

Regards Jimmy

wizzud

No avatar

2006-01-15 12:33

v1.0 - templates/page.tpl
< v1.0 - templates/default/head.tpl

Jimmy

No avatar

2006-01-15 19:28

Thanx wizzud that did it =)

Regards

Roland

No avatar

2006-01-17 11:32

But how do I add link to the header what opens a .html file into the body (where usually the product list is)? Like a webpage or portal. Or I have to use layers or pop-up windows?

Roland

Roland

No avatar

2006-01-18 16:07

I have found the answer to my own question. :-)

Edit the page.tpl here:


        
<li><a href="?p=productsList">$lang[products]</a></li>
        <
li><a href="?p=ordersBasket">$lang[basket]</a></li>
                
$sContentsMenu
      
</ul>



Add your <li>...</li> lines before $sContentsMenu. Don't forget this: You may use at least one uppercase letter at the end of the ?P=something line.

For example:

<li><a href="?p=aboutUs">about us</a></li>

Then place an about.php named file in the actions_client directory. It content may be something like this:


<?php

 $content 
.= 'Your HTML+CSS+JavaScript+Flash content here.';

?>



As you see, the link is "aboutUs", the file name is "about". See? The program automatically cuts the word where it finds the first uppercase letter. Like findUs -> find.php, johnDoe -> john.php. Got it? That's all. Everithing what you add to the $content variable will be shown where usually the product descriptions and pictures are, in the middle.

Take care with the apostrophes ( ' ) and PHP variables.

Roland

Back to top
about us | contact