Forums / Setup & design / How to include 3rd party forms in my site

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

;)

eZ debug

Timing: Jan 18 2025 02:09:49
Script start
Timing: Jan 18 2025 02:09:49
Module start 'content'
Timing: Jan 18 2025 02:09:50
Module end 'content'
Timing: Jan 18 2025 02:09:50
Script end

Main resources:

Total runtime1.3255 sec
Peak memory usage4,096.0000 KB
Database Queries216

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 587.8438180.8125
Module start 'content' 0.00681.2092 768.6563694.0313
Module end 'content' 1.21600.1094 1,462.6875344.4297
Script end 1.3254  1,807.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2861210.0002
Check MTime0.00150.1095210.0001
Mysql Total
Database connection0.00080.062310.0008
Mysqli_queries1.234793.15222160.0057
Looping result0.00210.16172140.0000
Template Total1.295197.720.6475
Template load0.00180.135820.0009
Template processing1.293397.571520.6466
Template load and register function0.00020.015510.0002
states
state_id_array0.00110.083610.0011
state_identifier_array0.00150.110920.0007
Override
Cache load0.00170.1294490.0000
Sytem overhead
Fetch class attribute can translate value0.00170.129050.0003
Fetch class attribute name0.00120.0893110.0001
XML
Image XML parsing0.00150.113650.0003
class_abstraction
Instantiating content class attribute0.00000.0032160.0000
General
dbfile0.00410.3118350.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs