1
warnerpj
NavBar
  • 2004/9/21 12:36

  • warnerpj

  • Just popping in

  • Posts: 4

  • Since: 2004/9/21


I'd like to put a simple navbar across the top of all my pages, like the module navbar, but separate from it (a site nav-bar, if you like).

What is the best way to do this without hacking the theme files?

I'd like the navbar to be present in all themes.

I guess, ideally, what I am looking for is an unadorder block to go below the logo, be as wide as the entire page, and be above all other L,C,R blocks.


+-----------------+
Logo/banner     |
+-----------------+
|  
'Top' blocks   |
+---+---------+---+
|         | |
|  Centre |
|         | |
|         | |
|   |         | 
|
+---+---------+---+
'Bot' blocks    |
+-----------------+

2
rcjohnson
Re: NavBar
  • 2004/9/21 12:47

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


I think the easist way to do this woudld be to use a php include () statement. That way, your theme.html doesn't get messy, and you would just have to add a couple lines to each theme.

3
sbkiller
Re: NavBar
  • 2004/9/21 13:41

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Remember php will not work on xhtml theme file.

You have to hack the theme to do this and you might not have any choice.

4
ackbarr
Re: NavBar

actually smarty does have the capability to include raw PHP into the theme:
<{php}>
include(
'full/or/relative/path/to/include.php');
<{/
php}>

should do the trick

5
rcjohnson
Re: NavBar
  • 2004/9/21 15:15

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


Why were on the subject....

When using tags, why do you need to use:
<{php}>
include(' ');

instead of
<?php
And
include (" ");

- Ryan

Login

Who's Online

169 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits