C# Класс Sitecore.SharedSource.Commons.Utilities.LayoutUtil

Utility class for accessing various Layout Settings
Показать файл Открыть проект

Открытые методы

Метод Описание
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