Man darf im Tempelate der Google-Sitmap.Xml nicht
wählen, sonderncms php skript: index.php
dann wird man zumindest nicht mehr auf die Startseite geleitet!cms php skript: front_content.php
MfG
Wenn Du eventuelle eine Idee hast, wäre das super wenn Du uns helfen könntest! Danke Dirwhile ($db->next_record()) {
$linkid = $db->f("idart");
$lastmod = iso8601_date( $db->f("lastmod") );
// link
$link = $xml_link. "CMS_VALUE[0]?idart=$linkid";
print "<url>\n";
print " <loc>".htmlspecialchars($link)."</loc>\n";
Code: Alles auswählen
// link
$link = $xml_link. "CMS_VALUE[0]?idart=$linkid";
Code: Alles auswählen
// link
cInclude("classes", "class.modrewrite.php");
$link = ModRewrite::build_new_url("?idart=$linkid");
$link = 'http://'.$_SERVER['HTTP_HOST'].$link;
hast du in der contenido/includes/config.php bei den settings für MR auchv_r hat geschrieben:Ist das noch keinem aufgefallen? Mir auch erst nachdem ich das ModRewrite drin hatte.
der Code liefert alle Seite. Egal von welchen Client. Hier die Query mit client-Check.
$query = "SELECT art_lang.idart, UNIX_TIMESTAMP(lastmodified) as lastmod FROM ".$cfg["tab"]["art_lang"]." art_lang,".$cfg["tab"]["art"]." art where art_lang.online='1' and art_lang.idart <> '".$idart."' and art.idart=art_lang.idart and idclient=$client";
V_R
Code: Alles auswählen
/* is multiclient in only one directory? ( 1 = yes, 0 = none ) */
$cfg['mod_rewrite']['use_client'] = 1;
Code: Alles auswählen
echo "<table cellspacing=\"0\" cellpadding=\"10\" border=\"0\">\n
<tr>
<td width=\"200\">Auszuschliessende Artikel:</td><td>";
echo "<input name=\"CMS_VAR[4]\" type=\"text\" value=\"CMS_VALUE[4]\" size=\"10\">";
echo "</td></tr>
</table>";
Code: Alles auswählen
// select all articles in category widthout start article
$query = "SELECT idart, UNIX_TIMESTAMP(lastmodified) as lastmod FROM ".$cfg["tab"]["art_lang"]." where online='1' ";
Code: Alles auswählen
// select all articles in category widthout start article
$dontshow = "CMS_VALUE[4]";
if ($dontshow != "") {
$extra = 'AND idart NOT IN ('.$dontshow.')';
}
else { $extra = ""; }
$query = "SELECT idart, UNIX_TIMESTAMP(lastmodified) as lastmod FROM ".$cfg["tab"]["art_lang"]." where online='1' ".$extra;
Code: Alles auswählen
<?php
/**
* Google Sitemaps Ausgabe als XML - 05.06.2005
*
* OUTPUT
*
* Author Luxmedia Österreich
* Copyright www.luxmedia.at
*
* 2005-06-09
* - Nur Artikel die Online sind
* - lastmod, changefreq, Skriptname aus INPUT
* - lastmod Datumsformat iso8601
*
* Angepasst durch derSteffen
* 2005-12-21
* - Neu: priority
* - Neuer Header (<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" usw...)
*/
function iso8601_date($time) {
$tzd = date('O',$time);
$tzd = substr(chunk_split($tzd, 3, ':'),0,6);
$date = date('Y-m-d\TH:i:s', $time) . $tzd;
return $date;
}
{
/* $xml_titel = "CMS_VALUE[1]";
$xml_link = "CMS_VALUE[2]"; */
$xml_titel = $cfgClient[$client]["path"]["htmlpath"]."CMS_VALUE[0]?idcat=".$idcat;
$xml_link = $cfgClient[$client]["path"]["htmlpath"];
// Header ausgeben
header("Content-type: text/xml");
print '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">'. "\n\n";
// select all articles in category widthout start article
$query = "SELECT idart, UNIX_TIMESTAMP(lastmodified) as lastmod FROM ".$cfg["tab"]["art_lang"]." where online='1'";
// execute query
$db->query($query);
// get id's of sub articles
while ($db->next_record()) {
$linkid = $db->f("idart");
$lastmod = iso8601_date( $db->f("lastmod") );
// link
$link = $xml_link. "CMS_VALUE[0]?idart=$linkid";
print "<url>\n";
print " <loc>".htmlspecialchars($link)."</loc>\n";
if("CMS_VALUE[1]") {
print " <lastmod>". $lastmod."</lastmod>\n"; }
if("CMS_VALUE[2]"){
print " <changefreq>CMS_VALUE[2]</changefreq>\n"; }
if("CMS_VALUE[3]") {
print " <priority>CMS_VALUE[3]</priority>\n"; }
print "</url>\n\n";
} // end while
print '</urlset>';
}
?>