Thanks for the additional information.
I found two problems:-
1. What I suspect was an error in your Bureaucracy form based on a misread of the documentation. See my form below.
2. A failing in the Pagemod plugin, I found the
fix in the Pagemod documentation. See my guide below.
Bureaucracy form - I had this in
playground/playground.txt. Note that surrounded the destination with double commas (the latter may not be necessary):-
====== Playground ======
<form>
action pagemod "sparten:@@Sparte@@" sparteneingabe
select "Sparte" "fussball|fitness|turnen|tanzen|tischtennis|judo|gesundheit|schwimmen|volleyball|lauftreff"
Fieldset
Submit "Add to an existing page using pagemod"
Thanks "Done!"
</form>
[/color]
I created the namespaces, pages and contents with:-
data/pages$ Pagemod="<pagemod sparteneingabe output_before>\nsparten : @@Sparte@@\n</pagemod>";mkdir sparten;for i in fussball fitness turnen tanzen tischtennis judo gesundheit schwimmen;do echo -e "$Pagemod" > sparten/"$i".txt;done
[/color]
Note that I removed "
table_adder" from your example.
Result:-
.
├── playground
│ └── playground.txt
├── sidebar.txt
├── sparten
│ ├── fitness.txt
│ ├── fussball.txt
│ ├── gesundheit.txt
│ ├── judo.txt
│ ├── schwimmen.txt
│ ├── tanzen.txt
│ ├── tischtennis.txt
│ └── turnen.txt
├── start.txt
├── __template.txt
└── wiki
├── dokuwiki.txt
├── syntax.txt
└── welcome.txt
[/color]
cat sparten/fitness.txt
<pagemod sparteneingabe output_before>
sparten : @@Sparte@@
</pagemod>
[/color]
Modifying Pagemod:-
line 39 lib/plugins/pagemod/helper/pagemod.php
insert:
//Allow for the substitution os elements of the page name
$page_to_modify = $this->replace($page_to_modify);
[/color]
so that:
//handle arguments
$page_to_modify = array_shift($argv);
if($page_to_modify === '_self') {
# shortcut to modify the same page as the submitter
$page_to_modify = $ID;
} else {
//resolve against page which contains the form
resolve_pageid(getNS($ID), $page_to_modify, $ignored);
}
$template_section_id = cleanID(array_shift($argv));
[/color]
becomes:
//handle arguments
$page_to_modify = array_shift($argv);
if($page_to_modify === '_self') {
# shortcut to modify the same page as the submitter
$page_to_modify = $ID;
} else {
//Allow for the substitution os elements of the page name
$page_to_modify = $this->replace($page_to_modify);
//resolve against page which contains the form
resolve_pageid(getNS($ID), $page_to_modify, $ignored);
}
$template_section_id = cleanID(array_shift($argv));
[/color]
Those changes work. I've attached the modified Pagemod plugin, you should be able to just overwrite your existing copy of it to implement the changes (I had to put the .tar.bz2 into a .zip to upload)