04-10-2008, 02:27 AM
I really need your suggestions in making my navigation system effective.
Is this a right way to do. I see many sites having the navigation in HTML itself. But my problem is whenever I make changes to the navigation, I need to upload all the files to my server which is time consuming. And I am little lazy to update the 1k pages ;)
Thanks a lot in advance!!!
04-10-2008, 08:22 AM
Use CSS as it is much more spider friendly.
<li> Menu 1 item here with CSS styling. </li>
<li> Menu n item here with CSS styling. </li>
That is best for SeBots, surfers and disabled people. You can of course use the same technoque on submenus.
There is a Norwegian site (shall I tell about it - a competitor of my menu system. WPW members are the bosses, so here it is: bMenu (http://bmenu.com/)
"bMenu focuses on navigation technology which improves and standardizes navigation on web, Intranets and mobile terminals.
Search has lately been seen as the only way to navigate Internet. bMenu is patent pending (US, PCT, NO) technology which improves access to web content and gives a much faster and better overview than traditional navigation or search results. It also increases page views for advertising sites and sales for e-commerce sites. Today we have some of the major portals in Norway as beta customers.
Behind bMenu you will find some of the top people within programming and development with experience from companies like Fast, Yahoo and Opera.
Investor is Alliance Venture.
The backbone of the technology is built on Fast’s technology platform.
bMenu is now located in Norway and New York and is establishing office in San Francisco".
It uses the Fast engine, scan web sites for content that is automatically added to the menu system. You can scan a Chinese site and automatically produce English menus on your site.)
There is a free and paid versions. The most advanced are for companies.
04-10-2008, 04:58 PM
Plus, CSS can be significantly lighter, and easier to manage/update.
04-10-2008, 05:32 PM
Simply replacing menu.js to update your navigation is also a problem because of browser caching. Visitors returning to your site may reuse a cached copy of menu.js and will not see your menu changes.
04-10-2008, 05:33 PM
You should only use HTML + CSS.
Many use a ul / li structure. This is the right way for SE spiders to browse your menus, and therefore your website.
04-10-2008, 06:28 PM
The CSS vs JScript issue aside, if you have 1000+ pages and you're needing to change things regularly, you should really be putting your menu in an "include" file of some kind. You can do this with most servers that let you put up .php, .asp or .shtml pages.
This way, you change one central file and it flows through the whole site.
That combined with your CSS menus would give the best of both worlds.
04-10-2008, 06:33 PM
You can also include the actual link HREF tags in a style sheet? I wasnt aware of that capability.
If you want the menu to be the same on every page you should use include files -this is very easy to do in PHP, ASP, perl or even SHTML
you create one HTML file then include it into you 1000 files.
you would still use CSS as described above
Why can you not use php to include the menu? It renders like html and you can include the file.
04-10-2008, 08:57 PM
BJ, you took the words right out of my - well - keyboard.
I had never used php before and recently took over a website for a client. Her previous designer had started doing navigation with php but had a different php file for every page so the background would highlight which page you were on.
By cleaning up the CSS I was able to achieve the same results and use one php file for the navigation menu. Worked beautifully.
Though I confess I do prefer Dreamweaver's library functionality, which does basically the same thing but I can see what it will look like on the page. The downside is you need to update (it will do it automatically for you) all the pages and reupload.
04-11-2008, 12:42 AM
First, thanks all for your suggestions.
Now, I understand the value of using CSS menus. I also think that I can try out the PHP include concept in my pages. But all my pages needs to be .php file. Right now I have all the pages as .html.
Is there a way by which I can redirect all my .html file to .php file using ".htaccess"?
04-11-2008, 03:34 AM
Yes you can write a 301 redirect in your htaccess to redirect all of your pages.
It's also advisable to be sure to have an xml sitemap for Google to see any and all changes to your website.
The PHP include is a great tool, I've used it. Very convenient when adding or changing around links -- just change the one file instead of editing every page. A must-have for any website that intends to grow, unless the site is utilizing a CMS (content management system i.e. Mambo, etc)