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
jasonben01jasonben01 

Update dynamic info (news section) on force.com website

Hi,

 

We are putting our mostly static public website on vfpages (force.com) as a hosting solution.  We are doing this as it will fit nicely into our integration roadmap with our website and SFDC orders down the road.

 

One page of our website will be News & Events and we will update this every other week.  Have any of you out there built in objects to allow for ease of updating this content w/o having to go in and change code?  Background:  we are adding our html pages to vf pages for our website.  This will be continueally developed for dynamic product pages etc and eventually will tie into our customer portal and an online ordering solution, all custom dev solutions.  We do NOT feel CMS (site.com) is warranted at this time.

 

Any push in the right direction is apprecaited.

 

Cheers,

 

-JB

 

Offshore Freelance ConsultantOffshore Freelance Consultant
Hi,

One approach will be as below. this worked for me.

1. Have a custom object for News & Events, with necessary fields like Date or News, News Heading, News Descriptions, Any images photographs etc.

2. Create a tab for this custom object for internal users using which internal users can insert/update the records in this object.

3. Create a nice HTML page(that fits to your website standards/styles) for News & Events with some static text.
           Copy paste the HTML into a visual force page with a controller.
           Let the page accept some parameter like Date etc.
                In the controller query the News & Events Object and display the result in VF page. The custom object fields may not be visible in Sites(if it is an un-authenticated Site). hence instead of returning the custom object field to the vf page, move the values to a string for stringhtml and then use that variable as a getter/setter to display in vf page.

********************************
Hope this helps!

JG