UPDATE: I've writing a multipart tutorial on how this was done, follow it in order:
I've put together an example theme which impliments the top navigation menu that you see in this site. I'm very strapped for time at the moment, so I hope you'll forgive the lack of detailed instructions.
However, if you have any experience with creating new drupal themes, then you should have a very easy time figuring out how it works. It doesn't require any new database tables, or modules. All that is required is php-template. For the lovely categorization that you see in this site, you'll also need the taxonomy menu module, though.
There are four critical changes in the code that are worth highlighting
That's enough for now, let me know if this works, fails, or makes you want to set buildings on fire.
Comments
me again
Very impressive, but...
Great Question Roland, what
Thanks!
brilliant - Thanks - 1 suggestion
Thanks for the suggestion
tagsonomy browsing
Interesting... I'll look
civicspace theme
Well, if you're not a
Well, if you're not a programmer, and have no understanding of PHP or CSS, than its probably going to be something of a daring adventure into a new unknown world where good men die like dogs for no good reason. However, you have to start somewhere, and for the most part I'm willing to help people who are having problems so long as the describe their problem here, so that my answer can benifit anyone else who might come along.
As for the AJAX navigation... there are problems with browser support so it would probably be a bad choice for a global navigation scheme. In addition, I worry that overuse of AJAX might messup a site's google results. I'll have to do more research into that. However, I am experiementing with the integration of AJAX with books. The trouble is, I have no idea what I'm doing so the results of my experiments thus far have been a blank page of white... AJAX style.
As for the navbar in the civicspace theme, I'm unsure of how the theme was coded, so there might be unforseen problems. I am working on a more scalable, and visually pleasing version of the navbar along with some professional work that has me completely booked at the moment. I'll be sure to release the code.
managed your navbar for the civicspace theme - just
<?php/*** The following simple snippet* displays different menus to anonymous/logged in users.*/global $user;/** * This presents Stratagility business site menu * for logged out/anonymous users*/if ($user->uid) { $UserMenu = theme_menu_tree(114);}/** * This presents the community site menu for loggedin users*/if (!$user->uid) { $UserMenu = theme_menu_tree(105);} print $UserMenu;?>Post new comment