[TYPO3-core] RFC: a hook in TCEforms to complement hook in TCEmain
Michael Stucki
michael at typo3.org
Fri Aug 31 11:23:24 CEST 2007
Dmitry Dulepov [typo3] wrote:
> Branches: trunk *and* 4.1
>
> Problem: currently TCEmain has a hook for evaluating values. This way
> you can transform 123 to 456 on saving. But there is no opposite hook in
> TCEforms, so you cannot translate 456 back to 123 in TCEforms. Currently
> it means that punycode domains can be encoded using hook but decoding
> must XCLASS tceform, which is bad.
>
> Solution: add hook to TCEforms. I made a simplest version of hook, which
> accepts only value. I though about sending more parameters but hook in
> TCEmain does not accept them either, so they will be useless in the
> context of the hook class.
Makes sense, but please fix these two things:
- "Pair hook to the one in t3lib_TCEforms::checkValue_input_Eval()"
=> this is found in t3lib_TCEmain not TCEforms!
- You might think now that only this single parameter makes sense. Well, I
cannot say for sure, but I would like to see an array $_params passed to
every hook. Later, this array can be extended with references easily, so
the function call does not need to be modified anymore...
> I want this hook in both trunk and 4.1 to give access to extended domain
> names without a need to xclass the core in earlier versions.
Once again I can't remember. Did we allow hooks for stable branches, or not?
Please check at least, but if we decided yes, then you have my go.
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list