C# Класс Tridion.Extensions.DynamicDelivery.Templates.Utils.TridionUtils

Показать файл Открыть проект

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

Метод Описание
ConstructFileName ( System.Item item ) : string

Construct a filename for an item.

Based on the properties of the item. The filename property must be set, but there can be other aspects set on the item that are taken into account in the filename

GetLocalUri ( TcmUri uriPublication, TcmUri uriItem ) : TcmUri
GetPropertyValue ( System.Item item, string propertyName ) : string

Get a property value from an item, or an empty string if the property value is missing or null.

Simple helper for ConstructFileName, to access item property values

GetPublicationFromContext ( Package package, Engine engine ) : Publication
StripTcdlTags ( string input ) : string

Описание методов

ConstructFileName() публичный статический Метод

Construct a filename for an item.
Based on the properties of the item. The filename property must be set, but there can be other aspects set on the item that are taken into account in the filename
public static ConstructFileName ( System.Item item ) : string
item System.Item
Результат string

GetLocalUri() публичный статический Метод

public static GetLocalUri ( TcmUri uriPublication, TcmUri uriItem ) : TcmUri
uriPublication TcmUri
uriItem TcmUri
Результат TcmUri

GetPropertyValue() публичный статический Метод

Get a property value from an item, or an empty string if the property value is missing or null.
Simple helper for ConstructFileName, to access item property values
public static GetPropertyValue ( System.Item item, string propertyName ) : string
item System.Item The item to determine the property value for
propertyName string The name of the property to retrieve
Результат string

GetPublicationFromContext() публичный статический Метод

public static GetPublicationFromContext ( Package package, Engine engine ) : Publication
package Package
engine Engine
Результат Publication

StripTcdlTags() публичный статический Метод

public static StripTcdlTags ( string input ) : string
input string
Результат string