ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How can i create XML sitemap

October 06, 2011 9:13pm

Subscribe [6]
  • #1 / Oct 06, 2011 9:13pm

    farrukhny

    42 posts

    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

    mz91184

    100 posts

    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

    Sue Crocker

    26054 posts

    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

    farrukhny

    42 posts

    Thanks for help but does has any different way to create xml sitemap?

  • #5 / Oct 07, 2011 11:18am

    Matt:P

    277 posts

    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

    amityweb

    162 posts

    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&gt">http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"&gt</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

    Dan Decker

    7338 posts

    farrukhny,

    Do either of the 2 new suggestions get you closer to your goal?

    Cheers,

  • #8 / Oct 09, 2011 12:32am

    farrukhny

    42 posts

    yes thank you guys for help

  • #9 / Oct 09, 2011 12:36am

    Dan Decker

    7338 posts

    farrukhny,

    Excellent! If you need any thing in the future, let us know via a new thread.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases