Hi,

I plan to have such a function in my application:

        each user can custom how he view the web by select a predefined
layout. This will be record in a database or plat file.

In my design, for example there are 3 kind of layout for test.wm.  The
prefix is:    A,  B, C.  I define 3 layout:  A_test.wm,   B_test.wm,
C_test.wm in the layout directory.

When a user want to see the page, I will get settings from database for this
user, for example I get A.

By default , function WebMacroScreenLayoutLoader.parseTemplatePath( String
template ) will build the search path as:

        /layout/test.wm
        /layout/default.wm

I will add a little code in the function to make search path to be:

        /layout/A_test.wm
        /layout/test.wm
        /layout/default.wm

Thus, the remain code will find    /layout/A_test.wm  and set it as layout



I want you suggestion whether this is the right and best way to do this job?
Or there is some more convenient way to do this.

(I am not suggest to take this into the official release into turbine. )


Regards


fanyun



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to