t3camp danmark

19
Enterprise Forms with Extbase How to create multi step forms in TYPO3 with SAP and other disastersMarkus Günther Freitag, 15. März 13

Upload: markus-guenther

Post on 19-May-2015

332 views

Category:

Technology


2 download

DESCRIPTION

Talk about a way to build enterprise forms in extbase. Multiple steps, skip optional steps validate on special constraints and many more. See forge http://forge.typo3.org/projects/show/extension-lw_enet_multiple_action_forms for the "framework" extension. With that you can build your own form.

TRANSCRIPT

Page 1: T3camp danmark

Enterprise Forms with Extbase„How to create multi step forms in TYPO3 with SAPand other disasters“

Markus Günther

Freitag, 15. März 13

Page 2: T3camp danmark

Schedule 2

■ Introduction

■ Features

■ Live demo

■ Create a form

■ Roadmap

■ How to get?

■ Questions

Freitag, 15. März 13

Page 3: T3camp danmark

Me

■ 28 years old

■ From „somewhere“ in Germany

■ Start developing extensions in 2010

■ Lover of the TYPO3 community and the spirit

3

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 4: T3camp danmark

Introduction

How we create forms in TYPO3 and what can be different???

Picture: fotolia.com

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 5: T3camp danmark

Actual state

5

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 6: T3camp danmark

6

■ using mailform plus

■ static forms

■ no flexibility

■ using powermail

Actual stateMe Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13

Page 7: T3camp danmark

We love if fancy

7

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 8: T3camp danmark

8

■ flexible forms with multiple steps

■ as flexible as you want

■ many constraints to manipulate the flow in the form

New way (different way)Me Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13

Page 9: T3camp danmark

Features of multiple-action-forms

9Picture: Otto

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 10: T3camp danmark

Drop properties from previous steps if another property has changed

As many steps as you need/want

Actual

Feature 10

Can use dependencies and storages

Complete HMAC verification

Possibility to shift steps based on a property value

Save the values step by step

preparation of all intermediate values in the session, support sub-objects

recursive validation

Action sequence in the view

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 11: T3camp danmark

Live demo

11

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 12: T3camp danmark

Create a form multiple-action-forms

12Picture: Otto

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 13: T3camp danmark

How to make this?

13

■ One form is one extension

■ FormController inherits from a abstract

■ Form model gets a interface

■ One (main) model represents the form

Bild: fotolia.com

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 14: T3camp danmark

Controller annotations

Controlling 14

Model property annotations

@actionSequence, @actionOverrideConstraint, @previewAction,@finalAction

@sessionPersist@validateControllerConstraint@validatePropertyConstraint@dependecy

Me Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13

Page 15: T3camp danmark

Get hands dirty

15

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 16: T3camp danmark

Roadmap

16

■ Backend-Wizard

■ JS validation before send form

■ boolean operations with validators

■ only partial dropping of properties

Picture: typo3.org

Me Introduction Features Live demo Create form Roadmap Get it QuestionsFreitag, 15. März 13

Page 17: T3camp danmark

17

Bild: fotolia.com

On forge.typo3.orgMe Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13

Page 18: T3camp danmark

18

Conclusion

■ it is easy for developers

■ highly flexible

■ extbase codebase

Me Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13

Page 19: T3camp danmark

19

Bild: fotolia.com

Thank you :)Me Introduction Features Live demo Create form Roadmap Get it Questions

Freitag, 15. März 13