I have Visualforce Page
with three <apex:commandLinnk>
tags (e.g. "New Record", "Edit Record", and"Change Record"). The first link shouldn't be displayed in Sites, but only in Visualforce Pages
.
If I view this Visualforce Page
in a Force.com Site, I should only see the "Edit Record" and "Change Record" links. Is it possible? How can I set a visibility condition based on whether or not the page is being displayed in a Force.com Site?
<div id="firstBlock" class="one element-animation-slide">
<apex:pageMessages ></apex:pageMessages><br/><br/>
<apex:commandLink action="{!newShow}" id="authClick" value="New Record" style="text-decoration: none;" styleClass="slideUp element-animation" rerender="optionPanel, newCRpanel, wholePanel"/><br/><br/><br/>
<apex:commandLink action="{!editShow}" id="createClick" value="Edit Record" style="text-decoration: none;" styleClass="slideUp element-animation" rerender="optionPanel, newCRpanel, wholePanel"/><br/><br/><br/>
<apex:commandLink action="{!changeshow}" value="Change Record" style="text-decoration: none;" styleClass="slideUp element-animation" rerender="optionPanel, editCRpanel, wholePanel"/><br/><br/><br/>
</div>