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

Automatically creates relationships between source and destination

Method
ClearTMFHelperValues

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

Method
CreateLocaleConfigCache

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

Method
CreateTranslatedAsset

Creates a translated asset and a relationship asset.

Method
GetInstanceURL

Returns an instance name

Method
GetLocaleId

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

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

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

Method
GetRelList

Loops through relation config folder and creates list of relationship assets

Method
GetSiteName

Returns segment of asset path indicated by the nameSegment index

Method
GetSitePath

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

Returns list of tmf related fields

Method
IsMasterAssetChanges

Checks if the Master Asset has been changed.

Method
SendNotification

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

Method
SendNotificationsToAuthorsAndOwners

Decides who will receive email notifications

Method
SendNotificationsToOwners

Decides who will receive email notifications

Method
UpdateBranch

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

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

Saves previous content to a relationship asset

Method

Connect with Crownpeak