Issue/Default form

From Semantic MediaWiki - Sandbox
Description When saving a page with a set form, the 'edit with form' link doesn't get set
Parent topic Catégorie:Examples
Extension(s)
Keyword(s) not specified
not specified


"Edit with form" should be set/appear directly when saving the page. This used to happen with older versions of Semantic Forms that used Property:Has default form (see example below).

Page Forms has a different way of defining the "Edit with form" tab, using a parser function instead of semantic properties. Now, when (novice) users create a page using a form then realise they have to amend and click 'Edit', they can get confused and frustrated by the viewing of source code. This is exacerbated when $wgPageFormsRenameEditTabs = true; is used.

Steps to reproduce

(Assuming the mentioned forms Form:Article and Form:Author exist)

Scenario: Directly set default form and wait

  1. Save a new page with as content: {{#default_form:Article}}
  2. The "Edit with form" link doesn't yet exist
  3. Refresh
  4. The "Edit with form" link doesn't yet exist
  5. Wait?
  6. The "Edit with form" link appears

Scenario: Directly set default form and do a dummy edit

  1. Save a new page with as content: {{#default_form:Article}}
  2. The "Edit with form" link doesn't yet exist
  3. Refresh
  4. The "Edit with form" link doesn't yet exist
  5. Click 'edit' (editsource)
  6. The "Edit with form" link doesn't yet exist
  7. Make a dummy edit (ie add 'x' to the end of the contents)
  8. The "Edit with form" link doesn't yet exist

Scenario: form through category

  1. Have Category:Authors contain {{#default_form:Author}}
  2. Save a new page with as content: [[Category:Authors]]
  3. The "Edit with form" link doesn't yet exist
  4. Refresh
  5. The "Edit with form" link doesn't yet exist
  6. Click 'edit' (editsource)
  7. The "Edit with form" link doesn't yet exist
  8. Make a dummy edit (ie add 'x' to the end of the contents)
  9. The "Edit with form" link doesn't yet exist

Older behaviour

e.g. Semantic Forms 2.5.3, SMW 1.7.0.2

  1. Have Category:Tests contain [[Has default form::Author]]
  2. Save a new page with as content: [[Category:Tests]]
  3. The "Edit with form" link appears instantaneously.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.