Monday 25 January 2010 3:12:04 pm
Nicolas is right, the standard way of interacting/working with eZ is to use higher-level languages such as the template code and HTML. Although, you can create new modules and extensions which usually involve using PHP/JavaScript/XML for more technical interactions with eZ. Otherwise the functionality you need can probably be used with eZ Publish "right out of the box". Furthermore, I recently had a project in which I used the Google JavaScript API for converting a rough-sketch interaction you are talking about to a more elegant solution for a client. The pre-existing solution involved using a separate database to store business locations and their information (phoone number, street address, URL, etc). So the interaction model looks like this: > User enters City/State into search field and selects a distance radius in miles (it's an American-based client) > On submission, JavaScript function is called > Call Google API > Call PHP class for AJAX interaction (to populate map with location information) > PHP class queries database to retrieve data based on user input (calculates radius and whatnot as well) > Save information to XML object > return XML object tp JavaScript > Populate map with retrieved information This can be done using a simple template override and no template code as you asked.. Again, a more elaborate solution might involve the GMaps location object (an extension) with eZ Find. I think that would match the eZ Publish interaction model a bit closer, make your code more readable, as well as debugging much easier all because this solution would have a much clearer segmentation of code. Good luck and I hope this helps.
Brandon Chambers
[email protected]
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com
|