Extension talk:Page Forms

Is there anyway to use this extension with another. If I wanted to use lets say.. the imagemap extension for an input instead of the input types that I can use with the semantic forms already? --198.70.22.217 19:58, 29 May 2007 (UTC)


 * I don't really understand how that would work. The imagemap extension, as far I know, just arranges links within an image; it doesn't allow for data input. Yaron Koren 00:05, 30 May 2007 (UTC)

You are right, that is a bad example. More along the lines of a flash video extension or something like that. More importantly, just any extension that requires some sort of input. --72.21.245.86 12:44, 30 May 2007 (UTC)


 * There would be no automatic way to combine the extensions, no; but if someone wanted to write code for data entry in Flash (or, say, AJAX), I'd certainly look into combining the two in some way, because that would be a neat feature. Yaron Koren 14:43, 1 June 2007 (UTC)


 * To continue this discussion a little, is it not possible to be able to use wikitext in any of the input types?? Would that be difficult to implement? --75.107.9.104 02:24, 29 July 2007 (UTC)


 * It's a possible enhancement. Yaron Koren 16:46, 30 July 2007 (UTC)


 * I think this would be a wonderful enhancement!!! I think what you have done already is just specatular, but something like this would make me feel like a little boy getting a puppy for the first time!!!--198.70.22.217 17:25, 30 July 2007 (UTC)


 * Yea, I need to be able to use wiki markup text in forms instead of HTML (linking to same-wiki links is annoying using HTML, for example, when it would be much easier with wiki markup). —Eep² 03:49, 15 August 2007 (UTC)


 * You can use wiki markup in the freetext area, can't you?--Robert Buzink 13:53, 3 September 2007 (UTC)


 * Sure, but I need the wiki markup in the form titles to provide links to what they mean (or javascript/CSS popups). Having to write out URLs for local (and/or interwiki) links to wiki pages is ridiculous. —Eep² 02:20, 4 September 2007 (UTC)

Help Help
I'm new to the Wikipedia extensions. I tried installing this extension along with the recommended Semantic Wiki as had been instructed. Copied all files and included the statements as instructed into the LocalSettings.php file. But...I'm getting two errors that I'm not sure how to resolve.

I get the following error when I try to create a new template: Fatal error: Class 'SMWInlineQuery' not found in /wiki/extensions/SemanticForms/includes/SF_GlobalFunctions.php on line 161

I also get this error a couple of times if I tried to incorporate a template as part of the form: Fatal error: Cannot access protected property SMW_LanguageEn::$smwDatatypeLabels in /wiki/extensions/SemanticForms/includes/SF_FormPrinter.inc on line 704

I am using the following: * MediaWiki: 1.10.1 * PHP: 5.2.3 (apache2handler) * MySQL: 4.0.18-log

Any help on this would be greatly appreciated. Thanks.


 * It sounds like you don't have Semantic MediaWiki installed; is that possible? Yaron Koren 14:16, 7 August 2007 (UTC)


 * I did install it. I tried running a very simple test with a couple of relations, and it looks like it's picking them up properly.  Is there any way to tell for sure whether it was properly installed or not?


 * If you're still having this problem, please contact me directly; this talk page is a very inefficient way of communicating. In general, that goes for everyone: if you have a question or a problem running this extension, you're better off emailing me directly, or joining the mailing list and posting the problem there. Yaron Koren 05:16, 13 August 2007 (UTC)

Creating a SemanticForm and using tags
Hi guys hope you can help. If I can get this working, this will be a MAJOR thing for us :>)

Example: Lets say I have an extension called NewTaskTag, which lets you insert a  into a wiki page, then you manually insert parameters as follows..

 Task = This task completed at.. Time = 6pm Priority = Severe Updated by =   Task = Time = Priority = Updated by = 

The extension then renders the html into a table like format.

Because this is a manual job, I wanted to make it easier to do this.

So, Ive installed Semantic Mediawiki along with SemanticForms.

These are great, but I wanted to know if you could use a form to do the above instead of using the normal edit option with Mediawiki.

The problem I see is how will the form know how to interpret and pass the entered bits/eg. the fields to the extension, and how would you say, in a form, place a filed to say to use ?

To further clarify what Im trying to say is the following.

If I want to use the  in a wiki page, I just go to a new page, click on Edit, and enter the following:

 Task = Time = Priority = Updated by =   Task = Time = Priority = Updated by = 

I then complete each line, eg.Task = This new task, Time = 6pm, etc etc.

What Id like to do is the following:

Create a new form that has this format:

Task: [___ Text Box for Task entry___] Time: [___ Text Box for Time entry___] Priority: [___ Text Box for Priority entry___] Updated By: [___ Text Box for Updated By entry___]

All the user would have to do is then input in the text boxes the required data, then the  would do the rest. The questions I have though are:

1)How would the form know that each text box is actually in the format: Task = Time = etc etc

And that all these text boxes are enclosed in the  tag?

2) How could you create a form that automatically enters a  tag, then the required text boxes, with each one corresponding to a parameter required for the newtasktag, then a closing ? If I can get this working by you wonderful gurus, this would totally change for the better the way we use Mediawiki!

Thanks guys in advance.


 * The only thing that Semantic Forms can edit is templates. If you can create a template that takes in the four fields in question and in turn creates code using this tag, you can probably get this working. Did that make sense? Yaron Koren 15:04, 14 September 2007 (UTC)

Hi Yaron, thanks for that. I understand what you mean. Thank you.

My asking have come true
Thank you! Eek. I've ask someone to write the information of Semantic Form in a wiki page for users' convenient. Now, it have come true by your hand.--Roc michael 11:51, 16 September 2007 (UTC)

Editing Forms
Hi guys! Ive successfully created a form that allows multiple instances of a template. On the template, for each section, I have the Section as a variable,

So the template page looks like below.....

=
======== Template page....

etc etc I then created a form based on this template.

I then created a page using the form.

My question is this....

On the category page that I assigned to the template, I have enabled: Has default form::form:<Form1 which enables me to see the Edit with Form button on the page using the form.

The problem is:

When I click on "Edit with Form", it shows me ALL sections, which means if I just want to edit one section, I have to scroll through all sections until you find the one you are look for.

To illustrate further below.....

Page Im working on...................................

Section1                           [Edit]

Section2                           [Edit]

Section3                           [Edit]

Section4                           [Edit]

[Edit with Form] In the above, if I click on the [Edit} button to the right of the Section in question, it shows me the wikitext JUST for this section. But obviously I want to use a form to do the editing. Now if I click on the [Edit with Form] button instead, it shows me ALL SECTIONS. Is there any way to do the following? Page Im working on...................................

Section1                           [Edit] [Edit Section 1 with Form}

Section2                           [Edit]  [Edit Section 2 with Form}

Section3                           [Edit]  [Edit Section 3 with Form}

Section4                           [Edit]  [Edit Section 4 with Form}

In the above, instead of clicking on [Edit with Form], you could click on the appropriate [Edit Section with Form] link, which then displays the form's part JUST for that section. This would be fantastic especially if you have many sections, avoiding the need to find what you are looking for. Any help greatly appreciated.


 * This would be much harder to implement than it might appear - it would require some internal splitting up of templates that might actually be impossible. One possibility might be to add a " " call to the template - that will remove the "Edit" links as well, since there's a good chance that those don't work either, if they're for sections defined within the template. Yaron Koren 16:07, 18 September 2007 (UTC)

Setting form based on preload page
Hi Yaron.

Thanks for your reply. Since SF can point red links to 'add data' form, I think maybe we can create a new page by a way like followed: Further more, the pages ,"Test page n", maybe is made by this way like "Test page "

Is it possible?

--Roc michael 02:55, 21 September 2007 (UTC)
 * PS:
 * 1) The means
 * 1) The means


 * Well, what problem is this meant to solve? What do you want to do that can't already be done with the system? Yaron Koren 04:32, 21 September 2007 (UTC)

Asking adding some fields
Could it possible to add some fields like following image? --Roc michael 23:30, 20 December 2007 (UTC)

Hiding Factboxes in Semantic mediawiki 1.0
Include this line in your LocalSettings.php file rather than modifying the SMW_Factbox.php file : $smwgShowFactbox = SMW_FACTBOX_HIDDEN; Myotus 18:25, 28 December 2007 (UTC)

Disappearing "Edit with Form" tabs
I am not sure if anyone else has or will run into this issue upgrading to SMW 1.0 but at one point I made changes to my Category page which had a default form assigned to it and then the "edit with form" button disappeared on all the pages that used that template. After much cursing the solution (of course) proved simple. I had overlooked changing the Property "Has_default_form" from "type" to "Page". Just thought I'd share....

Myotus 18:41, 28 December 2007 (UTC)