Page Displayer Module
From Fishcakes Wiki
This page contains info about the Exponent Page Displayer Module.
Contents |
About Page Display Module
Allows you to insert an HTML page into an Exponent page.
Code Corrections
None to date.
Using the Page Display Module
To Display a Google Map
Source code which can be uploaded using the Page Displayer Module to display a Google Map on your site.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> </head> <body> <div id="map" style="border: 1px solid #333; background-color: #ddd; width: 456px; height: 400px; margin: auto; margin-top: 2em; margin-bottom: 2em"> <div style="padding: 1em; color: #333">Loading Google Map...</div> </div> <!-- Map loader --> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAYBB_NyS1YelEH_91Z4JRxRTPO8D1fuP4Dvehrkb7tbDtd9g_0xTVWArpb3eavxmG2-67-ZM8bD7Geg" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ if (GBrowserIsCompatible()) { function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(51.532736, -0.131001), 15); var point = new GLatLng(51.531336, -0.131301); var marker = createMarker(point,'<b>Fishcakes Media</b><br>Euston / Kings Cross<br>London, NW1, UK<br> <br><span class="smalltext"><a href="http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=fishcakes+media&sll=54.162434,-3.647461&sspn=12.733869,24.65332&ie=UTF8&om=1&ll=51.53387,-0.127244&spn=0.013188,0.024076&z=15&iwloc=A" target="_blank" title="visit Google Maps in new window">Get directions from Google Maps »</a></span>') map.addOverlay(marker); } //]]> </script> </body> </html>
Exponent CMS Resources
Official Exponent Resources
- exponentcms.org — official website.
- exponentcms.org Download — get Exponent.
- sourceforge.net Exponent — get Exponent from SourceForge.
- exponentcms.org Download Themes — change the look.
- exponentcms.org Download Modules — extend Exponent.
- exponentcms.org Forums — for advice.
- exponentcms.org FAQ — How Do I guide to common questions.
- exponentcms.org User Guides — PDF downloads.
- exponentcms.org Designers Guide — doesn't really exist yet!
- exponentcms.org Developers Guide — doesn't really exist yet!
- exponentcms.org How To Create a Module — basic module structure explained.
Unofficial Exponent Resources
- phpxref.com Exponent — online browsing of Exponent 0.96.3 source code.
- netstepcms.com eXponent Overview — good review of what's on offer.
- zimmertech.com Tutorials — excellent tutorials on variety of topics, including great Themes tutorial.
MySQL Resources
- mysql.com — MySQL official website.
- mysql.com Documentation — official user guide.
- wikipedia.org MySQL — good history and definition.
- php.net MySQL Functions — using PHP and MySQL together.
PHP Resources
- php.net — PHP Hypertext Processor official website.
- wikipedia.org PHP — good history and definition.
- w3schools.com PHP Tutorial — excellent online tutorial.
- php.resourceindex.com — index of PHP code snippets for the seriously techie.

