Integrate/Expose Drupal HTML generated content with other php apps - Presentation Transcript
Christopher Calip Whoast (recently acquired by Straight North straightnorth.com) Thanks To:Matt Butcher of palantir.netDave Ross of csixty4.comTodd Wolaver at todd.be
The idea is to expose Drupal's commonly generated html output to other php application's template. So it's possible that your users coming from your drupal app going to your other php applications like (magento, sugarcrm, digishop..)will see the similar menus, etc..Specific Abilities and Limitations.This workaround will only exposed :1. Node 2. View3. Region4. Menu
Requirement's to make this Possible1. You dont have to hack Drupal Core and kill kittens! But you do have to update commonly edited.htaccess and settings.php 2. Install the custom page modulehttp://drupal.org/project/custompage 3. Make use of the functions available in custompage to output your desired Drupal HTML.http://drupal.org/node/286219 4. Inside the (other) 3rd party PHP application's template file, do a Drupal Full Bootstrap and callthe custompage helper function to retrieve Drupal HTML
Benefits of this approach.1. To the best of my knowledge (with one exemption) this makes it possible to expose DrupalHTML Generated content to other php application. 2. The exemption being using the Services module but using this approach is freaking time consumingand too many customizations involved.
Caveat Emptor1. if the location of the third part application script is different from Drupal's index.php then youneed to change the working directory and base url to Drupal's. The code available for this work-aroundis still manually based :( I need help to figure out to make this a plug and play script. 2. This workaround is make's use of Drupal Full Bootstrap, still need to figure out how to minimize resource call to put this workaround to play.
Project Available at :http://code.google.com/p/drupal-intergration-with-other-php-apps/
The idea is to expose Drupal's commonly generat more
The idea is to expose Drupal's commonly generated html output to other php application's template. So it's possible that your users coming from your drupal app going to your other php applications like (magento, sugarcrm, digishop..) will see the similar menus, etc..
0 comments
Post a comment