ContentProviderGetNodesContent Method (String, String, String, Boolean, String, String, String, String, Int32, Boolean, Boolean, Guid, String, Boolean, Int32) |
Returns content of nodes after using specified transformation.
Namespace: CMS.ControlsAssembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax public string GetNodesContent(
string siteName,
string path,
string culture,
bool combineWithDefCulture,
string classNames,
string transformationName,
string where,
string orderBy,
int maxRelativeLevel,
bool selectOnlyPublished,
bool checkPermissions,
Guid relationshipWithNodeGuid,
string relationshipName,
bool relatedNodeIsOnTheLeftSide,
int topN = 0
)
Parameters
- siteName
- Type: SystemString
Site name - path
- Type: SystemString
Node path - culture
- Type: SystemString
Culture code - combineWithDefCulture
- Type: SystemBoolean
Combine with default culture - classNames
- Type: SystemString
Classnames list (separated by the semicolon) - transformationName
- Type: SystemString
Transformation name in format application.class.transformation - where
- Type: SystemString
Where condition - orderBy
- Type: SystemString
ORDER BY SQL expressions (without the ORDERBY keyword - maxRelativeLevel
- Type: SystemInt32
Maximum relative node level to be returned. Value 1 returns only the node itself. Use -1 for unlimited recurrence - selectOnlyPublished
- Type: SystemBoolean
Indicates if only published documents should be returned. Default value is false and all documents are returned - checkPermissions
- Type: SystemBoolean
If true, the method will return only those nodes that can be read by current user - relationshipWithNodeGuid
- Type: SystemGuid
Select nodes with given relationship with given node - relationshipName
- Type: SystemString
Name of the relationship - relatedNodeIsOnTheLeftSide
- Type: SystemBoolean
If true, the returned nodes are on the right side of the relationship - topN (Optional)
- Type: SystemInt32
Select top N rows
Return Value
Type:
StringRemarks The default sorting is ascending by node name.
See Also