GeoTag in every article
Download the GeoTag plugin (v0.1 and above) for Languages: English Français Español Русский, paste the code into the TXP Admin -> Plugins, install and enable the plugin.
Visit to Admin -> Preferences -> Advanced and set any two name for Custom Fields (for example: Custom field 9 name Latitude and Custom field 10 name: Longitude)
Visit the Extensions -> GeoTag tab and paste Google API key from Google Maps API and set Custom field name for Latitude and Longitude. And press Save button.
Voilà
After installation GeoTag plugin on page Content -> Write view GeoTag link (Top left corner). Click on link for Show/Hide slide Google Map (div size: 484px on 350px). Search your location and make by click (view result in Advanced Options), Write and Save your article.
Voilà
<txp:ads_key /> Get Google Maps Api KEY
<txp:ads_lat /> Get Latitude article
<txp:ads_lon /> Get Longitude article
<!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" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example: Map Markers</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=<txp:ads_key />" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(15.462614610523499, 73.78928661346436), 2);
marker = new GMarker( new GLatLng(<txp:ads_lat />, <txp:ads_lon />) );
map.addOverlay(marker);
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>
See info about GeoRSS.
Install mg_setheader plugin.
Create Page with name georss<txp:mg_setheader name="Content-Type" value="application/xhtml+xml" /><?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:georss="http://www.georss.org/georss" version="2.0">
<channel>
<title>Title</title>
<link><txp:link_to_home /></link>
<description><txp:site_slogan /></description>
<language>English</language>
<pubDate><txp:posted gmt="1" format="%Y-%m-%d" />T<txp:posted gmt="1" format="%H:%M:%S" />Z</pubDate>
<generator><txp:site_name /></generator>
<txp:article_custom section="articles" allowoverride="0" form="georss" limit="500" pgonly="0" />
</channel>
</rss>
(Option for <Description>, may be except) Install rss_auto_excerpt plugin.
Create Form with name georss
<item>
<title><txp:title/>, <txp:posted gmt="1" format="%Y.%m.%d" /></title>
<link><txp:permlink /></link>
<description><txp:rss_auto_excerpt words="6" linktext="" showlinkwithexcerpt="0" excerptwraptag="" ending="..."/></description>
<pubDate><txp:posted gmt="1" format="%Y-%m-%d" />T<txp:posted gmt="1" format="%H:%M:%S" />Z</pubDate>
<guid><txp:permlink /></guid>
<georss:point><txp:ads_lat />,<txp:ads_lon /></georss:point>
</item>
Go to TXP Presentation > Sections and create section with name georss
Uses page:georss
Selected by default?:NO
On front page? NO
Syndicate? NO
Include in site search? NO
Save parameters
See results <your site>/georss/
Voilà