[pmwiki-users] New recipe: Fox

Patrick R. Michaud pmichaud at pobox.com
Tue Dec 19 15:01:14 CST 2006


On Tue, Dec 19, 2006 at 08:48:57PM +0000, Hans wrote:
> Tuesday, December 19, 2006, 8:42:54 PM, Patrick wrote:
> 
> > Gee, that's odd.  Is the commenting doing more than just inserting
> > the new text into the page (i.e., is it somehow adjusting or modifying
> > the existing comments)?
> 
> Maybe it does it not very cleverly. Maybe you can show me a better
> way? It does things like:
> 
> $page['text'] = $addstring."\n".$page['text']
> 
> $addstring is the new processed entry, made from template and field
> values. Here it prepends the new entry to the text
> 
> or it does:
> 
> $textrows[$nr] = "$line\n".$addstring;
> 
> $textrows is an array of all text lines of the page text.
> Here it puts the new entry string after a line.

Those look okay to me -- perhaps you could create a sample
page on the sandbox site that demonstrates the type of page
history you're concerned about?

Pm




More information about the pmwiki-users mailing list