<%
' *****************************************************************************
'
' 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 Posting Creation links.
'
'	The set of Hook functions exposed are:
'
'	- Sub OnInternalCustomizePostingCreationDlgURL( ByRef strURL )
'	- Sub OnInternalCustomizeCreatePostingDirectLinkURL( ByVal pChannel, ByVal pTemplate, ByRef strURL )
'
' *****************************************************************************


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the URL generation in all the screens of the Page creation
'	dialogs.
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizePostingCreationDlgURL( 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 GetTmplBasedNewPostingURL() generation.
'
'	@pChannel [in] - the Channel to create the new Posting in
'
'	@pTemplate [in] - the Template that the new Posting will be based on
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnInternalCustomizeCreatePostingDirectLinkURL( ByVal pChannel, ByVal pTemplate, 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


%>