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

Problems with CMSForce 2 on Free

I've run into a few issues trying to install CMSForce 2 on a Free org:


1. I'm getting the same error as reported here. It's a brand new org and I've added the Sites user's access to all classes and visualforce pages. The page runs if I remove the pageController from the Visualforce page so I suspect that it's something in the controller. Possible the Custom Settings? I just installed CMSForce 2 in a DE account and everything works fine.


2. In the save button is hard-coded to only display if the current user's profile is 'System Administrator':

<apex:commandButton value="Save" action="{!save}" rendered="{!IF($Profile.Name == 'System Administrator', true, false)}"/>


However, if you install the package in a Free account, the profile is not 'System Administrator' but 'Platform System Admin' therefore the Save button doesn't render.
Jeff Douglas



Did you have any luck modifying the page?  You're prob right that it is a hard coding issue.  Since it's unmanaged you should be able to change it.