November Happy Hour will be moved to Thursday December 5th.

change property at runtime

Vote:
 

Hi,

i want to change a property at run time.

To do this i use:

PageData writebleCopy = CurrentPage.CreateWritableClone();

and later

EPiServer.DataFactory.Instance.Save(writebleCopy, EPiServer.DataAccess.SaveAction.Publish);

But this work only if a user has edit/publidh privileges.

How have i to do if a user has only read provileges?

  

 

#33130
Oct 02, 2009 14:47
Vote:
 

Try this using this line:

EPiServer.DataFactory.Instance.Save(page, SaveAction.Publish, AccessLevel.Read)

 

#33133
Oct 02, 2009 15:40
Vote:
 

Laughing

it works!

Thanks

#33195
Oct 05, 2009 14:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.