SQL in ez..

Author Message

K259

Monday 27 February 2006 5:59:20 am

I have made some sql-selects which retrieves useful content from the ez database. This content is presented today with php outside of ez.

I want to make this content available inside ez. What's the best way of doing this in a template?

Thanks.

Gabriel Ambuehl

Monday 27 February 2006 6:17:42 am

It's probably easiest to create a custom template operator that will use your current PHP script and call that in templates.

Visit http://triligon.org

K259

Thursday 07 September 2006 7:56:28 am

Hi! It's not a script, but a couple of sql's which I want to display inside an ez page. I can create an object of a class, and create an override template for this object(node), but how can I list the results from the sql?

Does anyone have an example-code in ez for this? I guess I have to add a file to kernel/ and then add a template under design/xx... and send the result variable to the designtemplates..and print this with the ez template language..but how?

Norman Leutner

Friday 08 September 2006 12:47:10 am

Take a look at the template operator I made a while ago,
this simply executes a sql command and returns the result to the template:

http://ez.no/community/contribs/template_plugins/topauthors

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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