GeoTag in every article
Télécharger le plugin Géomarque (v0.1 et dessus de) pour les langues: English Français Español Русский, collez le code dans TXP administration -> plugins, installer et activer le plugin.
Visite à administration -> préférences -> Options avancées et les deux ensemble pour nom personnalisé (par exemple: Champ personnalisé 9 Latitude et Champ personnalisé 10: Longitude)
Visite à extensions -> GeoTag onglet et et coller clé API Google à partir de Google Maps API et ensemble Champ personnalisé nom pour la latitude et la longitude. Et appuyez sur le bouton Sauver.
Voilà
Après l'installation Géomarque plugin sur la page contenu -> rédiger affichage GeoTag lien (Coin supérieur gauche). Cliquez sur le lien pour Afficher/Masquer Google Map (div taille: 484px sur 350px). Recherchez votre emplacement et cliquez (afficher le résultat dans Configuration avancée), Écrire et Sauver.
Voilà
<txp:ads_key /> clé API Google carte
<txp:ads_lat /> Latitude article
<txp:ads_lon /> 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>
Voir d'infos sur GeoRSS.
Installer le mg_setheader plugin.
Créer des gabarits par nom 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 pour <Description> mai être l'exception) Installer le rss_auto_excerpt plugin.
Créer des modules par nom 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>
Aller à TXP présentation > sections et créer des sections par nom georss
Utilise le gabarit:georss
Sélectionnée par défaut?:non
Sur la page d’accueil? non
Syndiquer (flux XML)? non
À inclure dans les résultats de recherche? non
Sauver
Voir les résultats <l'URL de votre site>/georss/
Voilà