NAVIGATION
This shows you the differences between two versions of the page.
english:other-enhancements:sitemap-xml [2010/07/16 07:26] Knut Heermann (flip-flop) |
english:other-enhancements:sitemap-xml [2018/06/03 18:09] (current) |
||
---|---|---|---|
Line 45: | Line 45: | ||
/* | /* | ||
-------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ||
- | +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 123: | Line 123: | ||
if(empty($phpwcms['rewrite_url']) || empty($data['article_alias'])) { | if(empty($phpwcms['rewrite_url']) || empty($data['article_alias'])) { | ||
// $_link = PHPWCMS_URL.'index.php?'.setGetArticleAid( $data ); | // $_link = PHPWCMS_URL.'index.php?'.setGetArticleAid( $data ); | ||
- | $_link = PHPWCMS_URL.'index.php?'.($cat_link)?$_CAT['acat_alias']:setGetArticleAid( $data ); // +KH | + | $_link = PHPWCMS_URL.'index.php?'.(($cat_link)?$_CAT['acat_alias']:setGetArticleAid( $data )); // +KH |
} else { | } else { | ||
// $_link = PHPWCMS_URL.rawurlencode($data['article_alias']).'.phtml'; | // $_link = PHPWCMS_URL.rawurlencode($data['article_alias']).'.phtml'; | ||
Line 129: | Line 129: | ||
} | } | ||
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 158: | Line 158: | ||
} | } | ||
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 171: | Line 171: | ||
// 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; |