I have created a site, and using site i have deployed that on salesforce, so that user can use that site without salesforce credentials.

But Apex code does not run on homepage and runs on every other page.

i have checked the functionality through inspect element tool, and it displays that no apex code is rendered.

Does anyone knows what is the issue? please help me out of this.

Thanks in Advance.

Please Refer to My site, u ll find problem. https://shoppers-developer-edition.ap2.force.com/ShopNow/HomePage

the Problem is in the slider. === code for controller=====

public class navMenuContoller {

public List<Offer__c> offerList = new List<Offer__c>();
public List<Offer__c> tempofferList = new List<Offer__c>();
public List<Offer__c> getOfferList() {
    tempofferList = [Select Name, Discount__c, Start_Date__c, End_Date__c, Image__c from Offer__c];
    for(Offer__c o:tempofferList ){
    return offerList;


=== code for slider ====

<apex:repeat value="{!offerList}" var="ol">
      <apex:outputLink value="/ShopNow/showProducts?offerName={!ol.Name}" >
            <apex:image url="{!ol.Image__c}"/>
  • Please provide code for the page and controller class for us to understand your problem. – Abbas Mar 17 '15 at 8:53
  • What are you currently doing when you click on next icon for deals of day? – Kiran Mutturu Mar 17 '15 at 8:53
  • hey abbas i am new to this portal, donno how to attach such long code... – Sushank Mar 17 '15 at 9:59
  • @kiran- deal of the day is static part, it goes to that product's page. – Sushank Mar 17 '15 at 10:03
  • abbas i have attached the code please review it... – Sushank Mar 17 '15 at 10:10

Check with the settings for Rich-text area field :- whether they are visible to the user

Here's a link which might be helpful: https://stackoverflow.com/questions/15415552/rich-text-area-image-in-salesforce-site

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.