Note: this works only in Newscoop 3.5.0 and newer versions.
Maps require jQuery: In order to use display maps you must include jQuery in the header of your document, with a link like this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
Create a list of map locations related to the article currently defined in the template environment. If the article was not defined, the list is empty. The code between {{ list_article_locations }} and {{ /list_article_locations }} is repeated for every location in the list. Inside the list every location is represented by a map location object, (see "Article Location").
{{ list_article_locations [length="<integer_value>"] [columns="<integer_value>"] }} <list_of_instructions> {{ /list_article_images }}
Ushahidi compatible KML format. You can use this as a feed to call as a layer in Ushahidi:
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.2"> <Document> <name>{{ $gimme->publication->name }}</name> <description><![CDATA[ .]]></description> {{ list_articles}} {{ list_article_locations }} {{ if $gimme->location->enabled }} <Style id="style{{ $gimme->article->number }}-{{ $gimme->current_list->index }}"> <IconStyle> <Icon> <href>http://www.sourcefabric.org/javascript/geocoding/markers/marker-gold.png</href> </Icon> </IconStyle> </Style> {{ /if }} {{ /list_article_locations }} {{ /list_articles }} {{ list_articles}} {{ list_article_locations }} {{ if $gimme->location->enabled }} <Placemark> <name>{{ $gimme->location->name }} @ {{ $gimme->article->name }}</name> <description></description> <styleUrl>#style{{ $gimme->article->number }}-{{ $gimme->current_list->index }}</styleUrl> <Point> <coordinates>{{ $gimme->location->longitude }},{{ $gimme->location->latitude }},0.000000</coordinates> </Point> </Placemark> {{ /if }} {{ /list_article_locations }} {{ /list_articles }} </Document> </kml>
Taken from theme "The Journal" (date 2011-03-15) file "article-cont.tpl"
<p> Location(s): {{ list_article_locations }} {{ if $gimme->location->enabled }} {{ $gimme->location->name }} {{ if $gimme->current_list->at_end }}{{ else }}, {{ /if }} {{ /if }} {{ /list_article_locations }} </p>
Inside list_article_locations the following statements are forbidden:
Inside the list, the current location is set to the current element of the list. The environment context is restored after the list processing.
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.