Extension talk:Page Forms

Break between allowed values
In a form I want to have the checkboxes among each other. How does it work?


 * Do you mean you want them to display like a list, instead of in a wrapping line? Badon 20:43, 2 January 2012 (UTC)


 * I'm not sure I understand the question, but this might help. Yaron Koren 23:48, 2 January 2012 (UTC)


 * It helps! Perfect! Thank you!

Templates only at entered values
My form refers to two templates.

Is it possible that the templates only come into effect if the user has entered a value?

Example: In the form I ask for an author. But my users doesn´t select an author.

Now I want that the line:

Author: disappears in the articles.

80.149.179.2 13:30, 4 January 2012 (UTC)


 * That doesn't sound like a form issue - but you can use #if in the template for that. Yaron Koren 13:38, 4 January 2012 (UTC)

Edit with form tab; based on namespace
Hello,

i want to use the Edit with form tab, based on namespace in the Main namespace (german: "Seiten"?).

How i have to name the article with this text:  has default form::Test 

I thought: "Meta-Pagename":Seiten, but that does not work.

With the namespace "Hilfe" it works...

Thank you!


 * I'm not sure, but try "Project:Main". Yaron Koren 14:27, 5 January 2012 (UTC)
 * No, that also does not work...


 * Sorry for the long delay - it turns out that the German translation you should use is 'Startseite'. Still, the word "Main" should also work - that's a bug. Yaron Koren 16:57, 10 January 2012 (UTC)


 * Now, we have change the default language from "de" to "en" and now it does work with "Project:Main"

Replicating section edit edit summary
A nice feature I think would be to replicate the automatic edit summary which is included upon normal section editing, but which would be included for Semantic Forms based upon which field is updated, if it were one field. I know for me that would really help out with tracking revision histories and what was updated, since section editing is not possible. Thorncrag   19:07, 5 January 2012 (UTC)


 * I doubt that's possible - with regular MediaWiki editing, it's known in advance which section the user is editing, but with a form, you don't know which fields they've edited until the moment they hit "save". Yaron Koren 19:20, 5 January 2012 (UTC)

PAGENAME magic word not displaying in forms
When any of the family of magic words ( ,  , etc) are used in a form definition, they are not displayed in the form. However, other magic words, such as and , display in the form just fine.


 * What versions of SF and MediaWiki are you using? Yaron Koren 13:46, 9 January 2012 (UTC)


 * Thank you for your reply. I am currently running MediaWiki 1.17, SMW 1.6.1, SF 2.3.2 -Jay


 * This should definitely work in 2.3.2. Is your wiki public somewhere or could you reproduce the problem on http://scratchpad.referata.com ? --F.trott 09:00, 10 January 2012 (UTC)


 * Not working for me either...
 * I am using: MediaWiki 1.18.0, PHP 5.3.8 (cgi-fcgi), MySQL 5.5.19, Semantic Forms (Version 2.3.2), Semantic MediaWiki (Version 1.6.1). My wiki is behind VPN, but everything works as expected in Scratchpad Trial -- SJR


 * I experienced similar results after upgrading to SMW 1.7; however, does function in scratchpad forms: [Example] -Jay

Editing a form places the template above all section headers
Consider the following scenario where you have a template contained between section headers such as the following:

=Header 1=

=Header 2=

Next, using the 'edit with form' option, you make modifications to the input parameters referenced in the template. Upon saving these changes, the wiki formatting is spit out like this:

=Header 1=

=Header 2=

Is there a way to keep the template between those headers and still use the 'edit with form' option?

Thanks in advance. Morguen 14:42, 9 January 2012 (UTC)


 * No, unfortunately - you can do something like that with partial forms, though it won't be with the "edit with form" tab - it would just be a link on the page. A true solution for this would involve editing of sections - see here. Yaron Koren 16:30, 9 January 2012 (UTC)

Dealing with the "Preview box" white background
I'm using a heavily modified Vector skin with dark background and white font and when I preview my forms the preview comes with a white background, making the font simply unreadable. I've done some research and I found where it is located HTML wise:

Note that I've not pasted all the code but more or less that should be some help. Reading the last div we find this:

This is the only clue i've been able to find so I assume that is the source of my problems, but after lurking each single (.php and .css) file from the whole extension I wasn't able to find anything. I would like to provide more information, screenshots or links but I'm under a contract and I'm not allowed to unveil the content of the wiki yet. Does anyone know how to get rid of that white background? 79.148.8.127 02:16, 12 January 2012 (UTC)


 * Forgot to say that I'm using SMW v1.6 and SF v2.3.1 79.148.8.127 02:29, 12 January 2012 (UTC)

Warning message when including
Hello everybody,

I'm about to upgrade SemanticForms from version 2.0.9 to 2.3.2 and noticed some strange behaviour that I couldn't understand even after browsing to the responsible source code.

Basically, I have a query form included into a portal page by means of  . When the portal page loads, the warning This page already exists, but does not use this form gets displayed above the form.

What is puzzling me is that I used the same construct under version 2.0.9 and the warning never showed up then. The responsible code is at line 1509 in SF_FormPrinter.php (in version 2.3.2):

// Add a warning in, if we're editing an existing page and that // page appears to not have been created with this form. if ($this->mPageTitle->exists && ( $existing_page_content !== '') && ! $source_page_matches_this_form ) { $form_text = "\t". ' ' . wfMsg( 'sf_formedit_formwarning',        $this->mPageTitle->getFullURL ). " \n\n". $form_text; }

This code is identical in version 2.0.9 and I didn't find significant difference in the way the flag $source_page_matches_this_form is set before reaching above code. Nevertheless the warning does show up under version 2.3.2 but not under 2.0.9. I could workaround this issuing by adding the condition !is_query to above if-clause but I'd prefer to learn what else I'm doing wrong or whether this is a bug.

I appreciate your help. Many thanks in advance.

OUA 11:39, 12 January 2012 (UTC)


 * Yes, this seems to be a new bug. I've seen it, too. Incidentally, I suppose you mean not  . Cavila MW 1.17, MySQL 5.5.16, Php 5.3.8 13:09, 12 January 2012 (UTC)


 * Actually I really had the latter in my wikitext but it doesn't seem to make a difference. Correcting it to the former didn't change the situation. OUA 13:18, 12 January 2012 (UTC)


 * Hi, sorry about that - this was fixed in SVN, but I haven't released a new version yet since then. You can see the fix here (it's exactly what OUA proposed) - if you apply that same change, the problem should go away. Yaron Koren 13:27, 12 January 2012 (UTC)