string | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE circuit>
<circuit access="public" xmlns:cf="cf/">
<prefuseaction>
<set name="attributes.pageType" value="contacts" overwrite="true" />
<do action="security.checkLoggedIn" />
</prefuseaction>
<fuseaction name="deleteContact">
<do action="contacts-m.deleteContact" />
<relocate url="#request.myself#contacts.contacts" />
</fuseaction>
<fuseaction name="contacts">
<do action="contacts-m.contactsSearch" />
<do action="layout.contactIncludes" />
<do action="people.categoryLookup" />
<set name="attributes.pageTitle" value="List Contacts" overwrite="true" />
<do action="contacts-v.contacts" />
</fuseaction>
<fuseaction name="profile">
<set name="attributes.contactId" value="" overwrite="false" />
<if condition="IsNumeric(attributes.contactId)">
<false>
<set name="attributes.contactId" value="0" overwrite="true" />
</false>
</if>
<do action="events-m.getCountryList" />
<do action="contacts-m.getContact" />
<do action="venues-m.getVenues" />
<if condition="qContact.recordCount">
<true>
<set name="attributes.pageTitle" value="#qContact.name#" overwrite="true" />
</true>
<false>
<set name="attributes.pageTitle" value="Add New Contact" overwrite="true" />
</false>
</if>
<do action="contacts-v.createContact" />
</fuseaction>
<fuseaction name="viewContact">
<do action="tasks-m.getTaskObject" />
<set name="attributes.personID" value="0" overwrite="false" />
<do action="contacts-m.getPerson" />
<do action="people-m.getNotes" />
<do action="activities-m.getActivities" />
<if condition="StructKeyExists(attributes, 'editNote')">
<true>
<xfa name="noteForm" value="people.editNote" />
</true>
</if>
<do action="tags-m.popularTags" />
<set name="attributes.pageTitle" value="#qContact.name#" overwrite="true" />
<do action="contacts-v.viewContact" />
</fuseaction>
<fuseaction name="addNewContact">
<if condition="StructKeyExists(attributes, 'edit') AND StructKeyExists(attributes, 'contactId') AND attributes.contactId GT 0">
<true>
<do action="contacts-m.editContact" />
<if condition="StructKeyExists(attributes, 'showLiveUsers')">
<true>
<relocate url="#request.myself##xfa.contacts#?message=updated&showLiveUsers=#attributes.showLiveUsers#&name=#name#" />
</true>
<false>
<relocate url="#request.myself##xfa.contacts#?message=updated" />
</false>
</if>
</true>
<false>
<do action="contacts-m.addNewPerson" />
<relocate url="#request.myself##xfa.contacts#?message=added" />
</false>
</if>
</fuseaction>
<fuseaction name="contactAjaxSearch">
<do action="contacts-m.search" />
<do action="contacts-v.contactAjaxSearch" />
</fuseaction>
</circuit> |