Click or drag to resize
ContentProvider.GetSingleNodeContent Method (String, String, String, Boolean, String, String, Boolean, Boolean)
Returns node content after using specified transformation.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public string GetSingleNodeContent(
	string siteName,
	string path,
	string culture,
	bool combineWithDefCulture,
	string className,
	string transformationName = null,
	bool selectOnlyPublished = false,
	bool checkPermissions = false
)

Parameters

siteName
Type: System.String
Site name
path
Type: System.String
Node path
culture
Type: System.String
Culture code
combineWithDefCulture
Type: System.Boolean
Combine with default culture
className
Type: System.String
Class name (can be empty, but it's faster if you specify it)
transformationName (Optional)
Type: System.String
Transformation name in format application.class.transformation
selectOnlyPublished (Optional)
Type: System.Boolean
Indicates if only published documents should be returned. Default value is false and all documents are returned
checkPermissions (Optional)
Type: System.Boolean
If true, the method will return only those nodes that can be read by current user

Return Value

Type: String
See Also