Sitemap ?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
DonnaNJ
Forum Members
Forum Members
Posts: 40
Joined: Mon Nov 19, 2007 6:08 pm

Sitemap ?

Post by DonnaNJ »

I installed

sitemap made simple ...

It looks like that's all I need to do to get the XML file - but nothing is in my directory.

There is an old post from last Feb that says the protocol has changed .. but it's not quite clear what I should do with that iformation.

(and yes I installed the CGExtender mod first)

Do I have to DO anything once this mod is installed ?

thanks

DonnaNJ
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: Sitemap ?

Post by Nick Smart »

You need to either:
- add a page
- remove a page
- make a page inactive or active
to trigger SitemapMadeSimple to do something.

The simplest way to to quickly make a page inactive then active again, or add and then delete a test page if you don't want to make another page inactive/active.

Also, SitemapMadeSimple only includes pages that have "show in menu" ticked. If you have some other pages you'll need to edit the SitemapMadeSimple template to add them manually, eg. "someotherpage" in this example

Code: Select all

{* sitemap template *}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
	http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

{foreach from=$output item='page'}
<url>
  <loc>{$page->url}</loc>
  <priority>{$page->priority}</priority>
  <changefreq>daily</changefreq>
</url>
{/foreach}
<url>
  <loc>http://www.domainname.com/someotherpage.html</loc>
  <priority>0.5</priority>
  <changefreq>daily</changefreq>
</url>

</urlset>
Nick
DonnaNJ
Forum Members
Forum Members
Posts: 40
Joined: Mon Nov 19, 2007 6:08 pm

Re: Sitemap ?

Post by DonnaNJ »

So what do I use to sumbit to Google ?

I don't see a sitemap.xml file anywhere ?

Even if I create a new page - and rerun SEO:MS - nothing seems to happen ?

thanks

Donna
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: Sitemap ?

Post by Nick Smart »

If its worked properly you should have a sitemap.xml in your top-level directory and you should be able to see it in your browser, e.g. www.mydomain.com/sitemap.xml

You don't "submit it to Google" as such, but you can register with Google Webmaster tools and tell Google it is there. Google will most likely get round to checking it sometime after that and may even index some, but probably not all, the pages in your sitemap too, eventually.

What is "SEO:MS"?

Nick
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Sitemap ?

Post by skateoroma »

I'm having the same issue and I tried the suggested steps above with no luck.  The sitemap.xml file is never created.  I'm using SiteMapMadeSimple version 1.1.4 and cmsms version 1.4.1.

Does anyone know how to get this to work.

Thanks
JeremyBASS

Re: Sitemap ?

Post by JeremyBASS »

it may be because your user (mostly likely apache) is not able to create a file on the root... if the was the cause SiteMapMS dies quietly... at least it has for me... at the point just create the file and make sure it's writable... or.. well not enough info for more yet...



another working site map example:

Code: Select all

{* sitemap template *}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
	http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
{foreach from=$output item='page'}
<url>
  <loc>{$page->url}</loc>
  <priority>{$page->priority}</priority>
  <changefreq>daily</changefreq>
</url>
{/foreach}


{capture assign='junk'}{news category="Press Releases" number='1000'}{/capture}
{foreach from=$items item=entry}
{assign var=utmpNEWS value=$entry->moreurl|replace:'//':'/72/'|replace:'http:/72':'http:/'|replace:'.com':'.biz'}
<url>
  <loc>{$utmpNEWS}</loc>

{if $entry->formatpostdate}
  <lastmod>{$entry->formatpostdate|date_format:"%Y-%m-%d"}</lastmod>
{/if}
<priority>{$page->priority}</priority>
  <changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}


{capture assign='junk'}{Blogs numentries="10000"}{/capture}
{foreach from=$items item=entry}
{assign var=utmpBLOGS value=$entry->entryurl|replace:'//':'/51/'|replace:'http:/51':'http:/'}
<url>
  <loc>{$utmpBLOGS}</loc>
  <lastmod>{$entry->time|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
  <changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}


</urlset>
for more info on that just search here...


if it's not your user, then put it in debug or give us some log... hard to say this is what is the issue if all we know is your having issues... Hope this help...
cheers
jeremyBass
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Sitemap ?

Post by skateoroma »

Thanks JeremyBASS...

I manually created the file and uploaded it to root.  Will the uploaded file get updated automatically as the site is modified?  I set sitemap to use the automatic feature.

Thanks again
JeremyBASS

Re: Sitemap ?

Post by JeremyBASS »

well... it's possible... but I'd lean towards that if it's is cause you can't write to the file do to permissions you'll have to fix that and then yes it'll up date...
DonnaNJ
Forum Members
Forum Members
Posts: 40
Joined: Mon Nov 19, 2007 6:08 pm

Re: Sitemap ?

Post by DonnaNJ »

skateoroma wrote:
I still can get this to work.

I copied the above template ... I created a blank sitemap.xml file in public_html  I changed a few pages ...

But my XML file still returns an error.

http://www.littleangelsonlinestore.com/sitemap.xml

Does this SiteMapMade Simple really work anywhere ?

Is there another plug in or easy way to generate a site map?

HEEELLLPPP

thanks

Donna
JeremyBASS

Re: Sitemap ?

Post by JeremyBASS »

Site map perfectly on all my sites... do you get other errors... like can't install modules? or things of that nature? is the file not set 777...

try this if all is no...

Code: Select all

{* sitemap template *}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
	http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
{foreach from=$output item='page'}
<url>
  <loc>{$page->url}</loc>
  <priority>{$page->priority}</priority>
  <changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
</urlset>

if you want to see proof... look to here...
https://www.sjrmc.org/sitemap.xml


hope that helps
skateoroma
Forum Members
Forum Members
Posts: 25
Joined: Sat Dec 01, 2007 12:00 am

Re: Sitemap ?

Post by skateoroma »

I copied the contents that the sitemap module created into a blank sitemap.xml file, then uploaded it into the root directory.  The permissions on the file are set to 777, but the sitemap.xml file does not change when pages are modified.  If l look at the sitemap generated within the admin module, it display the correct dates for the modified pages.

What to I have to do to get the sitemap.xml file on the server to reflect the modified pages?

Thanks
JeremyBASS

Re: Sitemap ?

Post by JeremyBASS »

I'd check theEvents and see if it's tied to the post of eidt and such, if not then tie them on... that'll be a start... hope it's that :)
nlindq
Forum Members
Forum Members
Posts: 10
Joined: Fri Feb 01, 2008 2:11 am

Re: Sitemap ?

Post by nlindq »

JeremyBASS wrote: I'd check theEvents and see if it's tied to the post of eidt and such, if not then tie them on... that'll be a start... hope it's that :)
I had this exact same issue with CMSMS version 1.5.1 and the latest SitemapMadeSimple.  Directory permissions were set properly, but no sitemap.xml.  In the Event Manager, I associated SitemapMadeSimple with ContentEditPost and then made a minor change to a content page.  Finally the sitemap.xml was generated!

Is there some way to have a module associate itself with events when it's first installed?
JeremyBASS

Re: Sitemap ?

Post by JeremyBASS »

well I worked find for me.. so it's more of a bug to report... since there are to of you... you should do so.

cheers
jeremyBass
Locked

Return to “[locked] Installation, Setup and Upgrade”