Loading...
 
Skip to main content

Development


submission template

I would like to make a template for making new wiki pages which would be a form. After submitting, a new wiki page would be created with the information the user submitted. I looked through the documentation but found it very confusing. Tried using content templates but didnt know what to do after creating it. would really appreciate it if someone could help me. hope you understood what i want to do. thanks in advance. On a side note i would like to ask is there any way we could use php code,i.e integrate php programming in the wiki pages or in any aspect of tikiwiki?

Updating my post to make it clearer.

I looked at tiki-editpage.tpl. However what i understood from the code was that there could only be one edit box which had to be named 'edit'. Is there anyways i could use a form with multiple fields instead of just one edit box. For example The edit page would have a field name, and a text box together with that. Then Age and another text box with that. After saving the page all of this would show in the page such as

Name: John Smith
Age: 24

TOgether with this javascript form validation would be there. I am new to wikis though i have some knowledge of php/mysql and so am finding it hard to integrate these things. Once again thanks for your help.

As I mentioned hereQuestion (where I saw your question first), you need to keep in mind that the wiki page content is retrieved from just one place when the page is displayed. So it seems your form, even if it has several fields, has to submit the data to that one place in order to be retrieved. This means, I think, the editpage form must submit the input data and wiki page layout syntax as one string so it will be displayed properly; this string will have to have input data (form field content) and wiki layout code interspersed as needed, upon submission.

-- Gary - zukakakina.comQuestion