HI
I am try to generate XML sitemap but dont know how, my website structure is
http://www.domain.com/template/template/entry
i have more then 500 entry pages and everyday it is increasing to 5-10 pages please help. some example.
my EE 2.2.2
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
October 06, 2011 9:13pm
Subscribe [6]#1 / Oct 06, 2011 9:13pm
HI
I am try to generate XML sitemap but dont know how, my website structure is
http://www.domain.com/template/template/entry
i have more then 500 entry pages and everyday it is increasing to 5-10 pages please help. some example.
my EE 2.2.2
#2 / Oct 06, 2011 11:31pm
I found a link to some docs on how to create one with EE (http://expressionengine.com/wiki/Google_Sitemaps). I now usually use Structure for navigation which has xml sitemaps built into template tags.
#3 / Oct 07, 2011 7:37am
Thanks for the assist, mz91184.
That particular article is for EE1.x, so you’d need to modify it to work with EE2.x.
Or you can look at:
http://devot-ee.com/search/tags/tag/sitemap
Does that help?
#4 / Oct 07, 2011 9:13am
Thanks for help but does has any different way to create xml sitemap?
#5 / Oct 07, 2011 11:18am
Hi Farruk
I use this: http://www.xml-sitemaps.com
They also have a standalone version which you can use on your own server.
Looking forward to other suggestions 😊
#6 / Oct 07, 2011 12:11pm
I just create a template with the code below, and set it to XML, then insert the channel entry tag to generate the links.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 <a href="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd>">http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"></a>;
{!-- Home --}
<url>
<loc>{site_url}</loc>
<lastmod>{exp:stats}{last_entry_date format="{DATE_W3C}"}{/exp:stats}</lastmod>
<changefreq>always</changefreq>
1.0</priority>
</url>
{!-- Content Pages --}
{exp:channel:entries channel="content" disable="categories|custom_fields|member_data|pagination|trackbacks" rdf="off" dynamic="off" status="Open"}
<url>
<loc>{site_url}site/{url_title}</loc>
<lastmod>{gmt_edit_date format="{DATE_W3C}"}</lastmod>
<changefreq>weekly</changefreq>
0.5</priority>
</url>
{/exp:channel:entries}
{!-- Blog List --}
<url>
<loc>{site_url}site/blog</loc>
<lastmod>{exp:stats}{last_entry_date format="{DATE_W3C}"}{/exp:stats}</lastmod>
<changefreq>weekly</changefreq>
0.5</priority>
</url>
{!-- Blog Entries --}
{exp:channel:entries channel="blog" disable="categories|custom_fields|member_data|pagination|trackbacks" rdf="off" dynamic="off" status="Open"}
<url>
<loc>{site_url}site/blog/{url_title}</loc>
<lastmod>{gmt_edit_date format="{DATE_W3C}"}</lastmod>
<changefreq>weekly</changefreq>
0.5</priority>
</url>
{/exp:channel:entries}
</urlset>The template is in my “site” template group, and is called sitemap.xml, so the URL to it is:
http://www.mydomain.co.uk/site/sitemap
#7 / Oct 09, 2011 12:23am
farrukhny,
Do either of the 2 new suggestions get you closer to your goal?
Cheers,
#8 / Oct 09, 2011 12:32am
yes thank you guys for help
#9 / Oct 09, 2011 12:36am
farrukhny,
Excellent! If you need any thing in the future, let us know via a new thread.
Cheers!