ReStructured Text Infrastructurewiki.typo3.orgOfficial Documentation

Bug #26034

layout parameter of FORM object should be marked as required

Added by Patrick Rodacker about 2 years ago. Updated about 2 years ago.

Status:Closed Start date:2011-04-15
Priority:Should have Due date:
Assignee:Chris topher % Done:

100%

Category:-
Target version:4.5.0
Votes: 0

Description

When creating a form using the TypoScript FORM object one has to set the layout parameter, which is not mentioned within the TSref so far. A missing default value permits the form from getting rendered when the parameter is not set.

I suggest to mark the parameter as required and update the corresponding examples.

Associated revisions

Revision 668
Added by Chris topher about 2 years ago

Fixed bug #26034: layout parameter of FORM object should be marked as required

History

Updated by Chris topher about 2 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Chris topher

Can you please quickly post me the code you used, so that I can test that?

Updated by Patrick Rodacker about 2 years ago

Hi Christopher,

sure here is the code not working:

temp.mailform = FORM
temp.mailform {

  dataArray {
    10.label = Name: 
    10.type = name=input 

    20.label = Nachricht
    20.type = nachricht=textarea,40,10

    100.type = submit=submit 
    100.value = Submit
  }
  recipient = info@example.com
}

and this is the working example including the layout parameter:

temp.mailform = FORM
temp.mailform {

  dataArray {
    10.label = Name: 
    10.type = name=input 

    20.label = Nachricht
    20.type = nachricht=textarea,40,10

    100.type = submit=submit 
    100.value = Submit
  }
  recipient = info@example.com
  layout = ###LABEL### ###FIELD###
}

The TSref i used is the recent one for Version 4.4.0.

Updated by Chris topher about 2 years ago

  • Target version set to 4.5.0

Hi Patrick,

thanks for the fast response!
I can reproduce this behaviour.

I googled it and it seems like that is already the case since at least 2007 (so it is no recent bug or something).
E.g. see the note here on the bottom from 07-05-07.

I will add an accordant note and an example.

Updated by Chris topher about 2 years ago

  • Status changed from Needs Feedback to Resolved
  • % Done changed from 0 to 100

Applied in changeset r668.

Updated by Chris topher about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF