Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

Template - site_header: The left menu bar

Discussion in 'Version 1.x' started by digibri, Jul 19, 2003.

  1. digibri Guest

    Template - site_header: The left menu bar

    Phillip,

    I'm working on modifying the left menu bar stuff.
    The default has 3 tables with links. It seems a bit non-trivial
    to add a 4th table, so I'm trying to extend the top one and place
    a blank and non-outlined table row between it and the "Main Menu" header row.

    Where/how does the Storyteller CMS system know to draw an outline around these tables?

    Thanks,

    B.
    digibri, Jul 19, 2003
    #1
  2. Philipp Guest

    Template - site_header: The left menu bar

    Here as example the code of the main menu

    Outline table:
    Code:
    <table cellspacing="0" cellpadding="0" width="160" bgcolor="#000000" border="0">
    					<tr>
    						<td>
    Main table code:
    Code:
    						<table cellspacing="1" cellpadding="3" width="100%" border="0">
    							<tr>
    								<td bgcolor="#008000">
    								<font face="Arial" color="#ffffff" size="2"><b>Main Menu</b></font></td>
    
    							</tr>
    							<tr>
    								<td bgcolor="#ffffff"><font size="2">
    								<li><a href="index.php">Home Page</a><br /></li>
    								<li><a href="category.php">News Category</a><br /></li>
    								<li><a href="archive.php">News Archive</a><br /></li>
    								<li><a href="review.php">Reviews</a></li>
    
    								<li><a href="faq.php">FAQ</a><br /></li>
    								<li><a href="poll.php">Polls</a></li>
    								<li><a href="download.php">Downloads</a></li>
    								<li><a href="glossary.php">Glossary</a></li>
    								<li><a href="link.php">Web Links</a><br /></li>
    								<li><a href="search.php">Search</a></li>
    
    								<li><a href="ticket.php">Trouble Ticket</a></li>
    								<li><a href="submitstory.php">Submit News</a></li>
    								<li><a href="submitdownload.php">Submit File</a></li>
    								<li><a href="page.php">Pages</a></li>
    								<li><a href="plan.php">Plans</a></li>
    								</font></td>
    
    							</tr>
    						</table>
    Closing outline table:
    Code:
    					</td>
    					</tr>
    				</table>
    Philipp, Jul 19, 2003
    #2
  3. digibri Guest

    Template - site_header: The left menu bar

    Yes, this is exactly the code I've been experimenting with.

    What puzzles me is that in all of the <table> tags in the template, the border is set as: border="0", and yet I'm seeing a black 1px outline for all the table elements.

    I don't think you're using CSS to control this behavior, or am I mistaken?
    I also noticed that the unordered lists don't include a <ul> or </ul> tag - so I'm suspecting that another PHP file is involved to parse site_head.php.

    Am I on the right track here?

    What I'm trying to do is have some table rows and cells be rendered without any border.

    B.
    digibri, Jul 19, 2003
    #3
  4. Philipp Guest

    Template - site_header: The left menu bar

    Basically, there are two tables. The first one is for the outline (see code above).

    For a main menu without outline:

    Replace:
    Code:
    				<table cellspacing="0" cellpadding="0" width="160" bgcolor="#000000" border="0">
    					<tr>
    						<td>
    						<table cellspacing="1" cellpadding="3" width="100%" border="0">
    							<tr>
    								<td bgcolor="#008000">
    								<font face="Arial" color="#ffffff" size="2"><b>Main Menu</b></font></td>
    							</tr>
    							<tr>
    								<td bgcolor="#ffffff"><font size="2">
    								<li><a href="index.php">Home Page</a><br /></li>
    								<li><a href="category.php">News Category</a><br /></li>
    								<li><a href="archive.php">News Archive</a><br /></li>
    								<li><a href="review.php">Reviews</a></li>
    								<li><a href="faq.php">FAQ</a><br /></li>
    								<li><a href="poll.php">Polls</a></li>
    								<li><a href="download.php">Downloads</a></li>
    								<li><a href="glossary.php">Glossary</a></li>
    								<li><a href="link.php">Web Links</a><br /></li>
    								<li><a href="search.php">Search</a></li>
    								<li><a href="ticket.php">Trouble Ticket</a></li>
    								<li><a href="submitstory.php">Submit News</a></li>
    								<li><a href="submitdownload.php">Submit File</a></li>
    								<li><a href="page.php">Pages</a></li>
    								<li><a href="plan.php">Plans</a></li>
    								</font></td>
    							</tr>
    						</table>
    						</td>
    					</tr>
    				</table>
    with:
    Code:
    						<table cellspacing="1" cellpadding="3" width="160" border="0">
    							<tr>
    								<td bgcolor="#008000">
    								<font face="Arial" color="#ffffff" size="2"><b>Main Menu</b></font></td>
    							</tr>
    							<tr>
    								<td bgcolor="#ffffff"><font size="2">
    								<li><a href="index.php">Home Page</a><br /></li>
    								<li><a href="category.php">News Category</a><br /></li>
    								<li><a href="archive.php">News Archive</a><br /></li>
    								<li><a href="review.php">Reviews</a></li>
    								<li><a href="faq.php">FAQ</a><br /></li>
    								<li><a href="poll.php">Polls</a></li>
    								<li><a href="download.php">Downloads</a></li>
    								<li><a href="glossary.php">Glossary</a></li>
    								<li><a href="link.php">Web Links</a><br /></li>
    								<li><a href="search.php">Search</a></li>
    								<li><a href="ticket.php">Trouble Ticket</a></li>
    								<li><a href="submitstory.php">Submit News</a></li>
    								<li><a href="submitdownload.php">Submit File</a></li>
    								<li><a href="page.php">Pages</a></li>
    								<li><a href="plan.php">Plans</a></li>
    								</font></td>
    							</tr>
    						</table>
    Philipp, Jul 19, 2003
    #4
  5. digibri Guest

    Template - site_header: The left menu bar

    Ah, I get it - thanks.

    Is it difficult to add another menu above the existing Main Menu?

    B.
    digibri, Jul 19, 2003
    #5
  6. Philipp Guest

    Template - site_header: The left menu bar

    No, just copy the new code between

    Code:
    		<td valign="top" width="100%" bgcolor="#0066ff"> 
    		<table cellspacing="0" cellpadding="2" width="100%" border="0">
    			<tr>
    				<td valign="top" width="160" bgcolor="#0066ff">
    and the main menu code
    Philipp, Jul 19, 2003
    #6
  7. digibri Guest

    Template - site_header: The left menu bar

    Super!

    Thanks again Phillip.

    B.
    digibri, Jul 19, 2003
    #7
Show Ignored Content

Share This Page

Tweet
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Useful Searches

  • Recent Threads
More...
    Forum software by XenForo™ ©2010-2012 XenForo Ltd.