Project

General

Profile

Actions

Task #63673

closed

Epic #69036: EXT:form - Optimize layout rendering

Define standard layout

Added by d.ros no-lastname-given over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2014-12-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

I just tried to define a Std. Layout for my labels.
For any not understandable reason I do not get it managed.

Put into Page TS

doesntmatter.form = FORM
doesntmatter.form {
      layout{
          containerWrap (
<div class="twoBroiler">
<elements />
</div>
          )
          label(
<label><labelvalue /><mandatory /><span class="fourPigs"/><error /></label>
          )
      }
}

Expected is some classy output.

If I put the Layout section into the form itself it renders. But I need to have a class on an error output.

Cheers

David

Actions #1

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

Hi David,

I don't quite get what you mean here.
Can you try to be more precise?

Thanks

Actions #2

Updated by d.ros no-lastname-given over 9 years ago

In the ent the whole form extension does not use fluid for templating.

So any kind of personalization gets quite dirty. I wanted to handle my labels different, especially if an error occours. In the end I went XClassing for that. Unfortunately.

Cheers

Actions #3

Updated by Frederic Gaus about 9 years ago

Could you provide your xclass here so that we can check if it makes sense to integrate your changes?

Actions #5

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Mathias Schreiber)
Actions #6

Updated by Björn Jacob almost 9 years ago

  • Category changed from Form Framework to 1602
Actions #7

Updated by Björn Jacob almost 9 years ago

  • Category changed from 1602 to Form Framework
Actions #8

Updated by Björn Jacob over 8 years ago

  • Parent task set to #69036
Actions #9

Updated by Björn Jacob over 8 years ago

  • Tracker changed from Story to Task
  • Translation missing: en.field_remaining_hours deleted (0.0)
Actions #10

Updated by Björn Jacob over 8 years ago

  • Subject changed from Define Std. layout to Define standard layout
Actions #11

Updated by Björn Jacob over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

I've tested the desired output with the current master. The following snippet does what d.ros describes.


enctype = multipart/form-data
method = post
confirmation = 1

layout {
    containerWrap = <div class="container-wrap"><elements /></div>
    error = <em class="alert-box alert"><errorvalue /></em>
}

postProcessor {
    1 = mail
    1 {
        senderEmail = sender@email.com
        recipientEmail = recipient@email.com
    }
}

10 = TEXTLINE
10 {
    name = surname
    label = Surname
}

20 = SUBMIT
20 {
    name = submit
    value = Submit
}

rules {
    10 = required
    10.element = surname
}

If you have any further questions or problems please let us know and (re-)open the ticket.

Actions

Also available in: Atom PDF