How to Change "Add a Listing" in Sharepoint Portal
Modify “Upload.aspx”., Choose one of the following two approaches: Option 1 Remove the “Add a listing for this document” control from the Upload.aspx page., The “Upload a document” page with no longer have the check box for “Add a listing for this...
Step-by-Step Guide
-
Step 1: Modify “Upload.aspx”.
Be aware that there is one for each template.
You can find these files at:
Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\Locale ID\ -
Step 2: Choose one of the following two approaches: Option 1 Remove the “Add a listing for this document” control from the Upload.aspx page.
This approach removes the Server control responsible for rendering the Check box from the page.
Search upload.aspx for the following string: <SPSWC:
SubmitLinkOnSTSUploadDocPage runat=server /> Delete it.
Save and exit notepad.
Option 2 Set the default check box to unchecked/false.
This approach involves adding some javascript that flips the value client side when the page loads.
Find the following tags at the bottom of Upload.aspx:</BODY> </HTML> Insert this code snippet above them:<script language='javascript' for='window' event='onload'> document.all.submitlst.checked=false; </script> Save and exit notepad. , -
Step 3: The “Upload a document” page with no longer have the check box for “Add a listing for this document”.
Detailed Guide
Be aware that there is one for each template.
You can find these files at:
Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\Locale ID\
This approach removes the Server control responsible for rendering the Check box from the page.
Search upload.aspx for the following string: <SPSWC:
SubmitLinkOnSTSUploadDocPage runat=server /> Delete it.
Save and exit notepad.
Option 2 Set the default check box to unchecked/false.
This approach involves adding some javascript that flips the value client side when the page loads.
Find the following tags at the bottom of Upload.aspx:</BODY> </HTML> Insert this code snippet above them:<script language='javascript' for='window' event='onload'> document.all.submitlst.checked=false; </script> Save and exit notepad. ,
About the Author
Marie Stevens
Specializes in breaking down complex crafts topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: