On 1/18/2015 5:51 AM, sini-Kit wrote:
it don't work on my http://heeg.ru/heeg.html when I open sitemap tiddler I get a red mistake "substring" NULL
 version of tw is *5.1.5*

Interesting.

It looks like your site is a "live" Javascript-enabled TW, not a statically-generated set of pages. I didn't really have that use case in mind when I built the plugin, but it should still work.

The only place in my plugin that uses /substring/s is in a date formatting function in /sitemapentries.js/, taking TW's internal date format, such as:

   20141123155239707

...and converting it to the format sitemap wants:

   2014-11-23

(Sitemap doesn't care about the time portion, and Google's verifier will throw a warning if it is included.)

The function just appends three /substring/s of the TW date string, plus two hyphens:

   XML.twDateToWebDate = function(twDate) {
        return twDate.substring(0, 4) + "-" + twDate.substring(4, 6) + "-" + 
twDate.substring(6, 8);
   }

So, if the error is happening in my code, that tells me there is a tiddler or tiddlers without a /modified /field. I would have always expected that field to get created (it seems to on any tiddlers I create). I wonder if some system tiddlers are built without the /modified /field? Does anyone else know?

When you use the plugin, are you passing it a filter to filter out system tiddlers?

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to