C# 클래스 Sitecore.SharedSource.Commons.Utilities.LayoutUtil

Utility class for accessing various Layout Settings
파일 보기 프로젝트 열기: Velir/Sitecore-Commons

공개 메소드들

메소드 설명
GetDatasourceFromControl ( Database database, DeviceItem device, System.Item item, System.Item sublayoutItem ) : System.Item

When working with the Presentation Layer for Sitecore, you can specify a Datasource as a property for a control. However, accessing the item that is set brings a bit of a challenge. Hopefully this fixes that.

메소드 상세

GetDatasourceFromControl() 공개 정적인 메소드

When working with the Presentation Layer for Sitecore, you can specify a Datasource as a property for a control. However, accessing the item that is set brings a bit of a challenge. Hopefully this fixes that.
Thrown when Sitecore can't find a specified datasource item entry.
public static GetDatasourceFromControl ( Database database, DeviceItem device, System.Item item, System.Item sublayoutItem ) : System.Item
database Database Sitecore Database to Use. Usually From Context.
device DeviceItem Sitecore Device to Use. Usually from Context.
item System.Item Item to get the Layout Renderings from.
sublayoutItem System.Item /// Item reference to the Sublayout or Webcontrol that you would like to use for getting the datasource from. ///
리턴 System.Item