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

Afficher le fichier Open project: rainmaker2k/TridionMVCDotNet

Méthodes publiques

Méthode 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 méthode

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
Résultat string

GetLocalUri() public static méthode

public static GetLocalUri ( TcmUri uriPublication, TcmUri uriItem ) : TcmUri
uriPublication TcmUri
uriItem TcmUri
Résultat TcmUri

GetPropertyValue() public static méthode

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
Résultat string

GetPublicationFromContext() public static méthode

public static GetPublicationFromContext ( Package package, Engine engine ) : Publication
package Package
engine Engine
Résultat Publication

StripTcdlTags() public static méthode

public static StripTcdlTags ( string input ) : string
input string
Résultat string