in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

How to show file details to anonymous users, but only allow download once logged in?

Last post 09-25-2007 9:11 AM by carolynx. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-24-2007 9:14 AM

    How to show file details to anonymous users, but only allow download once logged in?

    We are trying to figure out how to do the following on our public website using WSS3 / MOSS 2007 and forms authentication:

    An author will upload a file in PDF format and complete the following fields: 

    • title,
    • description,
    • author details.

    When browsing the site, anonymous users should be able to see these fields, however, instead of a link to the PDF, they will see a message like "You must log in to see download this file". Once the user has been authenticated, the link to the file will become available.

    A good example of this can be seen on the Gartner website (eg http://www.gartner.com/DisplayDocument?ref=g_search&id=510287&subref=browse) - you can view a summary  of the document, but musted be logged in in order to download the file.

     Any advice or ideas on  would be greatly appreciated!!

  • 09-25-2007 9:11 AM In reply to

    Re: How to show file details to anonymous users, but only allow download once logged in?

    Don't worry, we found a solution, as below:

    <SharepointWebControls:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly">   
         <PublishingWebControls:RichLinkField runat="server" TemplateName="RichLinkField" FieldName="DocumentLocation" AllowExternalUrls="False" DefaultAssetLocation="/ Documents">
         </PublishingWebControls:RichLinkField>   
    </SharepointWebControls:SPSecurityTrimmedControl>

    <SharepointWebControls:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly">
        You must log-in to view this content. 
    </SharepointWebControls:SPSecurityTrimmedControl>

     

Page 1 of 1 (2 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.