Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
igorh (Guest)
igorh (Guest)
Hi all,
 
I have just recently (a few days back) downloaded and installed your ViArt, and must say that I love it (so far).
 
There are a few annoyances, but this I found to be rather important ommision on your part.
 
I changed the layout completely, to mostly make design more CSS design friendly, and when I started browsing, I noticed that your TABS (silver theme, default theme...) does NOT properly assign so called _menuActive_ class on your links (tabs).
 
So I started digging a bit, and the culprit is around line#77 in your header.php file.
 
if ($request_uri == $menu_basename)
 
(I hope this works)
 
Anyhow, when you debug a bit - you notice that once you for example go off and start READING news (articles.php...) it does not match to the article.php that is req.uri variable. Therefore, tab does not get labeled as menuActive although you ARE in fact in the NEWS/ARTICLE portion of the site...
 
Same goes for products - as soon as you leave a product.php page - andy subcategory or product detail - your products tab does NOT get menuActive classdef.
 
Yes, it's easy to edit and do a quick fix (I used explode "." to get the filename part, and then compared only first six letters (articl(e or es)-> all the same), and will have to mod it more since page.php page for custom content is a pain in the rear (need to look for pagename after the '=' sign)
 
Anyhow, thats the first problem, and I hope you might resolve it by your next upgrade/update.
 
Also, HOW can I get the drop down menu to work?? Works in ADMIN portion, but I don't get my subcategories on default layout (theme). WHERE or WHAT do I need to do to get it going?
 
Any help, or notice/pointer in the right direction will be appreciated.
 
Thank you, and keep it up
 
Igor, you future reseller and Enterprise user! :D
Last modified: 6 Jul 2006 10:15 PM
 
Vito
Vito
Hello Igor,
 
Unfortunately there is no a quick solution for problem you have described, because sometime we need to check the full url and not just the page name. For example for news section it can be used following url articles.php?category_id=1 and for events articles?category_id=2. We are still looking for a better solution for active links but unfortunately currently we don't have it.
 
Also, HOW can I get the drop down menu to work?? Works in ADMIN portion, but I don't get my subcategories on default layout (theme). WHERE or WHAT do I need to do to get it going?
 
The sub menus can be easily added via 'Site Navigation > Tree View'. Live example can be found on demo site at http://demo.codetosell.com/
 
Thanks,
ViArt Support Team
 
igorh (Guest)
igorh (Guest)
Well, I did manage to solve my problem by doing some ereg tricks, and it works (section colored tabs), but the problem now is whenever I go to the TREE view in CMS navigation management - if I click on ADD NEW, NOTICE appears, and the text is:
 
Notice: Undefined offset: 0 in /home/../admin/admin_menu_item.php on line 148
 
Then when you try to dropdown the Parent Item DropDown box - it has nothing available -> even if I try to EDIT - they don't show 0 -> it is completely empty.
 
What is the problem there?
 
igor
 
Hello Igor,
 
Unfortunately there is no a quick solution for problem you have described, because sometime we need to check the full url and not just the page name. For example for news section it can be used following url articles.php?category_id=1 and for events articles?category_id=2. We are still looking for a better solution for active links but unfortunately currently we don't have it.
 
Also, HOW can I get the drop down menu to work?? Works in ADMIN portion, but I don't get my subcategories on default layout (theme). WHERE or WHAT do I need to do to get it going?
 
The sub menus can be easily added via 'Site Navigation > Tree View'. Live example can be found on demo site at http://demo.codetosell.com/
 
Thanks,
ViArt Support Team
 
Vito
Vito
Hello Igor,
 
It's a version control issue.
Please try update any menu item in Tree view and then it update it's structure automatically.
 
Thanks,
ViArt Support Team
 
Well, I did manage to solve my problem by doing some ereg tricks, and it works (section colored tabs), but the problem now is whenever I go to the TREE view in CMS navigation management - if I click on ADD NEW, NOTICE appears, and the text is:
 
Notice: Undefined offset: 0 in /home/../admin/admin_menu_item.php on line 148
 
Then when you try to dropdown the Parent Item DropDown box - it has nothing available -> even if I try to EDIT - they don't show 0 -> it is completely empty.
 
igorh (Guest)
igorh (Guest)
Thank you for the tip M.Yoda.
 
It worked, so now, I'm able to create subcategories there. Now, since I'm developing my own theme (and have made it to work as flat - I removed all submenu building tags from header.html) I have to go back to header file a(html) and do another set of tests as far as drop down menus. Hope it all works without the need for additional CSS definitions (I;m using floated divs for my navigation, so I hope positioning will work on submenus) :D
 
I will keep you posted.
 
Igor
 
Hello Igor,
 
It's a version control issue.
Please try update any menu item in Tree view and then it update it's structure automatically.
 
 
 
Thanks,
ViArt Support Team
 
Well, I did manage to solve my problem by doing some ereg tricks, and it works (section colored tabs), but the problem now is whenever I go to the TREE view in CMS navigation management - if I click on ADD NEW, NOTICE appears, and the text is:
 
Notice: Undefined offset: 0 in /home/../admin/admin_menu_item.php on line 148
 
Then when you try to dropdown the Parent Item DropDown box - it has nothing available -> even if I try to EDIT - they don't show 0 -> it is completely empty.