From .tpl to .php

Author Message

HÃ¥vard Bergersen

Monday 19 April 2010 1:44:37 am

Hey everyone.. Starting this monday off with a question I just can't seem to figure out:

I have made a module, that integrates with a external site, and fetches the a list of shows available at a theatre and generates a "buy tickets" button. The module works, both by accessing is directly by the url or in a template. I get the information needed, and everyone is happy... So far...

Now the problem is; at my site i would like to get the tickets available for just one of the shows (when entering mysite.com/shows/show-x/), and getting the option to buy it directly from that site too..
To be able to do this I would have to provide my script with a title id. How do i do that?
Is it possible to pass a value from a .tpl file to the module?

Steven E. Bailey

Monday 19 April 2010 2:23:06 am

I think what you want is either a view parameter or ordered/unordered parameter. Take a look at the ordered/unordered section here:

http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/modules_and_views

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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