VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: iamalive on February 14, 2008, 15:53:08 PM

Title: Product menu formating not working
Post by: iamalive on February 14, 2008, 15:53:08 PM
Hi

I'm working on a replacement site at http://joomla.neukom-electronic.ch (http://joomla.neukom-electronic.ch)

The product menus show up as a tree, as needed, but the names don't sty within the module borders i.e. long product names should automatically break into several lines, rather than just stay on one straight line.

I also tried the various menus using lists, which cause a lot of problems with formatting.

Any ideas?

Regards

David
Title: Re: Product menu formating not working
Post by: iqapps1 on February 14, 2008, 16:57:04 PM
Hi

Did you get same issuse if you publish VM module in left menu...?
Have you tryed to use a Product categories module if that get same issuse...?

Regards
IQAPPS

Title: Re: Product menu formating not working
Post by: iamalive on March 01, 2008, 11:18:38 AM
Hi
I've tried everything. I've got almost everything fixed by using CSS. But I can't get any of the tree versions to wrap. If you know where to fix this and how, I'd be very grateful!

Thanks

David

UPDATE:

After spending hours looking at every possible thing in the CSS and PHP files - I really needed to solve this - I found that there is a seperate css file for the dtree menu

/components/com_virtuemart/js/dtree/dtree.css

delete the "white-space: nowrap" entry

In the Tigramenu it's hidden in the
/components/com_virtuemart/js/tigratree/tree.js

on line 119
return '<table cellpadding="0" cellspacing="0" border="0"><tr><td nowrap>' + (this.n_depth ? a_offset.join('') + (this.a_children.length

delete the "nowrap" . Also by changing cellspacing by, say, 2px, it spaces the lines of the menu much nicer.

I hope this helps all the people with this issue

Regards

David