Webparts, personalisation and membership: how do they work in Umbraco?
I have created a .Net Usercontrol that uses Webparts/Webzones. So controls can be dragged and dropped from one position to another. This works fine. I have declared the WebpartManager with a parameter Personalization-Enabled="false" AND in the page_load event of the user control I set its displaymode to 'Design' (WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode), to let users drag the controls around.
When a control has moved, I call WebPartManager1.WebPartMoved and use my own code to save the order and contents of the controls in the webzone as xml to the db. This all works fine. Stand alone that is...
But when I use this control in an Umbraco Macro, I can not set the Webpartmanager displaymode to Design. "The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user".
Looking into this error I found this http://forums.asp.net/t/1383417.aspx where it is suggested to set the authentication to Windows instead of Forms. But isn't Umbraco using this setting?
When I change the WebPartManagers parameter Personalization-Enabled to "true" my page 'crashes': it cannot find some updatepanel in the PreRender anymore.
Does anyone have any tips or ideas? I Would be very grateful.
Webparts, personalisation and membership: how do they work in Umbraco?
I have created a .Net Usercontrol that uses Webparts/Webzones. So controls can be dragged and dropped from one position to another. This works fine. I have declared the WebpartManager with a parameter Personalization-Enabled="false" AND in the page_load event of the user control I set its displaymode to 'Design' (WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode), to let users drag the controls around.
When a control has moved, I call WebPartManager1.WebPartMoved and use my own code to save the order and contents of the controls in the webzone as xml to the db. This all works fine. Stand alone that is...
But when I use this control in an Umbraco Macro, I can not set the Webpartmanager displaymode to Design. "The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user".
Looking into this error I found this http://forums.asp.net/t/1383417.aspx where it is suggested to set the authentication to Windows instead of Forms. But isn't Umbraco using this setting?
When I change the WebPartManagers parameter Personalization-Enabled to "true" my page 'crashes': it cannot find some updatepanel in the PreRender anymore.
Does anyone have any tips or ideas? I Would be very grateful.
Fabian,
You may want to take a look at widgets project that does own implementation of webparts.
regards
Ismail
is working on a reply...