Re: [pmwiki-users] fun with forms

2007-04-19 Thread SteP
Patrick R. Michaud wrote: > Comments and questions welcomed Q: With this type of forms processing, would it be possible to show an array of pages with a tick (or text) item next to each page name and a single submit button that changes the ticked value in each of the target data pages? This sh

Re: [pmwiki-users] Stop (:include:) wrapping content in

2007-04-19 Thread Patrick R. Michaud
On Fri, Apr 20, 2007 at 12:03:54PM +1000, [EMAIL PROTECTED] wrote: > Hi, > > When using (:include:) on the html template, for example in the following > case: > > > > It wraps the content of Group.Sidebar in preformatted text () > tags, which loses any html within the content. > > Is there a

Re: [pmwiki-users] Fun with forms - 3 ideas

2007-04-19 Thread Petko Yotov
On Friday 20 April 2007 03:05, Patrick R. Michaud wrote: > > 1. We need some kind of form validation, or at least, a way to write a > > function that will intercept the posted data and decide to filter, > > sanitize, save it or not. > > I'm leaving this as recipes for now... but we can also do > ja

[pmwiki-users] Stop (:include:) wrapping content in

2007-04-19 Thread Garth . J . McMillan
Hi, When using (:include:) on the html template, for example in the following case: It wraps the content of Group.Sidebar in preformatted text () tags, which loses any html within the content. Is there a way to stop the include wrapping it in tags? Ideally, I'd like to be able to do someth

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 08:40:45PM -0400, Crisses wrote: > On Apr 19, 2007, at 6:46 PM, Patrick R. Michaud wrote: > > >On Thu, Apr 19, 2007 at 06:13:29PM -0400, The Editor wrote: > >>3) What happens if a matching PTV can't be found on the target page, > >>does it insert it? > > > >Not yet -- I'm s

Re: [pmwiki-users] Fun with forms - 3 ideas

2007-04-19 Thread Patrick R. Michaud
On Fri, Apr 20, 2007 at 02:40:25AM +0200, Petko Yotov wrote: > Sorry to not replying in the right thread, but I lost the first message... > > 1. We need some kind of form validation, or at least, a way to write a > function that will intercept the posted data and decide to filter, sanitize, > sa

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Crisses
Wow, I just had this feeling before working on a form that this may be the day to ask Patrick whether form->pagetextvar was happening. Hrm... :) And by the clock figured it was unlikely he'd be in the IRC channel. So peeked at the recent list... and wow. I really like it! On Apr 19, 2007

[pmwiki-users] Fun with forms - 3 ideas

2007-04-19 Thread Petko Yotov
Sorry to not replying in the right thread, but I lost the first message... This is a very nice recipe, I am very glad that Patrick did it, we can be sure it will work well and safely. As I've been tinkering with something like this, may I share some ideas? 1. We need some kind of form validatio

Re: [pmwiki-users] Farm Setup Questions

2007-04-19 Thread H. Fox
On 4/19/07, The Editor <[EMAIL PROTECTED]> wrote: > I'm trying to simplify my installation and had a couple farm questions... > > 1) If I'm want to keep all my recipes in the central "home" cookbook > rather than multiple copies in each field, what settings do I need for > that? For a recipe scrip

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Kathryn Andersen
On Thu, Apr 19, 2007 at 06:23:47PM -0500, Patrick R. Michaud wrote: > On Thu, Apr 19, 2007 at 04:02:43PM -0700, Martin Fick wrote: > > -Add Summary field to page if it doesn't already exist > > (:input text +location$:Summary :) > > -Delete Date field from page if it is left blank > > (:input t

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Jon Haupt
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > ... I'll bet with a simple 1-5 star-based rating > > system you could just somehow change a PTV to itself + whatever was > > posted to the form and then display a rating based on the average of > > what's currently there. > > While it ce

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Fri, Apr 20, 2007 at 08:06:21AM +1000, Kathryn Andersen wrote: > On Thu, Apr 19, 2007 at 02:08:46PM -0500, Patrick R. Michaud wrote: > > Just to sneak peek how my version of forms processing is > > coming along, take a look at: > > > > > > http://www.pmwiki.org/wiki/Cookbook/SimpleRating?ac

Re: [pmwiki-users] Summary lines in cookbook recipe info

2007-04-19 Thread H. Fox
On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Wed, 18 Apr 2007, Patrick R. Michaud wrote: > > > > > No, I think I prefer the groups to not have the Cookbook prefix. Or if > > they do, please use a hyphen in the group name. > > Is there some page with information/instructions for aut

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 04:02:43PM -0700, Martin Fick wrote: > --- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > So far I'm not planning to use this interface to > > completely remove page text variables from pages. > > > > > 3) What happens if a matching PTV can't be found > > > on the targ

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 06:04:15PM -0500, Ben Stallings wrote: > Patrick R. Michaud wrote: > >request=1 means load input defaults from whatever form submission might > >have led to the current one. For example, if I fill out some fields > >in a form, hit submit, and some sort of processing error o

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Ben Stallings
Patrick R. Michaud wrote: > request=1 means load input defaults from whatever form submission might > have led to the current one. For example, if I fill out some fields > in a form, hit submit, and some sort of processing error occurs that > returns me back to the form, I want the fields to still

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Martin Fick
--- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > So far I'm not planning to use this interface to > completely remove page text variables from pages. > > > 3) What happens if a matching PTV can't be found > > on the target page, does it insert it? > > Not yet -- I'm still figuring out how I

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 03:21:04PM -0500, Jon Haupt wrote: > On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >See the example I just added to the bottom of > > > >http://www.pmwiki.org/wiki/Cookbook/SimpleRating > > > Oh wow, excellent! > > Well, you're probably way ahead of me and

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 06:13:29PM -0400, The Editor wrote: > Just a few initial questions: > > 1) This only stores/updates info in hidden PTV formats? No other kinds > of text vars? It goes into any type of PTV. It's extensible so that sites with other PTV formats can make use of it. > 2) Are

Re: [pmwiki-users] fun with forms

2007-04-19 Thread The Editor
Just a few initial questions: 1) This only stores/updates info in hidden PTV formats? No other kinds of text vars? 2) Are you thinking of a way to erase a data var, or only allow its value to be cleared, but leave the (:field: :) on the target page. 3) What happens if a matching PTV can't be fou

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 01:34:06PM -0700, Martin Fick wrote: > --- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 19, 2007 at 03:13:14PM -0500, Patrick R. > > Michaud wrote: > > > > Then our input controls would be: > > > > (:input text $:Summary :) > > (:input text $:Ver

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Kathryn Andersen
On Thu, Apr 19, 2007 at 02:08:46PM -0500, Patrick R. Michaud wrote: > Just to sneak peek how my version of forms processing is > coming along, take a look at: > > > http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm Fantastic! I eagerly await its r

Re: [pmwiki-users] a simple rating system for recipes

2007-04-19 Thread Kathryn Andersen
On Thu, Apr 19, 2007 at 03:14:41PM +, Sandy wrote: > Number of downloads can be deceiving. E.g., on tucows, the first on the list > has > millions of downloads, promises miracles, only 9kb to download. Sure, lots of > us > will download it, learn it crashes our system, and most likely move on

Re: [pmwiki-users] Possible markup bug mixing links/title and size

2007-04-19 Thread Dominique Faure
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Apr 19, 2007 at 11:15:09PM +0200, Dominique Faure wrote: > > Hi, > > > > I fear I found a bug occuring when mixing link's titles and size styles: > > > > (:markup caption='bug with link title?':) [= > > * this work: [-[[{$FullName}

Re: [pmwiki-users] Possible markup bug mixing links/title and size

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 11:15:09PM +0200, Dominique Faure wrote: > Hi, > > I fear I found a bug occuring when mixing link's titles and size styles: > > (:markup caption='bug with link title?':) [= > * this work: [-[[{$FullName}|+]]-] > * this is broken: [+[[{$FullName}|+]]+] > * this work with an

[pmwiki-users] Possible markup bug mixing links/title and size

2007-04-19 Thread Dominique Faure
Hi, I fear I found a bug occuring when mixing link's titles and size styles: (:markup caption='bug with link title?':) [= * this work: [-[[{$FullName}|+]]-] * this is broken: [+[[{$FullName}|+]]+] * this work with an extra space: [+[[{$FullName}|+ ]]+] * this is broken: [+'''[[{$FullName}|+]]'''+

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 03:39:00PM -0500, Ben Stallings wrote: > Pm wrote, > > Just to sneak peek how my version of forms processing is > > coming along, take a look at: > > > > > > http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm > > > > Comments

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 01:34:06PM -0700, Martin Fick wrote: > --- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > > On Thu, Apr 19, 2007 at 03:13:14PM -0500, Patrick R. > > Michaud wrote: > > > > Then our input controls would be: > > > > (:input text $:Summary :) > > (:input text $:

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Ben Stallings
Pm wrote, > Just to sneak peek how my version of forms processing is > coming along, take a look at: > > > http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm > > Comments and questions welcomed. That's very slick. Nice clean syntax, and the ramific

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Martin Fick
--- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > On Thu, Apr 19, 2007 at 03:13:14PM -0500, Patrick R. > Michaud wrote: > > Then our input controls would be: > > (:input text $:Summary :) > (:input text $:Version :) > (:input text $:Prerequisites :) > Now that's elegant and obv

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Jon Haupt
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Apr 19, 2007 at 02:18:35PM -0500, Jon Haupt wrote: > > On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > >Just to sneak peek how my version of forms processing is > > >coming along, take a look at: > > > > That works re

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 03:13:14PM -0500, Patrick R. Michaud wrote: > Another possibility is to prefix the elements in the form > with "ptv_" or something like that but that's a bit > less elegant. Or, if HTML/XHTML allows it, we could always simply include the '$:' prefix for the page text v

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 12:35:14PM -0700, Martin Fick wrote: > --- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: > > >http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm > ... > > The form really does work -- if you change any of > > the fields in the f

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 02:18:35PM -0500, Jon Haupt wrote: > On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >Just to sneak peek how my version of forms processing is > >coming along, take a look at: > > That works really well. I have a comment and a question: > > Comment: Somehow, i

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread The Editor
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Apr 19, 2007 at 02:33:58PM -0400, The Editor wrote: > > >> It would be very nice to be able to accurately store pagelists in > > >> PTV's. > > > > > >The phrase "store pagelists in PTV's" doesn't quite make sense > > >to me. Exact

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Martin Fick
--- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote: >http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm ... > The form really does work -- if you change any of > the fields in the form and save, then the > corresponding fields of the target page will ch

Re: [pmwiki-users] fun with forms

2007-04-19 Thread Jon Haupt
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > Just to sneak peek how my version of forms processing is > coming along, take a look at: > > > http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm > > This says that we want to edit the Cookbook

[pmwiki-users] fun with forms

2007-04-19 Thread Patrick R. Michaud
Just to sneak peek how my version of forms processing is coming along, take a look at: http://www.pmwiki.org/wiki/Cookbook/SimpleRating?action=edit&editform=Cookbook.RecipeInfoForm This says that we want to edit the Cookbook.SimpleRating page, but we want to use Cookbook.RecipeInfoForm as the

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 02:33:58PM -0400, The Editor wrote: > >> It would be very nice to be able to accurately store pagelists in > >> PTV's. > > > >The phrase "store pagelists in PTV's" doesn't quite make sense > >to me. Exactly what text do you want the page text variable to > >contain? > > [.

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread The Editor
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Apr 19, 2007 at 01:47:28PM -0400, The Editor wrote: > > On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > >On Wed, Apr 18, 2007 at 04:38:16PM -0400, The Editor wrote: > > >> > $MarkupExpr['wiki'] = 'MkExpExtWiki($params

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 01:47:28PM -0400, The Editor wrote: > On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > >On Wed, Apr 18, 2007 at 04:38:16PM -0400, The Editor wrote: > >> > $MarkupExpr['wiki'] = 'MkExpExtWiki($params)'; > > > >In the comments at the top of markupexpr.php, it reads:

Re: [pmwiki-users] How to Selflink an Action?

2007-04-19 Thread Ben Wilson
I suppose the problem is that when I am in edit mode, the ?action=edit link is not .selflink. I can handle the CSS afterward, but the selflink does not work. On 4/17/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Tue, Apr 17, 2007 at 08:32:22AM -0400, Ben Wilson wrote: > > PmWiki has '.sel

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread The Editor
On 4/19/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Wed, Apr 18, 2007 at 04:38:16PM -0400, The Editor wrote: > > Second post on a couple problems with the Markup Expressions > > Extensions recipe, I'd like to resolve... > > > > On 4/16/07, The Editor <[EMAIL PROTECTED]> wrote: > > > In t

Re: [pmwiki-users] MarkupExpressionsExtensions

2007-04-19 Thread Patrick R. Michaud
On Wed, Apr 18, 2007 at 04:38:16PM -0400, The Editor wrote: > Second post on a couple problems with the Markup Expressions > Extensions recipe, I'd like to resolve... > > On 4/16/07, The Editor <[EMAIL PROTECTED]> wrote: > > In trying to finish up this recipe I came up with a bug... > > > >

Re: [pmwiki-users] help with (:if and :) statement

2007-04-19 Thread Tegan Dowling
(:toc:) numbers the headings on the page, and numbers the links to them in the toc (:*toc:) doesn't number the headings on the pge, and makes a bulleted list of the links in the toc On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Thu, 19 Apr 2007, Patrick R. Michaud wrote: > > >> Thi

Re: [pmwiki-users] Farm Setup Questions

2007-04-19 Thread The Editor
On 4/19/07, Neil Herber (nospam) <[EMAIL PROTECTED]> wrote: > The Editor wrote: > > I'm trying to simplify my installation and had a couple farm questions... > > > > 1) If I'm want to keep all my recipes in the central "home" cookbook > > rather than multiple copies in each field, what settings do

Re: [pmwiki-users] Farm Setup Questions

2007-04-19 Thread Neil Herber (nospam)
The Editor wrote: > I'm trying to simplify my installation and had a couple farm questions... > > 1) If I'm want to keep all my recipes in the central "home" cookbook > rather than multiple copies in each field, what settings do I need for > that? > > 2) Similarly, if I only want to upgrade the w

[pmwiki-users] Farm Setup Questions

2007-04-19 Thread The Editor
I'm trying to simplify my installation and had a couple farm questions... 1) If I'm want to keep all my recipes in the central "home" cookbook rather than multiple copies in each field, what settings do I need for that? 2) Similarly, if I only want to upgrade the wikilib.d folder in the "home" in

Re: [pmwiki-users] a simple rating system for recipes

2007-04-19 Thread Sandy
Dr Fred C verizon.net> writes: > > Patrick R. Michaud wrote: > > There's been a lot of discussion in the past about coming up > > with a rating system for cookbook recipes. Ben Wilson has > > a recipe at [2], but I wanted to try something even simpler. > > > > Take a look at http://www.pmwiki.o

Re: [pmwiki-users] Summary lines in cookbook recipe info

2007-04-19 Thread the Other michael
I think in any case, a recipe page w/in the cookbook is still a good idea -- there are a number of different search-types that don't bring up category-tags. The cookbook is then a portal to the larger group, where there can be more demos, talk-talk-talk, etc. -the Other michael http://www.xradio

Re: [pmwiki-users] help with (:if and :) statement

2007-04-19 Thread christian . ridderstrom
On Thu, 19 Apr 2007, Patrick R. Michaud wrote: This seems useful... here's a modified version (untested though) that I assume goes into .GroupHeader. (:if expr ! equal "{*$:toc}" "no" :)(:*toc:)(:ifend:) Using this, all pages that do _not_ contain the following line (:toc: no:

Re: [pmwiki-users] help with (:if and :) statement

2007-04-19 Thread Patrick R. Michaud
On Thu, Apr 19, 2007 at 09:42:15AM +0200, [EMAIL PROTECTED] wrote: > On Wed, 18 Apr 2007, Patrick R. Michaud wrote: > > >Shorter: > > This seems useful... here's a modified version (untested though) that I > assume goes into .GroupHeader. > > (:if expr ! equal "{*$:toc}" "no" :)(:*toc:)(:

[pmwiki-users] wikicalendar question

2007-04-19 Thread SteP
Hi everyone, I would like to display a calendar for a fixed range, April- July 2007 and never change that range, is it possible with Cookbook.WikiCalendar? TIA --Step ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mail

Re: [pmwiki-users] help with (:if and :) statement

2007-04-19 Thread christian . ridderstrom
On Wed, 18 Apr 2007, Patrick R. Michaud wrote: Shorter: This seems useful... here's a modified version (untested though) that I assume goes into .GroupHeader. (:if expr ! equal "{*$:toc}" "no" :)(:*toc:)(:ifend:) Using this, all pages that do _not_ contain the following line

Re: [pmwiki-users] Summary lines in cookbook recipe info

2007-04-19 Thread christian . ridderstrom
On Wed, 18 Apr 2007, Patrick R. Michaud wrote: No, I think I prefer the groups to not have the Cookbook prefix. Or if they do, please use a hyphen in the group name. Is there some page with information/instructions for authors of recipes? This information should go there. Hmm... htt