Forums
This topic is locked
MM_removelist in "Related/Detail Page"
Posted 27 Jan 2002 02:37:41
1
has voted
27 Jan 2002 02:37:41 Hank Tan-Tenn posted:
I just realized UD4's "Go to Related (Detailed) Page" behaviors insert codes which contain an MM_removelist string of parameters to be excluded. This is useful because passing the entire parameter set back to a previous master page will, by default, include the parameter used to call the detail page to begin with; the parameter set will grow with each call (e.g. abc.asp?ItemID=51&ItemID=3).
My questions are as follows:
1. Why does UD4 set as default "&index=" to be excluded? (Why this particular parameter?)
2. Is there a hacked version of this behavior with an interface allowing one to tweak the MM_removelist string?
3. More generally, is there any detailed documentation of the UD4's behavior set, that is, beyond the built-in ASP comments?
Thanx.
PS:
GO TO RELATED/DETAIL PAGE:
-----------------------
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "" Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
------ etc. --------