Skip to main content
edited body
Source Link
Deployment Failure
  • 4.9k
  • 16
  • 89
  • 190

I have a custom VisualForce page for Viewing items in a particular Object, I would like however the view to be only be shown for Portal users, for all other users it should display the normal SF pages.

I have found a solution already but it feels quite 'hackish' because when non portal users view it they are shown the development page for the visual page very breifly before being redirected to the normal SF view page. This is the code if it makes more sense:

<apex:page standardController="News__c" action="{!if($Profile.Name =='Heathrow=='Customer Portal', null,
        urlFor($Action.News__c.View, News__c.Id, null, true))}">

I have a custom VisualForce page for Viewing items in a particular Object, I would like however the view to be only be shown for Portal users, for all other users it should display the normal SF pages.

I have found a solution already but it feels quite 'hackish' because when non portal users view it they are shown the development page for the visual page very breifly before being redirected to the normal SF view page. This is the code if it makes more sense:

<apex:page standardController="News__c" action="{!if($Profile.Name =='Heathrow Portal', null,
        urlFor($Action.News__c.View, News__c.Id, null, true))}">

I have a custom VisualForce page for Viewing items in a particular Object, I would like however the view to be only be shown for Portal users, for all other users it should display the normal SF pages.

I have found a solution already but it feels quite 'hackish' because when non portal users view it they are shown the development page for the visual page very breifly before being redirected to the normal SF view page. This is the code if it makes more sense:

<apex:page standardController="News__c" action="{!if($Profile.Name =='Customer Portal', null,
        urlFor($Action.News__c.View, News__c.Id, null, true))}">
Source Link
Deployment Failure
  • 4.9k
  • 16
  • 89
  • 190

Different 'view' behavior for Custom Object of Portal Users

I have a custom VisualForce page for Viewing items in a particular Object, I would like however the view to be only be shown for Portal users, for all other users it should display the normal SF pages.

I have found a solution already but it feels quite 'hackish' because when non portal users view it they are shown the development page for the visual page very breifly before being redirected to the normal SF view page. This is the code if it makes more sense:

<apex:page standardController="News__c" action="{!if($Profile.Name =='Heathrow Portal', null,
        urlFor($Action.News__c.View, News__c.Id, null, true))}">