Click or drag to resize
WidgetZonePlaceholderHelperReplacePlaceholders Method
Replaces widget zone placeholders in format $$zoneIdentifier$$ with values provided by getZoneContent delegate which accepts zone identifier and returns appropriate replacement string.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
public static string ReplacePlaceholders(
	string templateCode,
	Func<string, string> getZoneContent
)

Parameters

templateCode
Type: SystemString
Email template code
getZoneContent
Type: SystemFuncString, String
Delegate which returns the replacement text for the given zone identifier

Return Value

Type: String
Email template code with replaced widget zone placeholders.
See Also