<?php
// 1: Switch to the Serendipity path
chdir('xxxxxxx');
// 2: Start the Serendipity API
include 'serendipity_config.inc.php';
// 3: Start Smarty templating
serendipity_smarty_init();
// 4: Get the latest entries
$entries = serendipity_fetchEntries(null, true,1);
// 5: Put all the variables into Smarty
serendipity_printEntries($entries);
// 6: Get the template file
$tpl = serendipity_getTemplateFile('ext_entries.tpl', 'serendipityPath');
// 7: Format and output the entries
$serendipity['smarty']->display($tpl);
// 8: Go back to where you came from
chdir('xxxxxxx');
?>
Ich habe ein eigenes .tpl angelegt (ext_entries.tpl) und dieses angepasst.
Was ich jetzt noch gerne wüsste ist, wie ich in den exportierten Einträgen die Sonderzeichen/Umlaute "maskiere".
Deine Webseite muss einfach denselben Charset/Content-Type nutzen wie dein Blog. Also UTF-8 wenn dein Blog auch UTF-8 ist.
Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Deine Webseite muss einfach denselben Charset/Content-Type nutzen wie dein Blog. Also UTF-8 wenn dein Blog auch UTF-8 ist.
Grüße,
Garvin
Das bringt aber nur mir etwas, nicht meinen Besuchern.
Aber auch bei meinem Firefox, kann ich zwar UTF 8 einstellen und dann passts auch. Beim Reload ist's wieder genauso wie vorher, obwohl ich UTF 8 als Standard gesetzt habe.
Das bringt aber nur mir etwas, nicht meinen Besuchern.
Ich habe nichts von Browser gesagt. Du musst im HTML Content-Type deiner Seite denselben Charset einstellen, via meta Tags z.b.
Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/