function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
slaneslane 

Allow access to Documents in Sites?

Hi all:

 

I have a custom Site, using pure VF with all the headers turned off. It's desired to allow the users access to Documents (and this has been configured on the security side).

 

With the header turned off, we lose the Documents tab.

 

Any straightforward way to let my users "back into" the Documents area?

Best Answer chosen by Admin (Salesforce Developers) 
WesNolte__cWesNolte__c

Hey

 

Give this a bash, {!URLFOR($Action.Document.Tab,$ObjectType.Document}. A bit more background can be found in this post: http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=15003#M15003.

 

Cheers,

Wes

All Answers

BulentBulent

This is after authentication (user logged in and they are known portal users) right?

 

slaneslane
Yes, that's correct.
WesNolte__cWesNolte__c

Hey

 

Give this a bash, {!URLFOR($Action.Document.Tab,$ObjectType.Document}. A bit more background can be found in this post: http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=15003#M15003.

 

Cheers,

Wes

This was selected as the best answer
projenhaprojenha

I am having a similar issue - trying to make a button that will take the user to the Documents tab. When I tried using {!URLFOR($Action.Document.Tab, $ObjectType.Document), I got the following error message: "Error: Field $Action.Document.Tab does not exist. Check spelling"

 

Are documents referred to as something else? All my other buttons are formatted similarly and seem to work ok.

 

Thanks.