Forums / Developer / creating a sitemap.xml
Sandeep Kadam
Friday 02 July 2010 12:07:29 am
Hello Friends, I need to add sitemap.xml in my eZp site.I searched for it and got some extensions that can be helpful but that will use the google created xmli want my custom sitemap.xml file.I know that i have to add new layout condition in "layout.ini.append.php" but i am stuck with it further processcan any one help me in this Please Sandeep K
Monday 05 July 2010 9:36:02 pm
Hello All,
can anyone please help me in this please..........
Sandeep
Gaetano Giunta
Tuesday 06 July 2010 1:55:30 am
you will need to create a new layout in layout.ini, with a new pagelayout (take the pagelayout from one of the sitemap extensions or from ggxmlview as an example)
then you will need to create a sitemap.tpl template used as view template for your content
the url you will need to use is: http://mysite/layout/set/sitemap/node/view/sitemap/2
you can use a virtual url to make it nicer, of course
Principal Consultant International Business Member of the Community Project Board
Tuesday 06 July 2010 4:53:57 am
Hi Gaetano Giunta,
thank you very much for replying..... After checking your replay I am actually using your extension "ggxmlview" for generating sitemap xml. I am able to get xml out put on below url as you suggested:
http://mysite/layout/set/sitemap/node/view/sitemap/2 The part i didn't get is "virtual url" i never tried this. Please can you help me in this to make above url to be browsed like below . Is this possible.? http://mysite/sitemap.xml Thank you very much.Sandeep
Tuesday 06 July 2010 8:11:55 am
- In the backoffice, "setup" tab, go to the "url translator" page
- define a new "url alias" for layout/set/sitemap/node/view/sitemap/2
Tuesday 06 July 2010 11:26:36 pm
Hi Gaetano Giunta,Thank you Very very much a much appreciated help this did the trick...........
Thank you,Sandeep