Previous Message
Next Message

Creating a Fedora-like menu system w/ CSS

Sent by David Dorward on 18 January 2005 15:03


On Tue, 18 Jan 2005 09:45:29 -0500, Chris McCuller
[EMAIL-REMOVED]> wrote:

> First off, the menu system I'm referring to is http://fedora.redhat.com

> I really like how the subitems show only when you are in that section

> After studying the HTML/CSS, it seems as if each section is done statically on 
> each page, which really seems like a pain.

It may or may not be done statically, it is, however, almost certainly
done programatically. This might be a process that runs once and
generates static pages, or it might be a process that runs everytime a
page is requested.

You could do this client side, using ids / classes / descendent
selectors to decide which bit of the menu is displayed - but that
would involve sending all menu options with every page - and
displaying them in user agents which ignore your CSS (Googlebot for
instance).

This type of thing is pretty trivial to implement in most content
management systems, so you should probably look at getting something
to generate your pages for you. I've had good success with Perl,
Template::Toolkit and MySQL.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: