如何使用针对营销人员的Web表单更新Sitecore用户(更新联系方式) [英] How to update sitecore user with webforms for marketers ( Update Contact Details )

查看:103
本文介绍了如何使用针对营销人员的Web表单更新Sitecore用户(更新联系方式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Sitecore 8 Update 2网站. 我使用了供营销人员使用的Web表单来创建登录和注册页面.这些工作正常,易于使用.在注册表单上,我可以轻松方便地将表单上的字段与所选用户个人资料上的字段链接.

I'm working on a Sitecore 8 Update 2 site. I used web forms for marketers to create a login and register page. These worked fine and were easy to use. On the register form i was able to link fields on the form with fields on the selected user profile, nice and easy.

现在,我希望用户可以在页面上编辑他们的联系方式. 但是,当我要链接表单的字段时,只能将它们链接到构面.我已经用我的个人资料填写了表单的用户个人资料"字段.所以我想像注册表格一样链接这些字段.

Now i want a page were user can edit their contact data. However when i want to link the fields of the form I can only link them to facets. I have filled in the " User Profile " field of the form with my profile. So i would like to link these fields just as a register form does.

有什么办法可以做到这一点?

Is there any way to achieve this ?

推荐答案

如果要更新联系人数据,则必须使用更新联系人详细信息保存操作"来更新构面-这是xDB的工作方式,exerything是一个构面. xDB中的每一位信息都需要通过一个方面进行更新 例如个人信息方面

If you want to update contact data you will have to update facets using the Update Contact Details Save Action - this is how xDB works and exerything is a facet. Each bit of information in xDB needs to be updated via a facet e.g. the Personal Info Facet

 var personalInfo = Tracker.Current.Contact.GetFacet<Sitecore.Analytics.Model.Entities.IContactPerso‌​nalInfo>("Personal"); 
 personalInfo.FirstName =firstname; 
 personalInfo.Surname = surname;

要注册自定义方面,请点击此处.

To register custom facets there's a good post here:

http://www.sitecore.net/learn/blogs/technical-blogs/getting-to-know-sitecore/posts/2014/09/introducing-contact-facets.aspx

这篇关于如何使用针对营销人员的Web表单更新Sitecore用户(更新联系方式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆