Feature #32701
closedEnable customer postProcessors in different folder
100%
Description
This may be a feature request for a manual extension actually: I like the idea of postprocessores. however so far I only managed to integrate a postprocessor by having the php file holding my postprocessor class in the sysext/form/.../PostProcessor/-folder. Is there a way to define the source of this class elsewhere? e. g. under my fileadmin folders?
I would love to see some typoscript code like
postProcessor {
1 = mail
1 {
...
}
2 = myPostProc
2 {
classFile = /fileadmin/myPostProc.php
...
}
}
If there is any existing solution to add a postProcessor easily, please tell me (and I will come up with a suggestion for the manual)
Files
Updated by Oliver Hader almost 13 years ago
- Target version set to 4.7.0-alpha3
- Complexity set to easy
Hey Jan,
I'd suggest to use something like that:
2 = tx_myext_WhateverProcessor 2.whatever = setting
In Classes/System/Postprocessor/Postprocessor.php the method process() should be enhanced to check for
class_exists($key)and if that does not exist, try to create it with the
tx_form_System_Postprocessor_namespace. Besides that, defining an interface for that would be great - the public method process() is mandatory then.
Updated by Jan Schreier almost 13 years ago
Hi Oliver,
what ever you suggest. You got waaaaay more experience with Typo3 and programming than I do.
best regards! jan
Updated by Steffen Ritter almost 13 years ago
- Target version changed from 4.7.0-alpha3 to 4.7.0-beta1
Updated by Franz Geiger almost 13 years ago
- File issue32701.diff issue32701.diff added
Hey everybody,
I implemented Olivers suggestions in a local git-branche. Before committing it I'd like to run a test. Can please someone help me to write an unit-test (e.g. by pointing to some documentation)?
Thx
Updated by Franz Geiger almost 13 years ago
Hi again,
I tested my changes by writing a 'Hello World'-postprocssor extension. Everything seems to work.
How do I commit my changes? Is it sufficient to post the diff here (see previous post)?
Regards
Updated by Stanislas Rolland almost 13 years ago
Hi Franz,
It will not be sufficient to post the diff here.
This page explains how to commit and push a change to the TYPO3 Git-branches through Gerrit: http://wiki.typo3.org/Contribution_Walkthrough_Tutorials
Before committing, you should also read: http://wiki.typo3.org/CommitMessage_Format_(Git).
Would be a good idea also to upload your test extension here.
Regards,
Stanislas
Updated by Gerrit Code Review almost 13 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Franz Geiger almost 13 years ago
- File T3X_postprocessorinterfacetest-0_0_0-z-201202131711.t3x T3X_postprocessorinterfacetest-0_0_0-z-201202131711.t3x added
Hi Stanislas,
thanks for your help. I've submitted the patch now.
I've attached my test extension.
Regards,
Franz
Stanislas Rolland wrote:
Hi Franz,
It will not be sufficient to post the diff here.
This page explains how to commit and push a change to the TYPO3 Git-branches through Gerrit: http://wiki.typo3.org/Contribution_Walkthrough_Tutorials
Before committing, you should also read: http://wiki.typo3.org/CommitMessage_Format_(Git).
Would be a good idea also to upload your test extension here.
Regards,
Stanislas
Updated by Gerrit Code Review almost 13 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Gerrit Code Review almost 13 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Franz Geiger almost 13 years ago
Draft documentation is attached in issue #34021.
Updated by Gerrit Code Review over 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Steffen Ritter over 12 years ago
- Target version deleted (
4.7.0-beta1)
Updated by Gerrit Code Review over 12 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Gerrit Code Review over 12 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Gerrit Code Review over 12 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Gerrit Code Review over 12 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Gerrit Code Review over 12 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9006
Updated by Franz Geiger over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 91db6ca4000f0212e75cde50e320cb914944dfbe.