Re: [Phpcollegeex-devel] what to change
Brought to you by:
david_degner,
itwanabe
From: David D. <dav...@ya...> - 2004-11-13 15:02:07
|
I built the tabs in the nav bar out of lists and css. All you have to do is add a new item to the list and it becomes a tab (or a sub-menu item, if you add it to the second list) To add new tabs (and a whole new section) you edit the first list in the i_nav.php file in each folder. For example: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> </ul> Will become: <ul id="navtab"> <li class="navtabon">Home</li> <li class="navtaboff"><a href="<? echo $home ?>books/">Textbook Exchange</a></li> <li class="navtaboff"><a href="<? echo $home ?>house/">Housing Finder</a></li> <li class="navtaboff"><a href="<? echo $home ?>new/">New Section</a></li> </ul> Each folder has it's own i_nav.php file so you must add the new list item in each one. Then you create a folder for the new section. In the i_nav.php file for this new folder you will want to change the "navtaboff" for the new sections listing to "navtabon". You also use the second list in the i_nav.php file to link to the sub-pages. For example, look at the second list in the books/ sections i_nav.php. <ul id="navlist"> <li><a href="search.php" title="Search for books">Find Books</a></li> <li><a href="index.php?page=newlisting" title="Post books for sale">Post Books</a></li> <li><a href="index.php?page=mybooks" title="Remove or update your listings">My Books</a></li> </ul> I hope it isn't too confusing. I did this so that new sections can easily be added and adjusted. David Degner Gary Redmond wrote: >Hi everyone; > > >can someone tell me what files i need to change to add new tabs to the top >menu. > > >Cheers > >Gary > > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Phpcollegeex-devel mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpcollegeex-devel > > > > |