Adding a Navbar to Joshua

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Pellaeon
Regular
Posts: 5
Joined: Fri Aug 29, 2008 11:42 pm
Location: Dschörmanie
Contact:

Adding a Navbar to Joshua

Post by Pellaeon »

Hi there...
I´m starting to post a blog, and I chose the "Joshua" Template...
I tweaked it a bit, but now I want to add a Navbar.
Anyone can explain how to do that?
I only have very basic knowledge of css and php, so I´d need idiotproof advice :D
Blog

Thx in advance!
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Adding a Navbar to Joshua

Post by yellowled »

Pellaeon wrote:I´m starting to post a blog, and I chose the "Joshua" Template... I tweaked it a bit, but now I want to add a Navbar. Anyone can explain how to do that?
Depends a little on what you actually need.

There are two ways to do this:

A. Static navbar: You know only need a limited number or links, and they probably won't change much after an initial setup. If that's the case, you can hardcode the navbar in your template. It needs fewer steps, but it's more of a hassle if you want to change something in the navbar.

B. Dynamic navbar: You're not sure about the number of links you're gonna need. You might start with just 3 links, but you might need more later. In this case, it might be better to add a dynamic navbar which can be configure in the theme options ("Manage Styles" in the s9y backend). The initial setup is harder here, but changing the navbar is very easy later.

What's it gonna be? :)

YL
Pellaeon
Regular
Posts: 5
Joined: Fri Aug 29, 2008 11:42 pm
Location: Dschörmanie
Contact:

Re: Adding a Navbar to Joshua

Post by Pellaeon »

I think I´ll try the dynamic way :D
If it´s too hard, I can always try the easy one.
The dynamic one would be actually modyfing the Template itself, or?

Thx for the quick answer!
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Adding a Navbar to Joshua

Post by Don Chambers »

Either way, you are modifying the template. At minimum, you will be modifying the files index.tpl and style.css. If you go the dynamic route, you will also be editing (or likely CREATING) a file named config.inc.php in the template folder. If you REALLY want to go the dynamic route, take a look at the code in the bulletproof template.

I personally think you should NOT bother with the dynamic route... the code for a navbar is usually something like this:

Code: Select all

<ul>
    <li><a href="URL_HERE">LINK 1</a></li>
    <li><a href="URL_HERE">LINK 2</a></li>
</ul>
And then you will need some css to control the appearance of the navbar.

There are thousands of tutorials on this. I suggest starting with this one.
=Don=
Pellaeon
Regular
Posts: 5
Joined: Fri Aug 29, 2008 11:42 pm
Location: Dschörmanie
Contact:

Re: Adding a Navbar to Joshua

Post by Pellaeon »

Basically a list with CSS-enhanced optics.
I thought it would be more complicated though :D
I´ll try it later on.
Post Reply