[Product-Developers] Change view programmatically
cswank
craig_swank at nrel.gov
Tue Aug 12 20:37:36 UTC 2008
Well, I found it. I used the setLayout() method of the content item. You
pass in the id of your view.
cswank wrote:
>
> Hello All,
> When you change the view of a content item (via the 'Display' drop down),
> the selected view is stored and used the next time the content is visited.
> My question is, how can I change the view programmatically?
>
> I have a content item that has a formlib form as its default view. When
> the user submits the form, I want the browser to redirect to the same
> content item, but now with a different view. The chosen view is based on
> the user's input into the form.
>
> Craig
>
>
>
>
--
View this message in context: http://n2.nabble.com/Change-view-programmatically-tp720329p720440.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list