skip to Main Content

xplan xmerge

Search
Generic filters
Exact matches only
Filter by Custom Post Type

Try these: client detailstasks syntaxsuperannuation

Preferred Contact Details

Rather than looping through a list, you can pull out any contact details flagged as “preferred” easily like this:

Field

Path

Syntax

Preferred Phone preferred_phone <:=$client.preferred_phone:>
Preferred Email preferred_email <:=$client.preferred_email:>
Preferred Web preferred_web <:=$client.preferred_web:>
Preferred Skype preferred_skype <:=$client.preferred_skype:>
Preferred Fax (lol) preferred_fax <:=$client.preferred_fax:>

Preferred Contact Loop

To filter the contact loop to only merge contact records set to preferred – yes:

Setec Astronomy

<:for item in $client.contact.filter(‘preferred=1’):>
<:=item.type:> – <:=item.value:>
<:end:>

To further filter down to the preferred type you can do the following:

Setec Astronomy

<:for item in $client.contact.filter(‘preferred=1’).filter(‘type=p3’):>
<:=item.type:> – <:=item.value:>
<:end:>

See also

Back To Top