Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コード ビハインドからSitecoreCreated Byの値またはCreated Dateアイテム フィールドを設定する方法はありますか?
Created By
Created Date
ありがとう
アイテムのフィールドを使用して更新するだけです。たとえば、次のようになります。
using (new Sitecore.SecurityModel.SecurityDisabler()) { item.Editing.BeginEdit(); item[Sitecore.FieldIDs.Created] = Sitecore.DateUtil.ToIsoDate(DateTime.Now); item.Editing.EndEdit(); }