C# Class Tridion.Extensions.DynamicDelivery.Templates.Utils.TridionUtils

Mostra file Open project: rainmaker2k/TridionMVCDotNet

Public Methods

Method Description
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

Method Details

ConstructFileName() public static method

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
return string

GetLocalUri() public static method

public static GetLocalUri ( TcmUri uriPublication, TcmUri uriItem ) : TcmUri
uriPublication TcmUri
uriItem TcmUri
return TcmUri

GetPropertyValue() public static method

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
return string

GetPublicationFromContext() public static method

public static GetPublicationFromContext ( Package package, Engine engine ) : Publication
package Package
engine Engine
return Publication

StripTcdlTags() public static method

public static StripTcdlTags ( string input ) : string
input string
return string