kml items output

hi i like to organize my omeka exhibit on google earth by displaying the exhibition using the geolocated plugin, but i can´t find where to make a call of the collection. i´m using the Theme API but i the access is denied, where i can´t run a php script that calls the collection of items so the user can display it. do i have to create a new theme for this?

Hi fabianrios:

There isn't a KML output for exhibits, even if you have the Geolocation plugin installed. So, creating a new theme won't help with this.

What kind of PHP script were you trying to use?

there is this code in the geolocation plugin

---------------------
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>Registros Base de Datos KML</name>
<?php /* Here is the styling for the balloon that appears on the map */ ?>
<Style id="item-info-balloon">
<BalloonStyle>
<text><![CDATA[
<div class="geolocation_balloon">
<div class="geolocation_balloon_title">$[namewithlink]</div>
<div class="body">$[description]</div>
<div class="geolocation_balloon_description">$[Snippet]</div>
</div>
]]></text>
</BalloonStyle>
</Style>
<?php
while(loop_items()):
$item = get_current_item();
$location = $locations[$item->id];
?>
<Placemark>
<name><![CDATA[<?php echo item('Dublin Core', 'Title');?>]]></name>
<namewithlink><![CDATA[<?php echo link_to_item(item('Dublin Core', 'Title'), array('class' => 'view-item')); ?>]]></namewithlink>
<Snippet maxLines="2"><![CDATA[<?php
echo item('Dublin Core', 'Description', array('snippet' => 150));
?>]]></Snippet>
<description><![CDATA[<?php
// @since 3/26/08: movies do not display properly on the map in IE6,
// so can't use display_files(). Description field contains the HTML
// for displaying the first file (if possible).
if (item_has_thumbnail($item)) {
echo link_to_item(item_thumbnail(), array('class' => 'view-item'));
}
?>]]></description>
<Point>
<coordinates><?php echo $location['longitude']; ?>,<?php echo $location['latitude']; ?></coordinates>
</Point>
<?php if ($location['address']): ?>
<address><?php echo htmlentities($location['address']); ?></address>
<?php endif; ?>
</Placemark>
<?php endwhile; ?>
</Document>
</kml>

-----------------------
it would be perfect if i could make an output of all this data, but it appears to work only in the plugin but no by itself,(http://bit.ly/5SbKkV) this is a roughly example of what i'm trying to do:

----------------------------------

<?php

echo '<?xml version="1.0" encoding="UTF-8"?>';
echo ('<kml xmlns="http://earth.google.com/kml/2.0">

<Document>
<name>Registros Base de Datos KML</name>

<Style id="item-info-balloon">
<BalloonStyle>
<text>
<div class="geolocation_balloon">
<div class="geolocation_balloon_title">').$[namewithlink].('</div>
<div class="body">').$[description].('</div>
<div class="geolocation_balloon_description">').$[Snippet].('</div>
</div>
</text>
</BalloonStyle>
</Style> ');

?>
<?php
while(loop_items()):
$item = get_current_item();
$location = $locations[$item->id];
?>
<Placemark>
<name><![CDATA[<?php echo item('Dublin Core', 'Title');?>]]></name>
<namewithlink><![CDATA[<?php echo link_to_item(item('Dublin Core', 'Title'), array('class' => 'view-item')); ?>]]></namewithlink>
<Snippet maxLines="2"><![CDATA[<?php
echo item('Dublin Core', 'Description', array('snippet' => 150));
?>]]></Snippet>
<description><![CDATA[<?php
// @since 3/26/08: movies do not display properly on the map in IE6,
// so can't use display_files(). Description field contains the HTML
// for displaying the first file (if possible).
if (item_has_thumbnail($item)) {
echo link_to_item(item_thumbnail(), array('class' => 'view-item'));
}
?>]]></description>
<Point>
<coordinates><?php echo $location['longitude']; ?>,<?php echo $location['latitude']; ?></coordinates>
</Point>
<?php if ($location['address']): ?>
<address><?php echo htmlentities($location['address']); ?></address>
<?php endif; ?>
</Placemark>
<?php endwhile; ?>
</Document>
</kml>

by the way, thanks for answering

HI. i put the code in the index.php of the theme and it displays the info the way i need it, is there another page where i can get permission to access and run the code.

http://delantiguadeldarien.net/archivo/ (look below the footer)

How did you actually add this to your footer? Is this an output from the Geolocation plugin, or something you wrote custom? If its something you wrote custom, maybe with a plugin, you'd like it available at a separate page, you could create a custom route for it in your plugin. If you didn't write a plugin for it, but instead inserted it directly in your footer, it would probably be better served as a plugin, with its own custom route and template for the output, the URL for which you could use in GoogleEarth.