<%
' *****************************************************************************
'
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	This file define the set of Hook functions that can be customized to
'	override URL generations for WBC Edite Site Mode operations.
'
'	The set of Hook functions exposed are:
'
'	- Sub OnInternalCustomizeConnectedPostingQuickJumpURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizeDeleteURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizePostingCopyURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizePostingMoveURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizeSubmitURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizeApproveURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizeDeclineURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizePageRevisionReportURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizePageRevisionByDateURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizePostingPropertiesURL( ByVal pThis, ByRef strURL )
'	- Sub OnInternalCustomizeChannelPropertiesURL( ByVal pThis, ByRef strURL )
'
' *****************************************************************************


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Go to Connected Page" dialog URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeConnectedPostingQuickJumpURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Delete" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeDeleteURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Copy" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePostingCopyURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If
	
	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Move" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePostingMoveURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Submit" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeSubmitURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Approve" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeApproveURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Decline" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeDeclineURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Revision Report" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePageRevisionReportURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Revision By Date" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePageRevisionByDateURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Properties" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePostingPropertiesURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If
	
	' propagate querystrings for CS2000 Content Connector
	If CS_IsConnectorEnabled Then
		strURL = CS_AppendQueryStringToURL(strURL, CS_GetConnectorQueryStrings)
	End If
	
End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Channel Properties" link URL generation.
'
'	@pThis [in] - the current Channel
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeChannelPropertiesURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


%>