I'm having problems with the ImportText recipe.

http://www.pmwiki.org/wiki/Cookbook/ImportText

The description says:
"...the script updates the corresponding page in wiki.d with the text of the file as if it had been posted through the normal edit process."

I have pages where the title and content are generated dynamically on the page call.
So my pages contain only 2 directives:

(:titleinclude:)
(:slike:)

If I create such a page manually and save it, then the correct, generated title is saved along the page. Also the targets field gets populated.

If I create or update such a page via the ImportText, then the above doesn't happen.

How do I make the import truly behave as a manual edit?

I have attached 2 file contents, one generated manually, one via the ImportText recipe.

Anno
version=pmwiki-2.2.0-beta62 ordered=1 urlencoded=1
agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
author=Gregor
charset=UTF-8
csum=
ctime=1199629712
host=xxx.xxx.41.158
name=Slike.PsathyrellaArtemisiae
rev=1
targets=Gobe.PsathyrellaArtemisiae
text=(:titleinclude:)%0a(:slike:)
time=1199629712
title=Slike - Psathyrélla artemísiae, nakosmičena črnivka - neužitna
author:1199629712=Gregor
diff:1199629712:1199629712:=1,2d0%0a%3c (:titleinclude:)%0a%3c (:slike:)%0a\ No 
newline at end of file%0a
host:1199629712=84.119.41.158
version=pmwiki-2.2.0-beta62 ordered=1 urlencoded=1
agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
author=ImportText
charset=UTF-8
ctime=1199629618
host=xxx.xxx.41.158
name=Slike.PsathyrellaArtemisiae
rev=1
targets=
text=(:titleinclude:)
%0a(:slike:)
time=1199629618
author:1199629618=ImportText
diff:1199629618:1199629618:=1,2d0%0a%3c (:titleinclude:)
%0a%3c (:slike:)%0a\ No newline at end of file%0a
host:1199629618=84.119.41.158
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to