0.2releasedHighrise
A simple Event Filter to add Contacts to your Highrise account via Symphony events.
Clone URLhttps://github.com/brendo/highrise.git
Add as a submodulegit submodule add https://github.com/brendo/highrise.git extensions/highrise --recursive
Compatibility
2.x.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | 0.2 | 0.2 | 0.2 | No | No | No | No | No | No | No | No | No | No | No | No | No | No. Soon? |
Readme
Highrise
The Highrise extension allows you to add Contacts to your Highrise account via Symphony events.
- Version: 0.2
- Date: 5th December 2011
- Requirements: Symphony 2.0.6 or newer, http://github.com/symphonycms/symphony-2/
- Author: Brendan Abbott [[email protected]]
- GitHub Repository: http://github.com/brendo/highrise
Installation
- Upload the
/highrise
folder to your Symphony/extensions
folder. - Enable it by selecting the "Highrise" extension from System > Extensions, choose Enable/Install from the With Selected menu, then click Apply.
- You can now add the "Highrise" filter to your Events.
Usage
- Go to your Highrise account and get your API Token (My Info > API Token). Add this to the preferences page.
- Create an event and attach the Highrise filter to the Event
- Create your form in the XSLT and add
highrise[field][first-name]
(as this is the minimum Highrise requires to create a new Person).
The $field-first-name
syntax will get the value of the when posting to Highrise.
<input name="highrise[field][first-name]" value="$field-first-name" type="hidden" />
If your form only captures Name as a single field, you can pass 'name' and the extension will automatically split the value on the first space. eg. Bob Jones Smith will be entered in Highrise as First Name: Bob, Last Name: Jones Smith.
<input name="highrise[field][name]" value="$field-name" type="hidden" />
Generally speaking, this filter will map your form fields according to the Highrise Data Reference. There is a bit of magic available for you though to make this a bit easier.
If you want to add an email address to a Highrise record, the API wants:
<contact-data>
<email-addresses>
<email-address>
<id type="integer">1</id>
<address>[email protected]</address>
<location>#{ Work || Home || Other }</location>
</email-address>
</email-addresses>
</contact-data>
That's pretty verbose, so just pass highrise[field][email-address]
which will produce:
<contact-data>
<email-addresses>
<email-address>
<address>[email protected]</address>
<location>Other</location>
</email-address>
</email-addresses>
</contact-data>
You can add multiple tags to a record by separating them with a comma:
<input name="highrise[field][tags]" value="tag 1, tag 2" type="hidden" />
There is no support for custom fields yet (aka, subject_datas
). If you need it, fork it, add it and submit a pull request :)
Changelog
0.2 (5th December 2011)
- Add support for
company
field - Bug fixes
0.1 (20th October 2011)
- Initial release
Version history
Symphony 2.0.6 to 2.3.x
- Add support for
company
field - Bug fixes
Requires Symphony 2.0.6