Documentation > Services API > ServicesTMF

CrownPeak.CMSAPI.Services.ServicesTMF

Translational Model Framework utility and helper methods.

NameDescriptionType
_TMFConfig

Field
Locales_Config

Field
Relationships_Config

Field
AutoLinkLocales(Asset,Asset,String)

Automatically creates relationships between source and destination

Method
ClearTMFHelperValues(Asset)

Clears all field data that contains "tmf_" except for "tmf_folder_link_internal"

Method
CreateLocaleConfigCache(String)

Returns a IEnumerable of LocalId objects. The files in the "Locales Config" folder are projected to LocaleId objects.

Method
CreateTranslatedAsset(Asset,Asset,Asset,String,String)

Creates a translated asset and a relationship asset.

Method
GetInstanceURL(PostSaveContext)

Returns an instance name

Method
GetLocaleId(Asset,String)

Searches through the assets in a given path and checks if one of the assets' "folder_root" field content exists anywhere in the path of the "asset" parameter. If so, then it returns the ID of the asset that had the matching "folder_root" field.

Method
GetLocaleId(Asset,String,IEnumerable[LocaleId])

Searches through the assets in a given path and checks if one of the assets' "folder_root" field content exists anywhere in the path of the "asset" parameter. If so, then it returns the ID of the asset that had the matching "folder_root" field.

Method
GetNotificationEmails(Asset,String)

Returns comma delimited list of email addresses from local, language and site configs for a page

Method
GetRelList(Int32,String,String,Boolean,Int32)

Loops through relation config folder and creates list of relationship assets

Method
GetSiteName(Asset,Int32)

Returns segment of asset path indicated by the nameSegment index

Method
GetSitePath(Asset)

Searchs for and returns the "_TMF" folder as an asset. Assuming the "_TMF" folder is in the same folder as the asset parameter, or in one of the parent folders

Method
GetTMFTemplateFields(Asset)

Returns list of tmf related fields

Method
IsMasterAssetChanges(Asset,String)

Checks if the Master Asset has been changed.

Method
SendNotification(Asset,Asset,Asset,String,PostSaveContext,String)

Creates content of email, Sends email to content owner- post input

Method
SendNotificationsToAuthorsAndOwners(Asset,String,PostSaveContext,String,Boolean)

Decides who will receive email notifications

Method
SendNotificationsToOwners(Asset,String,String,PostSaveContext,String)

Decides who will receive email notifications

Method
UpdateBranch(Asset,PostSaveContext,String)

When one of the assets in the master folder is branched, the users action is captured and the derived asset is also branched if a relationship exists. This method should be used in the copy.aspx template file. Requires /System/Translation Model Framework/_Models/Relationship/

Method
UpdateMasterHistory(Asset,String)

Given a translated asset, finds the source asset using an existing relationship asset, then saves the content from the source to the relationship asset.

Method
UpdateRelationshipHistory(Asset,String)

Saves previous content to a relationship asset

Method

Connect with CrownPeak