xoops forums

Monika

Not too shy to talk
Posted on: 2009/5/7 4:46
Monika
Monika (Show more)
Not too shy to talk
Posts: 103
Since: 2008/12/19
#1

Sitemap new pages

Hi,
I have added some new html pages to my site, and the sitemap module doesn't detect them, please is there any way to add them to my sitemap before i submit it to google?

Thanks in advance

Monika

Not too shy to talk
Posted on: 2009/5/7 20:30
Monika
Monika (Show more)
Not too shy to talk
Posts: 103
Since: 2008/12/19
#2

Re: Sitemap new pages

Anyone?

DarinAllan

Friend of XOOPS
Posted on: 2009/5/7 20:50
DarinAllan
DarinAllan (Show more)
Friend of XOOPS
Posts: 477
Since: 2005/5/18
#3

Re: Sitemap new pages

You could use the dummy module, rename it to I don't know, say "special" and place your pages in it's folder, still, the only link that will show up in Sitemap will be "Special" it won't have sub links as such. It will show up in your main menu etc. it acts just like a module as such.

If you look at the "Bookshop" link in this sitemap you will see it's actually just a html page with Amazon Books widgets and code.

Note: I haven't used it with multiple html pages, I have only needed the one index page within dummy, though I don't see why you couldn't add a few html pages that all link to each other from the dummy index page.

That's the only thing I can think of ;o)

Monika

Not too shy to talk
Posted on: 2009/5/8 1:56
Monika
Monika (Show more)
Not too shy to talk
Posts: 103
Since: 2008/12/19
#4

Re: Sitemap new pages

Hi thanks for the reply, the links to my html pages are in a custom block which is visible in Dummy.

So, I want these links to appear in sitemap, because now only the link to Dummy module is detected by sitemap.

Any other ideas please?

Catzwolf

Home away from home
Posted on: 2009/5/8 3:57
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#5

Re: Sitemap new pages

You need to create a site-map plugin for each dummy module

Monika

Not too shy to talk
Posted on: 2009/5/8 4:41
Monika
Monika (Show more)
Not too shy to talk
Posts: 103
Since: 2008/12/19
#6

Re: Sitemap new pages

Quote:

Catzwolf wrote:
You need to create a site-map plugin for each dummy module


Hi Catz
is it something difficult to do? Any tutorial on how to create plugins for sitemap please?

Catzwolf

Home away from home
Posted on: 2009/5/8 4:55
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#7

Re: Sitemap new pages

Lady,

You know what I am going to say to you right?

Email me and I will sort it out for you :)

Catz

DarinAllan

Friend of XOOPS
Posted on: 2009/5/8 10:42
DarinAllan
DarinAllan (Show more)
Friend of XOOPS
Posts: 477
Since: 2005/5/18
#8

Re: Sitemap new pages

Don't be afraid to let us know how you do it Catz lol ;o)

chefry

Home away from home
Posted on: 2010/6/3 12:45
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#9

Re: Sitemap new pages

yes. I need to know too ))

ghia

Community Support Member
Posted on: 2010/6/3 14:18
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#10

Re: Sitemap new pages

Check out the other examples of plugins for the other modules eg Pages.
You need to create a /plugins/modulename.php which has a function b_sitemap_modulename and returns an array with the id, url and title of the item. Copy also the permission check of the module so you add only items that are permitted to view in the sitemap.
For most modules these items are eg the categories retrieved from the database, but for the Ghost modules you can probably replace that by some fixed data.