Rah's Sitemap

Rah_sitemap is a sitemap plugin for Textpattern CMS. Easily build valid Sitemap.orgXML sitemaps for search engines, including Google. Supports categories, sections, articles and even custom URLs. All settings can be managed from clean interface. No dive to code required.

Permlink schemes and rules

Rah_sitemap version 0.4 included a new feature: permlink settings. These setting, found in the panel, will let you define the permlink form for the URLs in the Sitemap. This is a ideal tool for matching the URLs to your own .httaccess rules or a plugin created custom URL rules. If you want to use in-build urls defined by Textpattern itself, you can leave these setting unset.

Article permlinks

These URL settings are used for articles that appear in the sitemap. To form the URLs you can use any individual article context’s <txp:/> tag. Big shots like <txp:permlink />, <txp:posted />, <txp:title />, <txp:category1 />, <txp:category2 />, <txp:section />, <txp:if_article_author />, <txp:if_article_category />, <txp:if_article_id /> and so on.

Category permlinks

These URL settings are used for Category links that appear in the sitemap. To form the URLs you can use plain category context TXP tags <txp:category /> and <txp:if_category />. The plugin also provides two extra tagish tags, [type] and [id] which will basically output category’s type and id.

Now compression level field’s label now links to the correct field id.

Now suppresses E_WARNING/E_STRICT notices in live mode caused by Textpattern’s timezone code when some conditions are met (TXP 4.2.0, PHP 5.1.0+, TXP’s Auto-DST feature disabled, TXP in Live mode). Error suppression will be removed when TXP version is released with fully working timezone settings.

Now generates UNIX timestamps within the SQL query, not with PHP.

Changed sliding panels’ links (a elements) into spans.

Version 0.7

Fixed: now deleting custom url leads back to the list view, not to the editing form.

Removed some leftover inline styles from v0.6.

Version 0.6

Rewritten the code that generates 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 formatted 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.xmlURLs will return the sitemap, not just the /?rah_sitemap=sitemap. This will of course require existing fully working clean urls.

Version 0.5

Added customizable timestamp formats.

Cleaned backend markup.

Combined individual preference queries.

Version 0.4

Added support for custom permlink rules: Now you can easily set any kind of permlink rules for articles, section and categories.

Added option to exclude future articles.

Added option to exclude past articles.

Added option to exclude expired articles.

Moved Custom URL UI to it’s own page.

Added multi-delete feature to Custom URL UI.

Improved Custom URL UI.

Removed default static appending domain from Custom URL input field.

Changed TXP minimum requirement to version 4.0.7 (and above). Note that the plugin still works with older TXP versions (down to 4.0.5) if the Exclude Expired articles -option is left empty (unset).

Version 0.3.2

Fixed view url that still (from version 0.2) included installation address before link.