Support Forums

Adding another Heading to the Navigational Menu

This is a discussion on Adding another Heading to the Navigational Menu within the Templates, HTML, CSS, and Design Help forums, part of the General category; Can anyone tell me how to add an additional heading to the Navigational Menu? I want to add a heading ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 04-05-2006, 08:56 PM   #1
Senior Member
 
Join Date: Apr 2006
Posts: 103
Rep Power: 25
sporthorsebreeder will become famous soon enough
Default Adding another Heading to the Navigational Menu

Can anyone tell me how to add an additional heading to the Navigational Menu?
I want to add a heading called "Site Info" to break up the menu in the same way that the "Member Options" Heading does it just now. I want to include it just after the "Top Listings link".

Thanks for any help.
Hugh
sporthorsebreeder is offline   Reply With Quote
Old 04-05-2006, 09:06 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

The navigation section is contained in its own table in the file /templates/<your template name>/layout.tpl.php

The section that makes up the navigation has a comment designating where it starts and where it ends that looks like this.

<!-- // Navigation // -->

The headers for the nav title arent actually defined with the TH tag but instead are just a normal TD tag with a class designation for css...ie class="navTitle"

So, to add another table header simply add a new table row and data cell with the title like this...

HTML Code:
<tr>
<td class="navTitle">Site Info</td>
</tr>
then under that heading add your links by creating a new row and data cell like this...

HTML Code:
<tr>
<td class="navlist"><img src="images/bullet.gif" alt="" /><a href="link to your page">Text for your link</a></td>
</tr>
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 04-05-2006, 09:37 PM   #3
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 70
Rep Power: 24
garysmith is on a distinguished road
Default

Larry how can I get the table header to pick up the attributes of the main headers ... please look at www.zfreeads.com


Quote:
"0" cellpadding="0" cellspacing="0" class="navigation">
<tr>
<td class="leftcol_top">{$smarty.const.LANG_TPL_NAVIGA TION}</td>
</tr>
<tr>
<td class="navlist"><img src="templates/default/images/bullet.gif" alt="" /> <a href="{$smarty.const.URL}/toplistings.php?pg=featured">Featured Ads</a></td>
</tr>
<tr>
<td class="navlist"><img src="templates/default/images/bullet.gif" alt="" /> <a href="{$smarty.const.URL}/toplistings.php?pg=new">{$smarty.const.LANG_TPL_NE W}</a></td>
</tr>
<tr>
<td class="navlist"><img src="templates/default/images/bullet.gif" alt="" /> <a href="{$smarty.const.URL}/toplistings.php?pg=top">{$smarty.const.LANG_TPL_TO P}</a></td>
</tr>
<tr>
<td class="navTitle">Site Info</td>
</tr>

{foreach from=$templatepages item="entry"}
<tr>
<td class="navlist"><img src="templates/default/images/bullet.gif" alt="" /> <a href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle }</a></td>
</tr>
{/foreach}
<tr>
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com

Last edited by garysmith; 04-05-2006 at 09:40 PM.
garysmith is offline   Reply With Quote
Old 04-05-2006, 09:54 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by garysmith
Larry how can I get the table header to pick up the attributes of the main headers ... please look at www.zfreeads.com
You created different css classes for you nav table and the one I used in my example was the default. FOr example for you top nave bar is class="leftcol_top"
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 04-05-2006, 10:05 PM   #5
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 70
Rep Power: 24
garysmith is on a distinguished road
Default

Thanks Larry for the comments and the leads.

see the change at www.zfreeads.com

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline   Reply With Quote
Old 04-05-2006, 10:07 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

There ya go, peice of cake eh?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 04-06-2006, 05:48 AM   #7
Senior Member
 
Join Date: Apr 2006
Posts: 103
Rep Power: 25
sporthorsebreeder will become famous soon enough
Default

Thanks Larry for sharing your knowledge.
Its simple when you know how
Hugh
sporthorsebreeder is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Heading to the Featured Listings sporthorsebreeder Templates, HTML, CSS, and Design Help 9 05-31-2006 09:54 PM
Adding Internal Navigation Menu sleepy Templates, HTML, CSS, and Design Help 1 04-13-2006 09:12 AM


All times are GMT -4. The time now is 10:34 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0