Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » rah_sitemap

#61 2010-03-26 23:11:20

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: rah_sitemap

Gocom wrote:

Depends how the plugins works and in which context.

Like this for example: <txp:site_url /><txp:l10n_get_lang />/<txp:section />/. The output is http://site.com//section-name/, and I would like to see for example http://site.com/en/section-name/.

There is no section on the page, neither category can define in which section it belongs.

Hmm… I see… I think ;) Fortunately on this particular site the category URLs are all in one section, so I can enter the section name instead of the tag. Now I only need to figure out how to get the language marker in the sitemap URLs…

Offline

#62 2010-05-30 08:19:57

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

Version 0.6 is now out. Changelog:

  • Rewriten the code that generetes the sitemap.
  • New admin panel look.
  • Now custom permlink modes and custom urls are escaped. Users can input unescaped URLs/markup from now on.
  • Now custom URL list shows the full formated URL after auto-fill instead of the user input.
  • Now custom URLs that start with www. are completed with http:// protocol.
  • Now all urls that do not start with either http, https, www, ftp or ftps protocol are auto-completed with the site’s address.
  • Custom url editor got own panel. No longer the form is above the URL list.
  • Added ability to manually turn gzib compression off and change the compression level.
  • Added setting to set zlib.output_compression off. See here, thank you for reporting superfly.
  • Preferences are now trimmed during save.
  • Merged rah_sitemap_update() with rah_sitemap_save().
  • From now on all new installations have default settings defined that will automatically exclude link, file and image categories from the sitemap. This won’t effect updaters.
  • Changed sitemap’s callback register from pre pretext to callback after it (callback is now textpattern). Now $pretext is set before the sitemap and thus more plugins might work within permlink settings and custom urls.
  • When using TXP’s clean URLs, requesting /sitemap.xml.gz and /sitemap.xml URLs will return the sitemap, addition to the /?rah_sitemap=sitemap. This will of course require existing fully working clean urls.

More info and downloads

Offline

#63 2010-05-30 11:58:16

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: rah_sitemap

Ooo very snazzy. ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#64 2010-05-30 12:51:54

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

Released small bug fix update. v0.7 brings:

  • Fixed: now deleting custom url leads back to the list view, not to the editing form.
  • Removed some leftover inline style from v0.6.

thebombsite wrote:

Ooo very snazzy. ;)

Thank you Stuart. You tried it already? ;) Now I know who was one of the two downloaders. Do you like the collapsing panels, or is the extra clicking annoying?

Offline

#65 2010-06-18 18:52:50

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: rah_sitemap

Hello. I’m using rah_sitemap for the first time, so this question may seem dumb.

When I create my sitemap.xml file for submission I see that your “xmlns” and codes differ a bit from mine. Basically, do I need to have the Google “xmlns” per my example below (which is what I’ve been using before) or should I simply use your version. And, I see there are dashes before each listing on your version.

YOUR VERSION:

<?xml version=“1.0” encoding=“utf-8” ?> - <urlset xmlns=“http://www.sitemaps.org/schemas/sitemap/0.9”> - <url> <loc>http://www.mywebsite.org/</loc> </url> - <url> <loc>http://www.mywebsite.org/about/</loc> </url> - <url> <loc>http://www.mywebsite.org/options/options-planning</loc> <lastmod>2010-06-16T14:32:14-04:00</lastmod> </url> </urlset>

MY VERSION:
<?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”> <url> <loc>http://www.mywebsite.org/</loc> </url> <url> <loc>http://www.mywebsite.org/about/</loc> </url> <url> <loc>http://www.mywebsite.org/options/options-planning</loc> <lastmod>2010-06-16T14:32:14-04:00</lastmod> </url> </urlset>

THANKS!


Living the Location-Independent Life: www.NuNomad.com

Offline

#66 2010-06-18 19:16:32

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

laptophobo wrote:

do I need to have the Google “xmlns” per my example below

No.

And, I see there are dashes before each listing on your version.

There are no dashes in the generated sitemap. You are probably meaning the styling your browser uses to display XML stuctures.

Offline

#67 2010-06-18 20:46:45

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: rah_sitemap

Oh, okay. But, how do I generate your sitemap? What I did was copy and paste using my browser (which is why I got the dashes).


Living the Location-Independent Life: www.NuNomad.com

Offline

#68 2010-06-19 04:29:45

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: rah_sitemap

Gocom wrote:

Do you like the collapsing panels, or is the extra clicking annoying?

I like the collapsing panels. Keeps most of the output above the fold unless you happen to have absolutely loads of sections or categories. As for the extra clicking, first of all I’m one of those older types that have learned that saving time isn’t all it’s cracked-up to be, but if I think about a good reason to give you it would be that once you have set it up there isn’t much need to keep visiting the page unless you create new sections and categories on a daily basis.

Heck Jukka! I’d shoot the person that invented the mobile phone if I could find him so my opinion about “extra clicks” could be construed as totally biased. ;)

Having the “Save” button at the bottom is a nice touch though. I always think that the bottom is where such a thing should exist.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#69 2010-06-19 10:05:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

laptophobo wrote:

Oh, okay. But, how do I generate your sitemap? What I did was copy and paste using my browser (which is why I got the dashes).

Generate what? Copy and paste what? You lost me. You shouldn’t generate anything, but let the plugin generate the sitemap automatically.

You should just make sure that Google knows about the sitemap location with either robots.txt or you can also inform Google using webmastertools. Webmaster Central / Updating sitemap. You should not copy paste anykind of file to anywhere. It would defeat the purpose.

thebombsite wrote:

I like the collapsing panels. Keeps most of the output above the fold unless you happen to have absolutely loads of sections or categories.

Cool :-) Thank you for sharing your thoughts, Stuart.

Offline

#70 2010-06-19 14:49:14

laptophobo
Member
Registered: 2010-03-01
Posts: 216
Website

Re: rah_sitemap

Have you read the Help page of rah_sitemap’s plug-in? Nowhere does it state that no separate, traditional, sitemap.xml file for Google is required. And, it does not explain how Google will be able to locate this self-generated sitemap. And there is no mentioning of robots.txt. My feeling is that the author of this very fine plug-in assumes way too much—that few newbies (such as myself) would automatically understand.

That said, thanks for the info. I’ll search Google to find out more about this robot.txt thing.


Living the Location-Independent Life: www.NuNomad.com

Offline

#71 2010-06-19 15:48:33

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_sitemap

laptophobo wrote:

Have you read the Help page of rah_sitemap’s plug-in? Nowhere does it state that no separate, traditional, sitemap.xml file for Google is required.

Sitemap is a protocol. I’m not stating what you should be doing with it, I’m just giving you the tools to generate dynamic sitemaps that follow Sitemap.org’s specs. The documentation gives a link to Sitemap.org which is the holder of the specs and gives you all the information about the protocol.

What the end-user does with the tool, is up to the user.

And, it does not explain how Google will be able to locate this self-generated sitemap.

Heh, think about it ;-) If the plugin dynamically generates the sitemap for you and it’s already on your server, why should you save it as a static file. But I’m not either saing you shouldn’t be doing it. Some might deliberately choose to save a static file to decrease database activity, etc.

The information how you deal with different seach-engines, is usually found from the search engine’s site and info about the actual protocol can be found from Sitemap.org.

Anyways, the docs does briefly state:

No need to create files nor set permissions, instead just use the plugin and eventually submit the sitemap URL to Google (via Webmaster tools) or other search engine. […] Then just activate the plugin and you are ready to use the sitemap.

That said, thanks for the info.

No problem. I hope you get your problem’s solved. If you have something to ask, just ask away.

Offline

#72 2010-06-21 07:04:18

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: rah_sitemap

Guys, i dont understand, how to stylize and how to add a sitemap to custom section ?


<txp:txp_me />

Offline

  1. Index
  2. » Plugin support
  3. » rah_sitemap

Board footer

Powered by FluxBB