Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#109 2010-11-01 14:40:01

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

Re: rah_sitemap

Gallex wrote:

on first visit to plugin preferences page after latest update, this message appeared:

Possibly your server’s fault. It shouldn’t even let the query run twice.

Offline

#110 2010-11-02 17:35:37

scottcal
Member
From: Encinitas, CA
Registered: 2010-09-04
Posts: 21
Website

Re: rah_sitemap

Hi Gallex this might help….

I have to use php 4. In the timestamp field I use ‘Y-m-d’ with the quotes. I also modified the plugin a bit. So post your email addy if your still having problems and I’ll send you the code.

Last edited by scottcal (2010-11-02 17:36:38)

Offline

#111 2010-11-03 11:13:24

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: rah_sitemap

no, last update solved all. thank’s for help

Offline

#112 2011-01-19 22:19:27

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: rah_sitemap

Hi Jukka

I’ve only just taken this for a spin. Nice work, as ever.

I’ve got a question about custom permlinks. I’m a hopeless gbp_permanent_links addict and regularly apply different permlink rules per section and other things that (I think) aren’t possible to map onto rah_sitemap URL prefs.

What I’m wondering is how much of a rewrite would be required to make rah_sitemap automatically pick up rules set by gbp_permanent_links. Is it even feasible? It’s all black magic to me.

Offline

#113 2011-01-20 05:53:44

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

Re: rah_sitemap

pieman wrote:

I’ve only just taken this for a spin. Nice work, as ever.

Thanks Stuart :-)

What I’m wondering is how much of a rewrite would be required to make rah_sitemap automatically pick up rules set by gbp_permanent_links. Is it even feasible? It’s all black magic to me.

It’s possible yes, for the most part at least. Things that might not work are faux section+category rules (as in, different rules for categories on different section pages, as categories are not attached to sections) and possibly some other advanced stuff.

In fact rah_sitemap does already use TXP’s inbuild URL functions, and so, does use custom_url_func if one is defined. This means that plugins can freely modify the URLs rah_sitemap spits out.

If gbp_permanent_links uses TXP’s inbuild custom URL functions (sorry, I have no idea if it does, but it most likely does), and the rules don’t register, it’s probably up to the point where gbp_permanent_links’ code is loaded. Possibly rah_sitemap is initialized first and gbp_permanent_links’ code isn’t picked up. Plugin’s load_order or used callback could be the reason, rah_sitemap itself is loaded as soon as possible.

And umm, also, tags can be used in the URL rule fields. For example, you can use conditional tags in the fields, for example if you want to do faux URLs.

Last edited by Gocom (2011-01-20 05:56:58)

Offline

#114 2011-01-20 11:07:10

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: rah_sitemap

Thanks for that Jukka. I’ll play with load orders and report back if anything exciting happens.

Offline

#115 2011-01-20 14:10:39

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

Re: rah_sitemap

pieman wrote:

Thanks for that Jukka. I’ll play with load orders and report back if anything exciting happens.

No problem. Did some tests and it worked. Changed Graeme’s plugins’ load orders to 4 while kept rah_sitemap at 5, and well, it worked.

Only possibly bad thing is that gbp_permanent_links seems to build all permanent (article) URLs without the prepending site’s URL, unlike TXP. Sitemap.org protocol requires the URL to start with a protocol. I hope the plugin has some setting to control that.

Last edited by Gocom (2011-01-20 14:15:29)

Offline

#116 2011-01-20 14:16:04

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: rah_sitemap

Gocom wrote:

Did some tests and it worked. Changed Graeme’s plugins’ load orders to 4 while kept rah_sitemap at 5, and well, it worked.

Great news, thanks for checking it.

Only possibly bad thing is that gbp_permanent_links seems to build all permanent (article) URLs without the prepending site’s URL. Sitemap.org protocol requires the URL to start with a protocol. I hope the plugin has some setting to control that.

So we just need to inject <txp:site_url /> at applicable points. I’m sure we can manage that. Thanks again.

Offline

#117 2011-01-20 14:24:22

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

Re: rah_sitemap

pieman wrote:

So we just need to inject <txp:site_url /> at applicable points. I’m sure we can manage that. Thanks again.

Pretty much. For example, gbp_permanent_links could be modified to output URLs in same format as TXP (or if there is an option include site URL that would work too), or you could try to use something (stupid :p) like http://domain.com<txp:permlink /> in rah_sitemap’s URL preferences.

Last edited by Gocom (2011-01-20 14:26:16)

Offline

#118 2011-03-09 00:43:38

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

Re: rah_sitemap

Released version 1.2 of rah_sitemap. Changes:

  • Added: adds site URL to relative article permlinks. Basically a fix for gbp_permanent_links.
  • Changed: from permlinkurl_id() to permlinkurl(). Greatly reduced the amount of queries generating article permlinks makes.

More info and downloads

Offline

#119 2011-03-23 16:38:19

vurt
Member
Registered: 2010-10-22
Posts: 50

Re: rah_sitemap

Love this plugin. Using the new v 1.2.

Wondering why my file download urls like this aren’t being picked up in the sitemap:

http://www.mysite.com/file_download/14/myfile.pdf

All relevant sections, categories, and file-type category URLs are not excluded in the admin.

Offline

#120 2011-03-23 17:38:53

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

Re: rah_sitemap

vurt wrote:

Love this plugin. Using the new v 1.2.

Glad to hear that :)

Wondering why my file download urls like this aren’t being picked up in the sitemap […] All relevant sections, categories, and file-type category URLs are not excluded in the admin.

You did nothing wrong. Downloads just are not part of the sitemap.

Offline

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

Board footer

Powered by FluxBB