Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-08 Thread the_woodsman
"The problem is that using the bookmarklet, the user is directed to a web form..but if he is not registered he will be directed to login page by OthAuth authentication system. Since the global layout is not changed.." I´ve never used OthAuth before, but surely your beforeRender of your AppControl

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread bingo
Hi woody, after you mentioned i looked into the named parameter option. Till now I was using the order to get parameters. However the problem still persist. I don't see how it can solve the problem. The problem is that using the bookmarklet, the user is directed to a web form..but if he is not re

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread Langdon Stevenson
Nice one Woody, I hadn't thought of named params (have not used them in Cake myself, so it never occurred to me). I just saw them mentioned in another post before which is the first time I have come across them. That sounds like the solution to this problem all right. Regards, Langdon the_w

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread the_woodsman
I believe you can set cookies based on the URL path, i.e a cookie for / path1 differs from that for /path2, but I don´t know of any ´per window ´ facility, and if it can be done I´d imagine you´d have to use javascript. I agree with the above post that your layout may need to be the first paramet

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread Langdon Stevenson
Hi bingo > flexibility to open two different windows with two different layouts? > Is that possible. No idea sorry. Perhaps through the URL would be the best way. Regards, Langdon --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread bingo
hi Langdon, so is there a way to store variables that are specific to particular window. I search through groups and there were some mention about application specific variables. But I didn't find much information about application specific variable. I think, I want to give user flexibility to op

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread Langdon Stevenson
Hi bingo > I am not an expert of session or cookie and have only > information that cookie is save on client side whereas session is > saved on server side. But are both shared between windows ? Yes, both should be shared between multiple windows. Regards, Langdon --~--~-~--~~---

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread bingo
Hi Langdon, I think I am able to do what you suggested...but now the problem is that I can't have two windows having different layout. If I want to manage information specific to particular window, where it should be stored. I am not an expert of session or cookie and have only information that c

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-07 Thread Langdon Stevenson
Hi bingo > I initially thought of doing that..but there are some problem. Let me > explain you my scenario. Perhaps the better approach would be to put the layout at the start of the url as people do with language like this: /en/us/controller/action I think that modrewrite is then used to

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-06 Thread bingo
Hi Langdon, I initially thought of doing that..but there are some problem. Let me explain you my scenario. I am building a website and currently there is only default layout. In the default layout, left colum displays "login box" and if user is logged in, the left column display "menu" to naviga

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-06 Thread Langdon Stevenson
Hi bingo If the user has to choose the layout why not just give them a link or button to a controller that sets the chosen layout and stores the result? They click once and the value is set, and you just check the session on each request. This seems easier to me than always having to interro

Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-06 Thread bingo
Hi, I want users to have an option to select layout. More specifically, each user will have an option to select one of the layout from three different layout choices. However, I am not sure how I can globally change the layout based on user's selection. I read previous post on changing layout for