eZ Community » Forums » Developer » creating a sitemap.xml
expandshrink

creating a sitemap.xml

creating a sitemap.xml

Friday 02 July 2010 9:07:29 am - 6 replies

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

Tuesday 06 July 2010 6:36:02 am

Hello All,

can anyone please help me in this please..........

Sandeep

Tuesday 06 July 2010 10: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

Tuesday 06 July 2010 1:53:57 pm

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

Modified on Tuesday 06 July 2010 2:17:07 pm by Sandeep Kadam

Tuesday 06 July 2010 5:11:55 pm

- In the backoffice, "setup" tab, go to the "url translator" page

- define a new "url alias" for layout/set/sitemap/node/view/sitemap/2

Wednesday 07 July 2010 8:26:36 am

Hi Gaetano Giunta,
Thank you Very very much a much appreciated help this did the trick...........

Thank you,
Sandeep

Friday 06 April 2012 6:03:42 pm

Quote from Gaetano Giunta :

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

Good evening Gaetano,

your extensions are always the best solution to my problems! happy.gif Emoticon

 

But there' something wrong with my configuration (maybe). 

If install and invoke your extension with http://my.ezpublish.site/index.php/siteaccess/layout/set/xml/content/view/xml/2 I receive an error like this: error on line 27 at "column 17: Opening and ending tag mismatch: billboard line 0 and frontpage"

Any idea?

Simone

Modified on Friday 06 April 2012 6:04:13 pm by Simone Conti

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from