Differences

This shows you the differences between two versions of the page.

deutsch:andere-erweiterungen:sitemap-xml [2010/07/15 16:11]
Knut Heermann (flip-flop)
deutsch:andere-erweiterungen:sitemap-xml [2018/06/03 18:09] (current)
Line 10: Line 10:
Einstellung in "CUSTMOM VAR": [true|false] [Kategorie-Link | Artikel-link] Einstellung in "CUSTMOM VAR": [true|false] [Kategorie-Link | Artikel-link]
 +
 +
 +
 +**Update V1.1: 15.07.2010 KH** \\
 +- Kleine Korrektur in Zeile 102, da bei "mod_rewrite = 0" die URL nicht eingefügt wurde.
 +<code php>$_link = PHPWCMS_URL.'index.php?'.($cat_link)?$_CAT['acat_alias']:setGetArticleAid( $data );  // +KH</code>
 +getauscht nach
 +<code php>$_link = PHPWCMS_URL.'index.php?'.(($cat_link)?$_CAT['acat_alias']:setGetArticleAid( $data ));  // +KH</code>
 +
 +\\
 +
<code php|h sitemap.php |h> <code php|h sitemap.php |h>
Line 35: Line 46:
/* /*
-------------------------------------------------------------------------- --------------------------------------------------------------------------
-+KH 15.06.2010  K.Heermann http://planmatrix.de++KH 15.06.2010  K.Heermann http://planmatrix.de Update V1.1 15.07.2010
   Using Category links instead of Article Links    Using Category links instead of Article Links
   Switch in CUSTMOM VAR [true|false] [Category-Link | Article-link]    Switch in CUSTMOM VAR [true|false] [Category-Link | Article-link]
Line 119: Line 130:
} }
echo ' <url>'.LF; echo ' <url>'.LF;
-     echo ' <loc>'.$_link.'</loc>'.LF;+ echo ' <loc>'.$_link.'</loc>'.LF;
echo ' <lastmod>'.$data["article_tstamp"].'</lastmod>'.LF; echo ' <lastmod>'.$data["article_tstamp"].'</lastmod>'.LF;
echo ' </url>'.LF;   echo ' </url>'.LF;  
Line 148: Line 159:
} }
echo ' <url>'.LF; echo ' <url>'.LF;
-     echo ' <loc>'.$_link.'</loc>'.LF;+ echo ' <loc>'.$_link.'</loc>'.LF;
echo ' <lastmod>'.$_lastmod.'</lastmod>'.LF; echo ' <lastmod>'.$_lastmod.'</lastmod>'.LF;
echo ' </url>'.LF;   echo ' </url>'.LF;  
Line 161: Line 172:
// just return the main URL // just return the main URL
echo ' <url>'.LF; echo ' <url>'.LF;
-    echo ' <loc>'.PHPWCMS_URL.'</loc>'.LF;+ echo ' <loc>'.PHPWCMS_URL.'</loc>'.LF;
echo ' <lastmod>'.date('Y-m-d').'</lastmod>'.LF; echo ' <lastmod>'.date('Y-m-d').'</lastmod>'.LF;
echo ' </url>'.LF;   echo ' </url>'.LF;  
deutsch/andere-erweiterungen/sitemap-xml.1279203087.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0