|
Posted by Terry Liittschwager on 11/12/06 18:31
Terry Liittschwager wrote:
> For the past several years, my wife and some other ladies have had a
> little
> charity that provides comfort quilts to "at risk" children. Increasingly
> she has been getting asked if they had a website, so I decided to set one
> up for her. The website, comfortsforchildren.org is very amateurish thus
> far since I have no expertise in this area, but I'm learning - slowly,
> though, 67 year-old retired brains don't learn fast.
>
> Anyway, my current very basic question concerns the navigation bar on the
> upper left of each page. It's the same for each page, works fine, and is
> currently implemented with the following lines in each page:
>
> <div class="navbar">
> <p><a href="index.html">Home</a></p>
> <p><a href="policies.html">Policies</a></p>
> <p><a href="agencies.html">Agencies<br />Served</a></p>
> <p><a href="statistics.html">Statistics</a></p>
> <p><a href="construct.html">Quilt<br>Construction</a></p>
> <p><a href="testimonials.html">Testimonials</a></p>
> <p><a href="history.html">History</a></p>
> </div>
>
> The problem is that whenever I want to add another line, I have to edit
> every page. I'm sure there must be some way to have those lines in a
> separate file, referenced by one line unchanging line in each page, so
> that
> when I change the navbar, I only have to do it in the one place. For the
> life of me, though, I haven't found out how to do that.
>
> I've tried using <link href="navbar.html" /> with navbar.html a file with
> those lines, but all that happens is that the navbar disappears.
>
> I've also tried @import, but it appears that only works within a style
> definition.
>
> So, could someone point me in the right direction?
>
> Any and all suggestions will be most welcome.
>
> Terry L
My thanks to all who replied, giving me the various options available.
I must admit that it really surprises me there is no provision in the
language itself for doing this directly. Every other computing language
I've ever worked with has the ability to do this with ease without having
to invoke some peripheral process. Oh, well, such is life.
I think the easiest thing for me is to just write an emacs macro to do it.
Not a biggie.
Again, many thanks to all who replied for the info. I was really batting my
head against the wall, not realizing that what I was searching for didn't
exist in the manner that I had convinced myself it had to be.
Terry L
Navigation:
[Reply to this message]
|