[pmwiki-users] PmForm on request, edit structured data on pages
Oliver Betz
list_ob at gmx.net
Sun Jan 20 11:05:46 CST 2013
Hello All,
how do you handle structured data?
I want to have personal pages with some structured data, e.g. contact
information and more.
The form to edit the structured data shall be dispayed only on
request.
In the past, I have put the form in the GroupHeader with conditional
markup, e.g.:
(:if equal {$useform} 'address':) (:pmform adrform:)
where "useform" is a GET parameter:
$FmtPV['$useform'] = '$_GET["useform"]';
in a local config file.
To display the form, the page is called e.g. with ?useform=address.
But there seems to be no easy way to select the target page depending
on the status:
* post successful -> return to the "no form" page
* post canceled by user -> return to the "no form" page
* post with errors -> return to the form
Maybe I'm missign a much simpler solution. Any hints?
Oliver
--
Oliver Betz, Muenchen (oliverbetz.de)
More information about the pmwiki-users
mailing list