Understanding "IF" Statements - a Tutorial

6 posts by 3 authors in: Forums > CMS Builder
Last Post: October 26, 2010   (RSS)

Re: [gkornbluth] Understanding "IF" Statements - a Tutorial

By degreesnorth - October 24, 2010

Hi

Could you advise another option of the if > then statement, as none of these seem to match what I'm requiring:

1. All of the country names are in Section Editor called country_list

2. All of the blurb for each country (and other info) is stored in the Section Editor called Country Intros

3. Country Intros pulls the country name from the country_list (in #1 above) and another field (of many) called country_intro_copy

4. Depending on the search result, if the visitor selects "Egypt", then they get search resuls for Egypt, and ideally the country name (country_list) and country intro copy (country_intro_copy) get added at the top of the search results page, and the specific tours below.

The question: how do I write the if (Egypt), then add the country name and country intro to the top of the search results page. As I have about 50 countries, I am trying to avoid having a hard coded results page for each. Is that possible? If you take a look at http://acac6262.staging-zeus.netregistry.net/tours_summary.php - the "BBB" at the top is the country name, and the country intro should be just below it.

Thanks in advance.

Re: [degreesnorth] Understanding "IF" Statements - a Tutorial

By gkornbluth - October 25, 2010

Hi degreesnorth,

have a look at this post.

http://www.interactivetools.com/iforum/gforum.cgi?post=82283

There's also the concept of related records which was released in v2.03.

My CMSB Cookbook http://www.thecmsbcookbook.com has 2 recipes that might help as well.

USING RELATED FIELDS TO POPULATE PAGES FROM A MASTER “ADDRESS BOOK” OR “PRODUCT LIST”

and

USING THE MULTI-SELECT DROP DOWN LIST TO SELECT LISTINGS RELATED TO A MAIN CATEGORY

Hope some of this gets you going in the right direction

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Understanding "IF" Statements - a Tutorial

By degreesnorth - October 25, 2010

No, none of this is even close.

Re: [degreesnorth] Understanding "IF" Statements - a Tutorial

By gkornbluth - October 26, 2010

Sorry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Understanding "IF" Statements - a Tutorial

By Jason - October 26, 2010

Hi,

If you could fill out a Second Level Support Request here:
https://www.interactivetools.com/support/email_support_form.php

We can take a closer look at your code and could then advise you on the best way to do this.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/