[pmwiki-users] AddDeleteLine version 2.0beta2

Pico pmwiki at ben-amotz.com
Fri Sep 22 17:05:19 CDT 2006

Martin Fick wrote:
> --- Nils Knappmeier <nk at knappi.org> wrote:
>> If you like, you can put your ideas at the bottom of
>> the cookbook page, and when I find the time, I 
>> might implement it.
> Sure, would you merge contributions if I code them? :)
>>> 1) Allow multiple things to be appended in one
>>>    pass so that if a form uses radio buttons to 
>>>    allow multiple items in a list to be selected, 
>>>    they could all be appended at the same spot. 
>> I don't really understand this one.
>> Do you have a specific application for that? Or is
>> it just nice to have?
> Imagine a pagelist template with a checkbox for each
> page.  I want to be able to select pages from a list
> and paste them all to another page to automatically
> create a new wiki trail!
Yes, please.  I've been want that too.  (The new links appended to the 
wikitrail index should still have delete links to allow list items to be 
removed from the trail).
>>> 2) Allow a special input form markup, maybe (:adl
>>> pagebottom:) and (:adl pagetop:), which cause
>>> stuff to be ap/pre-pended to a page even if there 
>>> is no (:adl append|prepend:) on the page.  
> ...
>> This should be an easy one. I might do this some
>> time.
> Again, usefull to create trails without a preexisting
> page.  The user can specify which page with a form
> element.
>>> 3) An option to filter out blanks entries
>>>    (especially valuable with option #1 if using 
>>>    multiple textboxes with the same name.)
> ...
>> Multiple textboxes with the same name? I don't think
>> this is possible in HTML. 
> Sure, I do it all the time.  PHP is set to handle it
> nicely if you name your form elements like this:
>   name="Category[]"
> PHP will put each one nicely in an array named
> $_GET["Category"] for you.
>> I don't really see the need for this one.
>> Or maybe I don't understand it.
> OK, now imagine a form which sits in a GroupFooter
> which allows users to easily Cagtegorize pages in that
> group.  The form might have about 5 text boxes named
> Category[], and if any of them are filled out when the
> form is submitted, than the categories will get
> appended to the end of the page.  
> This probably would be implemented with a special
> cookie based browsing mode which would turn on/off
> this form so that it is not usually visible.  It would
> really make overhauling categories on a site much
> easier.
> Another way to do this would be with a single text box
> and some special templating feature that could
> identify elements separated by commas and potentially
> append them each with the same template.  Something
> like this
>   (:adl csvtemplate "* [[!{Category}]]":)
> which would repeat the append for each comma separated
> value in the Category text field.
>>> 4) This one is probably a no-go, but I figured I'd
>>> mention it anyway.  Specify a trail in the input
>>> form and add the specific data to ALL the pages on
>>> the trail!
>> Same thing here. When would somebody want to do
>> that?
> Building on the previous ideas.  Imagine if I am
> trying to categorize many pages at once.  This is
> particularly usefull for me since I categorize my
> photos and I would like to be able to look at them all
> and pick out individuals in the photos and use their
> names as a category.  Allowing users to view my
> collection by person/location...
> So, the plan was to have a pagelist with checkboxs
> (and thumbnails for each page) allowing me to select
> pages that have a specific person on them.  All these
> selected pages would create a trail.  The new trail
> page would have a form allowing me to input the
> category (the name of the person).  This category
> would then be appended to all the pages on the trail
> page!
> A little convoluted, maybe, but each phase is valuable
> in its own right and the two stage application of
> categories is nice since it allows me to first select
> the pages and review them before applying the
> category(ies) to each page.
> Like I said... I have big plans for your nifty recipe.
> :)

Beyond gallery applications, I was thinking of all sorts of other pick 
list situations, including, for example:

A school wiki where each class has its own home page, where those home 
pages are pagelisted by categories so that students can make an initial 
pick of everything that sounds interesting, and then they can go to 
their class pick page and start eliminating entries as they narrow down 
their choices.

A college counseling wiki where the same process occurs, only with 
prospective colleges: each college gets its own home page, where 
categories are added, which are used by pagelists to generate possible 
choices, which are added to profile pages, where items contain delete 


         __  /
        /   /
       /___/ _/  ___/  __  /
      /      /  /     /   /
    _/     _/  ____/ ____/

 >>>===pmwiki at ben-amotz.com===>

More information about the pmwiki-users mailing list