integrating dataface into plone

A place for users and developers of the Xataface to discuss and receive support.

Postby compudude86 » Thu Jan 18, 2007 11:30 am

ok, i now have a plone site, and would like to integrate dataface into that. it seems they are related, so it shouldnt be too hard, i dont think. thanks
compudude86
 
Posts: 59
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Jan 19, 2007 1:09 am

I have done a few projects that use Dataface and Plone together, but just to clarify, the only relationship between Dataface and Plone is that Dataface used the Plone 2.0 stylesheets as a basis for its own. That is about the only similarity. Dataface uses PHP and runs on Apache, whereas Plone uses Python and runs on Zope.

If you are working on a project that has a lot of relational data or it fits a relational model well, but you want to be able to incorporate the information into your Plone site, then what you would probably do is use Dataface for the back-end data management, and Plone as the website front end.

Plone is capable of connecting to relational databases like MySQL using the ZMySQLDA database adapter. Once you have that installed, you can easily create ZSQL methods to perform the queries that you want on your database and call the ZSQL methods from your Zope Page templates.

The good thing about that strategy (ZSQL methods and Page templates) is that it's quick and easy. The down side is that it doesn't fully integrate into Plone. For example, the Plone search won't by default search the relational database, and the Plone permissions don't work the way you might hope they would.

If you want to move to the next step (full integration), you would create some custom content types to wrap the relational data.

I know that this is a VERY brief overview of how it is done, and may not be immediately practical as a means of getting you started, but I just wanted to convey the fact that it can be done - and if done right, can be very effective.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 35 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved