You need to sign in to do that
Don't have an account?

Visualforce page from filtered list view not displaying filtered on site
I have a VisualForce page which displays records from a filtered list view. When I preview the VF page it shows the filtered list. However, when I display that same VF page on a Sites page it reverts to an unfiltered list of all the records in the object. Here's my VF page code:
<apex:page standardController="Volunteer_Position__c" recordSetVar="positions" showHeader="false">
<apex:pageBlock >
<apex:pageBlockTable value="{!positions}" var="position" id="Actively_recruiting_positions__c">
<apex:column value="{!position.Name}"/>
<apex:column value="{!position.Apply_form_link__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
It's supposed to display only the volunteer positions to which I am actively recruiting.
<apex:page standardController="Volunteer_Position__c" recordSetVar="positions" showHeader="false">
<apex:pageBlock >
<apex:pageBlockTable value="{!positions}" var="position" id="Actively_recruiting_positions__c">
<apex:column value="{!position.Name}"/>
<apex:column value="{!position.Apply_form_link__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
It's supposed to display only the volunteer positions to which I am actively recruiting.
Are you suggesting I do something like this? https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
That is extremely advanced for me. Not sure what you mean by not sharing the keyword.
To understand it better, can you provide me with the screenshot of VF page with the filtered list (expected outcome, one which you are getting in preview) and VF page without filter (sites output).
It's gone really wierd now.
The Visual Force Page is called VolunteerPositionsActive. When I'm in visual force pages setup looking at the list of VF pages, if I click on the preview I get these 14 records, which is how I want it (although I will remove the Active tick box when I can get it working properly)
https://vchp--c.visualforce.com/apex/VolunteerPositionsActive
The site is http://vchp.force.com/positions
In site edit for positions, the Active Site Home Page is VolunteerPositionsActive and when I preview that VF I get the same 14 records.
When I go to the site it takes me to https://vchp.secure.force.com/positions/ and I get this, which has 17 records and includes the inactive ones (but strangely no tick boxes)