Versions Compared
Version | Old Version 1 | New Version 2 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Warning |
---|
THIS PAGE IS UNDER CONSTRUCTION |
First an introductory sentence or paragraph here.
Standard Formatting
Help pages should follow a standard for headers and sub-topics. Formatted headers will automatically display under the "On this page" section on the right of each page.Cross-Functional Area Contact Roles Available
Description text here.
Bullet Points
- Use bullet points when listing out stBullet points
Filtered
LoopsLoop Syntax
(such as a contact with a specific affiliation type)
Add a Where clause to the foreach loop to filter:The
For example, the manure hauler is:
Code Block | ||
---|---|---|
| ||
<<foreach [contact in contacts.Where(x => x.affiliationTypeCode == “MNR_HAUL”)]>><<[contact.contactName]>><</foreach>> |
If you want to protect against multiple matching contacts being returned (such as 2 or more manure haulers in the example above), then add Take(1) to the markup:
Code Block | ||
---|---|---|
| ||
<<foreach [contact in contacts.Where(x => x.affiliationTypeCode == “MNR_HAUL”).Take(1)]>><<[contact.contactName]>><</foreach>> |
On this page
Table of Contents |
---|
Sub-Topics
Page Tree | ||
---|---|---|
|
Related Content