This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
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 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
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!
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
You must be logged in to post messages in this topic!