ich stelle meinen Kunden und Besuchern an unterschiedlichen Punkten Media Feeds zur Verfügung .. Besonders
interessant finde ich seit dem Wochenden in meinen Blog den Feed über NextGEN.
<!--c1--><div class='codetop'>QUELLTEXT[/align]<div class='codemain'><!--ec1--><?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss' xmlns:atom='http://www.w3.org/2005/Atom'>
<channel>
<generator><![CDATA[NextGEN Gallery [http://alexrabe.boelinger.com]]]></generator>
<title>r23</title>
<description>und sein Skizzen-Blog</description>
<link><![CDATA[http://blog.r23.de]]></link>
<atom:link rel='next' href='http://blog.r23.de/wp-content/plugins/n ... t_pictures' />
<item>
<title><![CDATA[03040906.jpg]]></title>
<description><![CDATA[]]></description>
<link><![CDATA[http://blog.r23.de/wp-content/gallery/p ... 040906.jpg]]></link>
<media:content url=http://blog.r23.de/wp-content/gallery/p ... 040906.jpg' medium='image' />
<media:title><![CDATA[03040906.jpg]]></media:title>
<media:description><![CDATA[]]></media:description>
<media:thumbnail url=http://blog.r23.de/wp-content/gallery/p ... 040906.jpg' width='100' height='100' />
<media:keywords><![CDATA[]]></media:keywords>
<media:copyright><![CDATA[Copyright (c) r23 (http://blog.r23.de)]]></media:copyright>
</item>
Code: Alles auswählen
Der Aufbau ist recht einfach und kann nach meiner Meinung leicht in den MyOOS aufgenommen werden.
[code]
/**
* Get the XML <item> node corresponding to one single image
*
* @param $image The image object
*/
function get_image_mrss_node($image, $indent = "\t\t" ) {
$ngg_options = nggGallery::get_option('ngg_options');
$tags = $image->get_tags();
$tag_names = '';
foreach ($tags as $tag) {
$tag_names .= ($tag_names=='' ? $tag->name : ', ' . $tag->name);
}
$title = html_entity_decode(stripslashes($image->alttext));
$desc = html_entity_decode(stripslashes($image->description));
$thumbwidth = $ngg_options['thumbwidth];
$thumbheight = ($ngg_options['thumbfix] ? $ngg_options['thumbheight] : $thumbwidth);
$out = $indent . "<item>\n";
$out .= $indent . "\t<title><![CDATA[" . nggGallery::i18n($title) . "]]></title>\n";
$out .= $indent . "\t<description><![CDATA[" . nggGallery::i18n($desc) . "]]></description>\n";
$out .= $indent . "\t<link><![CDATA[" . $image->get_permalink() . "]]></link>\n";
$out .= $indent . "\t<media:content url=" . $image->imageURL . "' medium='image' />\n";
$out .= $indent . "\t<media:title><![CDATA[" . nggGallery::i18n($title) . "]]></media:title>\n";
$out .= $indent . "\t<media:description><![CDATA[" . nggGallery::i18n($desc) . "]]></media:description>\n";
$out .= $indent . "\t<media:thumbnail url=" . $image->thumbURL . "' width='" . $thumbwidth . "' height='" . $thumbheight . "' />\n";
$out .= $indent . "\t<media:keywords><![CDATA[" . nggGallery::i18n($tag_names) . "]]></media:keywords>\n";
$out .= $indent . "\t<media:copyright><![CDATA[Copyright (c) " . get_option("blogname") . " (" . get_option("siteurl") . ")]]></media:copyright>\n";
$out .= $indent . "</item>\n";
return $out;
}<!--c2-->[/align]<!--ec2-->
da der Midia RSS Feed auch für andere Formate verwendet werden kann.
[url=http://search.yahoo.com/mrss/]http://search.yahoo.com/mrss/[/url]
hier z.b. als Video
<!--c1--><div class='codetop'>QUELLTEXT[/align]<div class='codemain'><!--ec1--><rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"
xmlns:dcterms="http://purl.org/dc/terms/">
<channel>
<title>Music Videos 101</title>
<link>http://www.foo.com</link>
<description>Discussions of great videos</description>
<item>
<title>The latest video from an artist</title>
<link>http://www.foo.com/item1.htm</link>
<media:content url="http://www.foo.com/movie.mov" fileSize="12216320"
type="video/quicktime" expression="full">
<media:player url="http://www.foo.com/player?id=1111"
height="200" width="400"/>
<media:hash algo="md5">dfdec888b72151965a34b4b59031290a</media:hash>
<media:credit role="producer">producer's name</media:credit>
<media:credit role="artist">artist's name</media:credit>
<media:category scheme="http://blah.com/scheme">music/artist
name/album/song</media:category>
<media:text type="plain">
Oh, say, can you see, by the dawn's early light
</media:text>
<media:rating>nonadult</media:rating>
<dcterms:valid>
start=2002-10-13T09:00+01:00;
end=2002-10-17T17:00+01:00;
scheme=W3C-DTF
</dcterms:valid>
</media:content>
</item>
</channel>
</rss>
[7code]
oder als
A movie review with a trailer, using a Creative Commons license.
[code]
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
<title>My Movie Review Site</title>
<link>http://www.foo.com</link>
<description>I review movies.</description>
<item>
<title>Movie Title: Is this a good movie?</title>
<link>http://www.foo.com/item1.htm</link>
<media:content url="http://www.foo.com/trailer.mov"
fileSize="12216320" type="video/quicktime" expression="sample"/>
<creativeCommons:license>
http://www.creativecommons.org/licenses/by-nc/1.0
</creativeCommons:license>
<media:rating>nonadult</media:rating>
</item>
</channel>
</rss><!--c2-->[/align]<!--ec2-->
stellt sich mir zurzeit die Frage, ob wir 'Multi-Media' Datenfelder in den Shop aufnehmen
und dann auch entsprechede Feeds zur Verfügung stellen?
Wie macht ihr dies zurzeit mit den zusätzlichen Informationen zu einem Produkt?
Wie veröffentlicht ihr Produkt-Vidoes in Eurem Shop? Oder welche Datenfelder fehlen euch?
(z.b. PDF wurde schon einmal genannt? was noch?)
cu
ralf