Steven Heynderickx wrote on 18 Nov 2009 14:25
When I read the design I thougt the following would be possible:
For the template page
%%{$Name}%%
%%{Name}%%
%%Name%%
{$Name}
%%content{Name}%%
%%content{$Name}%%
%%form{$Name}%%
%%form{Name}%%
====
[[form]]
fields:
Name:
label: Give me your name
type: text
width: 30
[[/form]]
It works so far as in stead of getting the editor for my input, I get a form for my input (wich is good)… The submitted data stored in the page I assume, but how can I access it? I thought the way I tried it would be the logical way… but it's not working so how does it need to be done?
I will search for more info, but if someone can help…
Gives some result but displays also the label and in the generated <html> label and input are not in a <div> container so I can not hide them if I wanted….
I thought forms would become somekind of named content-blocks so that we could use %%content{fieldname}%%
But maybe this is not yet finished
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
This is not yet implemented. Everything below where it says "planned" is planned, but not working yet, exactly as would be expected.
I'll edit the page and make that heading easier to see.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
There, done. It said all along that those features were planned but not implemented… it was just a bit hard to see. Let me know if it is easier to understand now? Or if there is anything else that can be done to make it clearer?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
… do not yet work in dynamic templates.
Is that why this does not work?
Where the 'category' refers to this template using:
where '….' represents the rest of the code.
Any idea when this will be available? :)
Reading this about five times and I don't understand it. What exactly does not work? What is the "this" you wish to be available?
(It can't be data fields in dynamic templates because your example shows a ListPages…)
Portfolio
You need to use %%form_data{name}%%… in your case %%form_data{price}%% if you wish to see the price
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.