How to include 3rd party forms in my site

Author Message

Ciaran McGrath

Friday 21 July 2006 6:43:01 am

Hi,

Our marketing department uses a service called Salesforce to track customer enquiries. Salesforce helps them generate HTML code for forms that we include on our site. When the user fills out the form the data is sent to salesforce and tracked there.

My question is, how can I do this with Ez publish. (I'm a complete novice with ez)

Thanks in advance.

Robin Muilwijk

Sunday 15 November 2009 1:45:01 am

Hi,

I'd like to follow up on this and ask if anyone has ever managed to incorporate Salesforce with eZ Publish forms? I'd love to suggest eZ Flow to a customer, have them move to this CMS, but Salesforce is a major requirement.

Thanks for any replies, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Bertrand Dunogier

Sunday 15 November 2009 2:35:12 am

Well, "eZ Publish forms" doesn't mean much... the most basic approach would be to use a custom module that interfaces with the salesforce API, but it really depends on how you can interact with salesforce from a 3rd party app.

Do you have more details on this ?

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Robin Muilwijk

Sunday 15 November 2009 9:18:02 am

Hi Bertrand,

Thanks for your response. What the customer has working right now is a web form and when this is sent, it also uses curl to send some of the information to salesforce. The source of the form can be created through the salesforce interface. Do you need more info?

I just read on Twitter that someone used an information collector in a form and an operator in a collectedinfo template and used POST to pass it on to salesforce.

I was hoping there was some kind of showcase on this. I'll ask the person on Twitter if he is willing to share. Your info is of course also very welcome.

Thanks Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Bertrand Dunogier

Sunday 15 November 2009 11:42:57 am

When you say "the source of the form can be created using salesforce", what does salesforce provide you with exactly ? HTML code ? If yes, what is the action for this form ? Does it send this data to a custom script ?

You can perfectly use the HTML code _ if this is what salesforce provides you with _ in a custom template, used by a custom view. Then create another view that is used as the action for the form, and perform the CURL stuff from this action.

If there is a way to make such a script generic (generate form from salesforce, put in a template, set the action to a custom, generic view, and you're done, this would be a great extension ;)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Robin Muilwijk

Monday 16 November 2009 10:43:34 am

Hi Bertrand,

Salesforce indeed provides you with the HTML for the form, so form fields and some script.

A curl example: http://www.paulwest.co.uk/article.php/salesforce-form-integration-with-php
A php example: http://wiki.developerforce.com/index.php/Simple_Web2Lead_Implementation

I'm a newbie with understanding custom templates and views, so maybe I'll try at a later date if I could get this to work. I'll check with the customer first how they think about eZ Flow before I continue with this. But you are right, it would make a very good/interesting extension.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Bertrand Dunogier

Monday 16 November 2009 2:51:23 pm

It indeed looks quite simple. Writing such a module would be quite easy. Making it generic and secure is gonna require a little more work :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Robin Muilwijk

Wednesday 18 November 2009 5:59:40 am

Hi Bertrand,

I had some feedback from mugo.ca (Peter Keung), is there any documantation regarding the custom template and view where I could start reading, see if I could get this to work and take it form there?

Thanks, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

eZ Western Europe Support

Wednesday 18 November 2009 6:17:04 am

You could start by reading here:

http://ezpedia.org/en/ez/module

;)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:31:41
Script start
Timing: Jan 18 2025 04:31:41
Module start 'layout'
Timing: Jan 18 2025 04:31:41
Module start 'content'
Timing: Jan 18 2025 04:31:42
Module end 'content'
Timing: Jan 18 2025 04:31:42
Script end

Main resources:

Total runtime1.2054 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.4766152.6406
Module start 'layout' 0.00670.0028 742.117239.4766
Module start 'content' 0.00951.1945 781.5938688.9375
Module end 'content' 1.20400.0014 1,470.531324.1250
Script end 1.2054  1,494.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2928160.0002
Check MTime0.00150.1263160.0001
Mysql Total
Database connection0.00090.076210.0009
Mysqli_queries1.122993.1568790.0142
Looping result0.00090.0765770.0000
Template Total1.171197.220.5856
Template load0.00210.176420.0011
Template processing1.169096.980120.5845
Template load and register function0.00030.029010.0003
states
state_id_array0.00120.102510.0012
state_identifier_array0.00120.096620.0006
Override
Cache load0.00190.1545490.0000
Sytem overhead
Fetch class attribute can translate value0.00110.091240.0003
Fetch class attribute name0.00270.2281110.0002
XML
Image XML parsing0.00170.137040.0004
class_abstraction
Instantiating content class attribute0.00000.0037160.0000
General
dbfile0.00130.1108240.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs