Is there anyway to include a [[module]] command in side [[form]] created page?
Yes, I think this will work normally like in any live _template page..
see the documentation of "dataform":
- To create a new data form you need to do the following:
- 1) create a live template page for the category the form will be in. For example if your category is band, the live template page must be called band:_template.
- 2) add a [[form]] ..[[/form]] section then your fields. The different types of fields you can have (text, select, checkbox, file, wiki, static, hidden and password are described in the reference section at the bottom of this page.
In this "layout" -live template you can use all standard wiki codes as usual, except not to forget the display of the %%content%% of the single page at this place in the live template ( or the single fields).
In my genealogy-template wiki (http://genealogy-template.wikidot.com/ ) I have build on such "_template" pages lots of ListPages module to display the fields of parents, childs and so on.
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
I know very well how to set up a dataform , the problem is if I create a wiki field,I can put things inside that filed like [[image]] but [[module]] comes out as text.
Pasting the same exact [[module]] on a regular wiki page works just fine.
If a module won't work in a wiki form field (I'm not surprised it won't), you might be able to get it to work if you place the [[module]] and [[/module]] tags in the template body and insert the form field text as the body of the module. It's been a while since I've hacked around with data forms, but that is the first approach I'd try.
Maybe something like this. Sorry, I can't test this myself at the moment and give a more definitive answer.
[[module]]
%%form_data{modulebody}%%
[[/module]]
====
[[form]]
fields:
modulebody:
label: Enter module body without [[module]] tags
type: wiki
width: 30
[[/form]]
Are you looking for %%form_raw{fieldname}%%?
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
As usual, Timothy comes to the rescue. I just did a quick test on Wikidot's Sandbox with the ListPages module and it does indeed work when entered into a wiki form field as long as you use %%form_raw{fieldname}%%.
Template page (http://try.wikidot.com/module-form:_template)
++ Module Tags in Wiki Field
%%form_raw{modulecode}%%
====
[[form]]
fields:
modulecode:
label: Enter module code including [[module]] tags
type: wiki
width: 80
height: 30
[[/form]]
Test page wiki field content (http://try.wikidot.com/module-form:listpages-test)
[[module ListPages separate="false" limit="10" category="*" order="dateEditedDesc"]]
[[table style="margin-left:25px"]]
[[row]]
[[cell style="width:325px"]]
%%linked_title%%
[[/cell]]
[[cell style="width:100px"]]
%%date_edited|%O ago%%
[[/cell]]
[[cell style="width:150px"]]
by: %%author%%
[[/cell]]
[[/row]]
[[/table]]
[[/module]]
The output on the test page is what's expected from the ListPages module. My idea of placing the module tags in the template body was way off the mark and failed miserably.