ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Category Menu width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Category Menu width

 Post Reply Post Reply Page  12>
Author
Message
katharina View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote katharina Quote  Post ReplyReply Direct Link To This Post Topic: Category Menu width
    Posted: 09-February-2009 at 1:10pm
I'm trying to figure out how wide the category menu needs to be, and/or where to modify this.  Right now it looks good at the top level, but when I follow down into subcategories it gets wider and then it does not look good on the page anymore.  All I need is to know the max width it will use and I can modify the header.asp to reflect this.  I'm in the process of redoing this file for 1024 screen width. 
Examples:
http://www.germanplaza.com/productcart/pc/viewcategories.asp looks fine
http://www.germanplaza.com/productcart/pc/viewCategories.asp?idCategory=278 looks off
Katharina

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 09-February-2009 at 4:33pm
Hi Katharina,
      If you look at the code in your admin directory pcGenCatNavigation.asp there is a line :
    maxProNameL = 22
If the category name is longer than this (22 characters) then it is trimmed to 22 characters and has ... added to the end.  You can adjust this if you wish.
The text will wrap if necessary (See http://www.germanplaza.com/productcart/pc/viewCategories.asp?idCategory=357- which is using the narrow version) although this leads to your already long menu getting much longer. One issue I see with the truncated menu entries is that some become identical to others - For example in EF German Scap Pictures :
      EF German Scrap Sheet...
      EF German Scrap Sheet...
      EF German Scrap Sheet...
      EF German Scrap Sheet...
      EF German Scrap Sheet...
      EF German Scrap Sheet...
      EF German Scrap Sheet...

The only way I can see of resolving that would be renaming of categories to shorten them, perhaps combined with increasing the menu width and the "maxProNameL" to a higher figure than 22
 
Back to Top
katharina View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote katharina Quote  Post ReplyReply Direct Link To This Post Posted: 09-February-2009 at 7:33pm
Now that is confusing.  Why does it in some cases truncate and wrap nicely, and others not?  Shouldn't it be consistent throughout?  What would be the right pixel width for the <!--#include file="inc_catsmenu.asp"--> found in the header.asp file?  This would help when creating the header template.
Katharina
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 09-February-2009 at 8:26pm
Hi Katharina,
   Yes, no idea why it's behaving differently on different pages. Anyway, it looks better in Firefox (no surprise there then :-) ) I used the web developer add-on and it's ruler function and a width of 175px looks ok - with the current font & 22chars + ...

I really recommend the combination of Firefox and the web developer add-on, although checking your site still looks fine in IE is very important as well.   
Back to Top
katharina View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote katharina Quote  Post ReplyReply Direct Link To This Post Posted: 09-February-2009 at 8:48pm
Thanks for the help.  I'm using FF, and have the developer add-on.  Still trying to learn it, but I actually found the rulers in it and they came to the 175px.  I will upgrade the site to 1028 width and plan on using 200px for the left side nav.  Also thanks for the tip on the genCatNavigation.asp.  It is really nice that you all help on this .  I know you are a staff guru now, but you have also helped before.  I've subscribed to most of the forum categories here and read all the messages.   This is also how I learn a lot about PC. That and the wiki.  I will never know enough ASP to do any programming, so I will keep on asking things like that and anoy you guys.  On the upside, I bet there are other users who learn just like me.
Katharina
Back to Top
postitworld View Drop Down
Newbie
Newbie


Joined: 11-February-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote postitworld Quote  Post ReplyReply Direct Link To This Post Posted: 14-July-2009 at 12:34am
There is not pcGenNavigation.aspin my directories? Can someone help me? How do I change the width of the category menu and the length of the category names? Thank you
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 14-July-2009 at 12:44am
The name is not pcGenNavigation.asp.  GenNavigation.asp is in your pcadmin folder.
 
 
This statement appears in GenCatNavigation.asp and controls the number of characters that appear for a category name before it is truncated.
 maxProNameL = 22
 
Settings for the width of the menu are dictated by CSS.  If you are working with the stock header/footer, have a look at pcHeaderFooter08.css.


Edited by Greg Dinger - 14-July-2009 at 12:58am
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 14-July-2009 at 12:45am
typo: genCatNavigation.asp is the correct name.
Back to Top
postitworld View Drop Down
Newbie
Newbie


Joined: 11-February-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote postitworld Quote  Post ReplyReply Direct Link To This Post Posted: 14-July-2009 at 1:04am
Thank you but I cannot find the file? What folder is it in?
Back to Top
postitworld View Drop Down
Newbie
Newbie


Joined: 11-February-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote postitworld Quote  Post ReplyReply Direct Link To This Post Posted: 14-July-2009 at 1:10am
All set...I found it..Thank you very much for your help!! One last question, if I wanted to widen the entire site, width, what file can I change the width of the site in? Thanks again!!
Back to Top
 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.