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 navigate to different pages. Now, I want to create bookmarklet (bookmark links) that directly take a user to a web from on my website. The bookmarlet is for convience of a user to add blog details quickly and easily and save them in the library. The idea is similar to delicious modal window where you can add tags and keywords and save the url in your library. However, since the window will be much smaller, I need to remove unnecessary elements from the default layout. further, in my default layout, the login box is always present in the left column, however for my bookmarklet, I need to display login box in the center of page. To do so, I thought creating a new simple layout that only displays content_for_layout. The problem is that using bookmarklet, I can only specify the target url. In future I will have many such bookmarklet and thus looking for a generic method for chaging layout. I am thinking of modifying beforeFilter to handle this. But I will try one more thing. If I can find a way to specify two links in my bookmarklet then I can do what you suggested. Regards, bingo On Mar 7, 1:52 am, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > 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 interrogate the URL to see > if there is layout info in there. I expect that it would get very messy > if you pass variables to the controller as well. > > Regards, > Langdon > > > 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. > > <snip> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
