[pmwiki-users] changing ptv's using an URL ?
Knut Alboldt
pmwiki at alboldt.de
Fri Sep 19 13:12:55 CDT 2008
Hans schrieb:
> Friday, September 19, 2008, 5:33:48 PM, Knut Alboldt wrote:
>
>> is there a way to change the value of one (ore more) ptv's just by
>> calling a URL (e.g. some kind of action= with some
>> ptv-name/-value-parameters) ?
>
> none that i am aware of. Any method to change PTVs via url input
> would need some security measures to prevent intentional and
> accidental page content changes.
I think security will not be a problem, first it will be used in an
intranet and second, if you got the chance to change a page manually by
editing it, you can do this also by link. So I'll check, if the user
has write permission (and maybe add some javascript-alertbox to ask the
user if he will really change the value).
I thought the function would be nice as a button to switch a
status-field of a page etc within a pagelist-view.
>
>> if not, is there evt. a builtin pmwiki-funtktion to change a ptv of a
>> page which could be used in an own action-recipe ?
>
> form processing scripts like PmForm and Fox have their own function
> to achieve this. There is no core Pmwiki function.
> you could have a look at
> http://www.pmwiki.org/wiki/Cookbook/SetPageTextVariable
> This recipe script is basically one function, and you could perhaps
> use it, or modify it for your recipe.
that's a good thing to start, I think.
Thanks
Knut
More information about the pmwiki-users
mailing list