Ryan,

Good choice. Continue to use ComponentConfig.java in that ftl. But maybe rearrange the order in your own list after that. Always try to change ftl first. Avoid java changes if possible.

Usually a software doesn't change the position of its module tabs very often. Hence, I haven't found much need to code a configurable framework for "positioning of module tabs".

Jonathon

PH wrote:
Hi Jonathon and Scott.

Thanks to you both. I will investigate if changing the ftl or changes in the 
java code is more suitable. Maybe we shall just modify the ftl to show and 
display whatever i want, as it may be troublesome to update the java code when 
we upgrade ofbiz to higher version in future.
Thanks!

rgds,
Ryan

----- Original Message ----
From: Jonathon -- Improov <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, 11 December, 2007 2:17:24 PM
Subject: Re: Sequence on the appearance on module title

Ryan,

Well, to answer your question specifically... you can't disable the
 sorting.

In folder /framework/base/src/base/org/ofbiz/base/component , see file
 ComponentConfig.java line 276.

All the webapp names are put into a java.util.TreeMap (webapp names are
the keys). That TreeMap sorts its keys in "natural order", which is alphabetically in this
 case.

To disable the sorting, *and* to dictate the order you want, you would
have to change the codes programmatically. Quite a bit of extending here.

Jonathon

Scott Gray wrote:
Here's the file you'll want to look at:
framework/common/webcommon/includes/appbar.ftl

Regards
Scott

On 11/12/2007, PH <[EMAIL PROTECTED]> wrote:
Dear Gurus/Experts,

I have noticed the module title on all page, such as "Accounting
 ....
Product...Webtool", the sequence of how they appear seems to be
 sorted.
May I know how can we 'disable' the sorting, or rather, how to
 arrange
them in sequence that we want?

Thanks in advance.


rgds,
Ryan



      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For
 Good
http://uk.promotions.yahoo.com/forgood/



 ------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.0/1180 - Release Date:
 12/10/2007 2:51 PM






      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good 
http://uk.promotions.yahoo.com/forgood/



Reply via email to