CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Major Feature #9446

Template parser

Added by Christian Opitz over 2 years ago. Updated over 2 years ago.

Status:Rejected Start date:2010-08-25
Priority:Should have Due date:
Assignee:Christian Opitz % Done:

0%

Category:Core
Target version:Stable v1.0
Votes: 0

Description

The template parser should search for every tag and its attributes that could result in an POST-var on request. (inputs, textareas, selects)
This is usefull for some automatic methods like AutoDB, AutoValuePopulation, AutoValidation, AutoFiltering.


Related issues

precedes Formhandler - Feature #9447: Finisher_AutoDB Resolved 2010-08-26 2010-08-26

Associated revisions

Revision 37229
Added by Christian Opitz over 2 years ago

New util TemplateParser (refs #9446)
New Finisher_AutoDB (refs #9447)

Revision 37229
Added by Christian Opitz over 2 years ago

New util TemplateParser (refs #9446)
New Finisher_AutoDB (refs #9447)

Revision 38354
Added by Christian Opitz over 2 years ago

implemented a experimental fluid-view (refs #9446)

Revision 38354
Added by Christian Opitz over 2 years ago

implemented a experimental fluid-view (refs #9446)

Revision 38399
Added by Christian Opitz over 2 years ago

refs #9446:
Two fluid view helpers for formhandler-forms (form and form.submit)
Added example fluid template

Revision 38399
Added by Christian Opitz over 2 years ago

refs #9446:
Two fluid view helpers for formhandler-forms (form and form.submit)
Added example fluid template

Revision 38423
Added by Christian Opitz over 2 years ago

Added simple translation-view-helper and updated example (refs #9446)

Revision 38423
Added by Christian Opitz over 2 years ago

Added simple translation-view-helper and updated example (refs #9446)

Revision 38441
Added by Christian Opitz over 2 years ago

Binding fh.form to gp works (refs #9446)

Revision 38441
Added by Christian Opitz over 2 years ago

Binding fh.form to gp works (refs #9446)

Revision 38552
Added by Christian Opitz over 2 years ago

Added new controller to allow fluid forms with multisteps and provide controllerContext at central place (refs #9446)

Revision 38552
Added by Christian Opitz over 2 years ago

Added new controller to allow fluid forms with multisteps and provide controllerContext at central place (refs #9446)

History

Updated by Christian Opitz over 2 years ago

As Fluid already offers a template parser there is actually no need to write another one. Instead we could implement fluid-views at this point.

In the branch for this ticket is an already working example (Examples/Fluid). This uses two custom view helpers (form and form.submit) which allow formhandler to add step-information (form.submit) and it's hidden fields (form).

To realize fluid views i would suggest an conventional layout for form templates - maybe sth. like that:

mytemplate/
- forms/
-- (partials/)
-- (layouts/)
-- form1.html
-- form2.html
- lang/
-- lang.xml
- css/
- js/

For templates with just one form this could even look more simple:
mytemplate/
- form.html
- lang.xml
- css/
- js/

With these structures we could tell fluid which form to use via the action-param in the request.
What do you think?

Updated by Christian Opitz over 2 years ago

Moved the functionality to use fluid-templates into a new extension called Formhandler on Fluid

It ships with some view helpers that make form-life much easyer:
  • Translation-ViewHelper: Let's you use translation from formhandler translation files
  • Form-ViewHelper: Extends fluids view helper for compatibiltity with formhandler and has a new attribute readOnly that lets form elements output the proper values instead of the field-html
  • Label-View-Helper: Adds error class to the label-tag when for-field has errors
  • Improved Checkbox-ViewHelper
  • format.html2txt: Filter that strips all html from the inner tags and keeps basic formating like unorderd lists, numbered lists, indention, underlining, italics, bolds, margins... Very usefull for plaintext-mails
  • format.trim: Trim whitespace and empty lines

So in most cases you will be done with just one form that you can reuse in your email- or confirmation-templates with help of the partial-viewHelper in combination with readOnly-attribute and the format.html2txt-Helper.

So please close this issue

Updated by Reinhard Führicht over 2 years ago

  • Status changed from New to Rejected

Issue rejected.

Reason:

Christian Opitz wrote:

Moved the functionality to use fluid-templates into a new extension called Formhandler on Fluid

Also available in: Atom PDF