Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fabian 5 posts 23 karma points
    Jun 10, 2010 @ 14:53
    Fabian
    0

    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.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jun 10, 2010 @ 16:52
    Ismail Mayat
    0

    Fabian,

    You may want to take a look at widgets project that does own implementation of webparts.

    regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft