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. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
