Forums / Developer / integrate external application

integrate external application

Author Message

luca maroni

Sunday 25 March 2007 8:16:42 am

Hi,

I need to integrate several external application in a ezpublish site. The other applications are simply php/MySQL applications (one table, one list page to show the records and one edit page to modify and create new records). I understood reading several topics and article that the best way to do it is create my own extensions and module.isn't it?

Always reading a lot of topics and articles I understood how to create the extensions and module but all the examples I found deal this subject for the view mode of the data (how to show data from external database or external application). they don't deal the part to create and edit data.

For example
http://ez.no/ezpublish/documentation/development/extensions/building_an_ez_publish_module
is a tutorial to create an extension to show data from an external application

also hello world tutorial for module deal only the "view" data and not "create/edit" data
http://ez.no/ezpublish/documentation/development/extensions/module/hello_world

There is some interesting topic or article or tutorial where I can learn how to create my own form, validate data filled in the form and insert them into an external database.

Any help is very welcome ;-)

Bye bye
Luca

Heath

Sunday 25 March 2007 1:12:29 pm

Hello,

You may want to create a custom content action/edit handler extension
http://ezpedia.org/wiki/en/ez/content_action_handlers
http://ezpedia.org/wiki/en/ez/content_edit_handlers

You may prefer to create a custom module extension instead, there are examples of modules which provide the type of functionality your looking for. An example of this might be found in the ezadmin extension.
http://pubsvn.ez.no/community/trunk/extension/ezadmin/modules/admin/
http://pubsvn.ez.no/community/trunk/extension/ezadmin/modules/admin/sqlquery.php

hth

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Xavier Langlois

Monday 26 March 2007 4:09:17 am

Hello

This one might be usefull for you:
http://ez.no/community/contribs/applications/extension_manager

;)
++

--
There were these two cows, chatting over the fence between their fields.
The first cow said, "I tell you, this mad-cow-disease is really pretty scary. Don't you think ?"
The other cow replies, "Hell, I ain't worried, I'm a duck !"

luca maroni

Friday 30 March 2007 1:04:45 am

Thanks Guys. Those were the resources I was looking for ;-)

Thanks a lot.
Luca

eZ debug

Timing: Jan 18 2025 15:13:06
Script start
Timing: Jan 18 2025 15:13:06
Module start 'content'
Timing: Jan 18 2025 15:13:07
Module end 'content'
Timing: Jan 18 2025 15:13:07
Script end

Main resources:

Total runtime1.0530 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.8438180.8359
Module start 'content' 0.00700.8933 769.6797601.3984
Module end 'content' 0.90030.1526 1,371.0781337.3750
Script end 1.0530  1,708.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3950210.0002
Check MTime0.00150.1381210.0001
Mysql Total
Database connection0.00080.077110.0008
Mysqli_queries0.968591.96831990.0049
Looping result0.00240.22701970.0000
Template Total1.021097.020.5105
Template load0.00200.191420.0010
Template processing1.019096.764720.5095
Template load and register function0.00020.017010.0002
states
state_id_array0.00150.144810.0015
state_identifier_array0.00180.173720.0009
Override
Cache load0.00170.1656360.0000
Sytem overhead
Fetch class attribute can translate value0.00110.105940.0003
Fetch class attribute name0.00160.151060.0003
XML
Image XML parsing0.00350.336940.0009
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00500.4780340.0001
String conversion0.00000.000630.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs