![]() |
Why not a list menu? |
Post Reply ![]() |
Author | |
Louis ![]() Newbie ![]() ![]() Joined: 22-February-2006 Location: Netherlands Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 26-March-2007 at 6:12am |
I'm wondering why PC doesn't use a list menu. The crrent menu has to be generated from the backoffice, thats not realy efficient. If a list menu would be used, all kinds of nice css menu's would be possible. List menu's are easely styled and can be made dynamic. Here are some nicely styled list menu's: vertcal one level, vertical multi-level I'm saying this because I found (according to my opinion) one of the nicest webshops I've ever seen: click Edited by Louis - 26-March-2007 at 6:17am |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
You really have two different issues here... 1. First, PC uses the "Generate Navigation" from the Control Panel for one primary reason...efficient display of a menu on the front end. The Generate Navigation creates static HTML content which is used to display the navigation menus of categories, subcategories and optionally products. For stores with many categories/subcategories, generating the menus on-the-fly as a customer moves from page to page can be resource intensive and slow the site down. So the Generate Navigation only needs to be performed when you as the merchant change your store's categories or subcategories which is not usually alot once the store is up and running. 2. Second, the formatting of the HTML used to display the menu. You are correct, it would be nice to have it generate list based menus which can be styled with CSS. If you are familiar with ASP and HTML you could easily modify the genCatNavigation.asp routine to create lists vs. tables for the menus. We have done this for a couple clients and it isn't very difficult. See http://www.poshera.com. If you have a small set of categories/subcategories you could also change the header.asp file and generate the navigation dynamically if you wanted to do that. |
|
![]() |
|
Louis ![]() Newbie ![]() ![]() Joined: 22-February-2006 Location: Netherlands Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
@Netprofits Thx for your reply. Regarding point 2; I would love to experiment/use the list menu option for my next project. The problem, I'm good at html but not at asp. genCatNavigation.asp looks just a bit too complex for my limited knowledge. Could you post the lines of code I would need to change (or post the edited genCatNavigation.asp file) in order to make it a list menu? As you have done it for multiple client's you will probebly have it in no time. It would realy help me. Thx |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
There is no easy way to just post the lines that need to be changed. It depends on the projects and how the you want you navigation to look, i.e. just top level categories or 1st and 2nd level categories where the second level "fly-out" when the top level is rolled over. Also, the specific CSS classes and IDs need to be integrated into the code as you create each UL and LI tag. The Poshera example I listed uses PC 2.76 and a 3rd party menu system and is quite different than the 3.x version of the generate navigation code. You are probably better off working with an ASP developer so you can tell them exactly what you want and have them customize it. That's what other companies have paid us to do. |
|
![]() |
|
Louis ![]() Newbie ![]() ![]() Joined: 22-February-2006 Location: Netherlands Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
This is not a problem. I know how to style and make a css list menu. The fly-out or roll-down kind of effects are done by a java script. This is not the issue. Which classes or ID also doen't matter. That I cat do... And I just use 3.x so the other is also not the issue. The only part is the adjusting of the genCatNavigation.asp so it creates a list in stead of a table. I cant see the table tags but I just can't get it to work as a table needs table, td, and tr. A list just needs ul and li. However, I can understand that you're not willing to share the code. Thx, anyway. |
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Here is the code, have fun. As I said, this was done in 2.76 so it may need to be modified for 3.x. This code is provided purely as an example. It builds a string that must be written out to an HTML file. You can use the genCatnavigation.asp code for all of that and insert this as needed. We do not provide support for this code.
|
|
![]() |
|
Louis ![]() Newbie ![]() ![]() Joined: 22-February-2006 Location: Netherlands Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi, Thanks very much! I actually managed to do it myself in the mean time.
Here is my code 2007-04-01_164426_genCatNavigation.zip. It isn't the neat way to do it but I just replaced the table tags with ul and the tr tags with li. Then I deleted all the td tags so that that data would go directly into the li. that’s pretty much it actually. It works fine now. I'm busy trying to add some java script of moo tools to animate the menu. I'll post the result when I'm done.
Thx again, I'll have a look at your code to learn something from it. |
|
![]() |
|
Louis ![]() Newbie ![]() ![]() Joined: 22-February-2006 Location: Netherlands Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I got it to work. Here is the link. Look at the menu in the left column and scroll down to the heading 'kunstenaars'. Underneath you will see two names. If you click on one of the names, the list will slide down. If you then click on the other name, the previous name will slide up and the other will slide down. Try it to see. If some one is interested, I'll post it. |
|
![]() |
|
BlkBox ![]() Newbie ![]() Joined: 17-January-2007 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Yah that would be awesome if you could post it. Great job by the way...looks very nice. Thanks |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |