[pmwiki-users] Questions for creating a recipe - what are all the cool functions?
Peter Kay
petya_98 at yahoo.com
Sun Apr 29 23:53:43 CDT 2007
The Editor wrote:
> On 4/29/07, Peter Kay <petya_98 at yahoo.com> wrote:
>> Hello everyone! We've got PmWiki, and, like so many others, I find I
>> want to extend it. However, I'm a little fuzzy on where to start, and
>> I'm hoping you here can give me some pointers.
>>
>> First, a brief description of what I'd like to do: I would like to
>> modify the idea of the "Tabledit" to allow editing a block of text in a
>> page by clicking on it. So, for example, I'd like to have "My hair is
>> (:sometag:)green(:sometagend:)" and have it render as a link around
>> "green" upon which clicking a new page would appear that would allow
>> editing it.
>
> If you care to look, ZAP has built in functions that allow you to
> create sections in a page and edit/delete them (even trim or sort).
> They are defined by anchors however. Take a look at the edit and
> insert commands (in the toolbox) at www.zapsite.org for details.
Dan, thanks,
ZAP looks really intriguing (and quite powerful - I may end up using it
in a different part of my project whether or not it works for this).
I assume you're referring to the "edit" tool (is "tool" the correct
word?). It seems like I would have to have something like:
(:zapform key=form1:)
(:zap edit="Group.Name#ID" form1:){(source Group.Name#ID)}
(:input submit value="Update":)
(:zapend:)
//Have to have the actual text stored somewhere as well, right?
It seems like this might be a bit complicated if I want to have
say...30-40 different bits on a page :) Still, this is very exciting -
there are lots of possibilities.
> PS. As usual, if you don't need the whole toolbox, just cut out the
> functions you need and delete the rest.
This is to reduce load on the server, or security, or what?
Where is the best place to address Zap-related questions? I suspect I'm
going to have some (errr...lots)!
---------
Hans, thanks - those seem to be exactly the pages I was looking for!
--Peter
More information about the pmwiki-users
mailing list