URL issue (when using URL translator)
You need to be logged in to post messages in the forums. New users may register here.
|
Simon Boyer
Member since: 09 March 2011
Posts: 43
|
Wednesday 17 August 2011 11:38:58 am
Hi,
I use URL translator to create a URL alias "sitemap.xml" with destination "layout/set/google/googlesitemap/generate/2"
But when I access to " http://www.domain.com/sitemap.xml", all links are prefixed by 'sitemap.xml'.
Why don't use this following in generate.tpl ?
<loc>{$node.url_alias|ezurl(no,full)}</loc>
instead of :
<loc>{concat( 'http://', $sitemap_siteurl, $node.url_alias )}</loc>
And in layout.ini.append.php :
[google]
PageLayout=googlesitemap_pagelayout.tpl
UseAccessPass=false
--
Simon Boyer
Developer at Open Wide
|
|
|
Gorobchenko Eugene
Member since: 17 February 2009
Posts: 1
|
Thursday 02 February 2012 2:48:33 pm
Thanks Simon!
|
|
You need to be logged in to post messages in the forums. New users may register here.