Task #63673
closedEpic #69036: EXT:form - Optimize layout rendering
Define standard layout
100%
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
Updated by Mathias Schreiber almost 10 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
Updated by d.ros no-lastname-given almost 10 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
Updated by Frederic Gaus almost 10 years ago
Could you provide your xclass here so that we can check if it makes sense to integrate your changes?
Updated by d.ros no-lastname-given almost 10 years ago
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to New
- Assignee deleted (
Mathias Schreiber)
Updated by Björn Jacob over 9 years ago
- Category changed from Form Framework to 1602
Updated by Björn Jacob over 9 years ago
- Category changed from 1602 to Form Framework
Updated by Björn Jacob over 9 years ago
- Tracker changed from Story to Task
- Translation missing: en.field_remaining_hours deleted (
0.0)
Updated by Björn Jacob about 9 years ago
- Subject changed from Define Std. layout to Define standard layout
Updated by Björn Jacob about 9 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.