InsertLinksToMLCSiblingsBuildLink Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Builds the link to be written. This method is called by the Invoke method.

Namespace: ContentStudio.Site.ActiveScripting.MLC
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

protected bool BuildLink(
	int index,
	bool preserveQueryStrings,
	out string link
)

Parameters

index
Type: SystemInt32
The index of the MLC sibling in the collection
preserveQueryStrings
Type: SystemBoolean
A value that indicates if query strings supplied by the user should be included in the generated link. The id and the lang keys are always excluded. The ptid key is excluded if LookupPresentationTemplate is set to true.
link
Type: SystemString
Returns the resulting link

Return Value

Type: Boolean
True if a sibling exists and the link has been created. False when the index is out of scope.
Remarks

To generate a link for each available MLC sibling, call this method repeatedly starting with index set to zero, each time incrementing the index with one until the method returns false.
See Also

Reference