Whats the simplest way to add this please?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2010   (RSS)

Hi all,

I want to display a paragraph of information which would only need to be displayed if a certain field had a certain value, my client wants to include in a detailed listing page (produced in a similar fashion to instand realty) certain facilities which would be included in a purchase price for certain caravans locatated at different sites for example if caravan was located at site A B or C then the display page would need to include the statement that "The current years pitch fees are included plus free saftey checks, steps etc" If the caravan was located at site D or E then the above statement should not be displayed but a statement " Price does not iclude transfer fees to site" should be displayed instead.

I am unsure whether it would be better to somehow configure the statements in CMS builder for the client to be able to simply select which statement should apply to which van and then somehow have only the selcted staement appear on that page or whether it would be better to somehow code the statements into the display page with appropriate coding to display the appropriate statement based on the record content.

I assume it would be something like if $stockRecord['location'] = location1 or location2 or location3 then echo "The current years pitch fees are included plus free saftey checks, steps etc" else echo " Price does not iclude transfer fees to site"

Obviously my example is vastly simplified due to no real php coding knowledge, any advice on how best to achieve this objective would be appreciated, chances are I may be overcomplicating it due to limited knowledge of CMS builders inbuild facilities but any help or advice would be appreciated.

Thanks in advance for any help provided.